Jump to content

Setting up an ability that checks for Stamina %


MrAnon101

Recommended Posts

Posted

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:

 

skyrimconditionalquery.png

 

 

 

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!)

Posted

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.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...