MrAnon101 Posted October 27, 2012 Posted October 27, 2012 Hey everyone, I was wondering if someone out there fancied giving me a bit of a helping hand here. I tried posting this up on the nexus forums and well... It has been quite silent:s. Essentially I am creating a mod wherein i plan to attach some abilities to a custom race - But the plan is for the race's abilities to be triggered by various conditions (as opposed to being cast). The first was a breeze: "If Sneaking, then Fortify Bow Damage by 10%" This was achieved by throwing in the "IsSneaking" value "==" to "1.00 (or something like that)" as a required condition before firing off the ability. The other abilities are throwing me right off though: "If Stamina full, then Fortify Magic 10%" "If Magicka full, then Fortify One-Handed by 10%" "If Health <30%, then Fortify Magic Regen 20% + Damage Res 15%" "If Magicka <10%, then Fortify Health Regen 20%" Long story short, I am not sure how to get the game to check for these situations using conditions. I am assuming it would be hidden somewhere in here: I would just need to know how to tell it to check the players stamina, magicka and health, and how to tell it to check for a certain % of said attribute. Any help would be hugely appreciated! (and sorry if this is the wrong forum!)
MrAnon101 Posted October 27, 2012 Author Posted October 27, 2012 Okay, so I worked out the answer to my own issue, and I figured I would post it in here so anyone else looking for it might find it. To check Stamina/Health/Magicka levels you use the "GetActorValuePercent" condition. 1.000 = 100%, 0.500 = 50% etc. So as an example for a Stamina check, you would use: GetActorValuePercent | Stamina | == | 1.000 - Subject: Player. This would check to see if the player had 100% stamina, and then run whatever ability you allocated if s/he did. Another example for a check on say 50% or less health would be: GetActorValuePercent | Health | < | 0.500 - Subject: Player. This would run an ability if you had 50% health or less remaining. Hopefully this helps someone.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.