Jump to content

[LE] is there any event : if player health under xxx%


Recommended Posts

You can do what you're looking for using variable conditions in the script. Mine you I'm not at a computer at the moment and only on my phone but you could try something along the lines of:

 

Using the player's actorvalue for health and an if/else conditional that sets up if the player's health is at 50% or less do this, otherwise do this or nothing.

Link to comment
Share on other sites

I would suggest, instead, adding an ability to the player, with a magic effect that has, as a condition of the effect in the spell window, GetHealthPercentage < 0.5.

 

You can then put a script on the player (or the magic effect itself) and use OnMagicEffectApply (if on the player) or OnEffectStart (if on the magic effect) to effectively catch the event you're interested in.

Edited by foamyesque
Link to comment
Share on other sites

You can do what you're looking for using variable conditions in the script. Mine you I'm not at a computer at the moment and only on my phone but you could try something along the lines of:

 

Using the player's actorvalue for health and an if/else conditional that sets up if the player's health is at 50% or less do this, otherwise do this or nothing.

thanks, i will wait your script then

Link to comment
Share on other sites

I would suggest, instead, adding an ability to the player, with a magic effect that has, as a condition of the effect in the spell window, GetHealthPercentage < 0.5.

 

You can then put a script on the player (or the magic effect itself) and use OnMagicEffectApply (if on the player) or OnEffectStart (if on the magic effect) to effectively catch the event you're interested in.

i never making ability before, is easy?, anyway thanks

Link to comment
Share on other sites

 

I would suggest, instead, adding an ability to the player, with a magic effect that has, as a condition of the effect in the spell window, GetHealthPercentage < 0.5.

 

You can then put a script on the player (or the magic effect itself) and use OnMagicEffectApply (if on the player) or OnEffectStart (if on the magic effect) to effectively catch the event you're interested in.

i never making ability before, is easy?, anyway thanks

 

 

It's not hard. Have you ever made any spell or magic effect before?

Link to comment
Share on other sites

 

 

I would suggest, instead, adding an ability to the player, with a magic effect that has, as a condition of the effect in the spell window, GetHealthPercentage < 0.5.

 

You can then put a script on the player (or the magic effect itself) and use OnMagicEffectApply (if on the player) or OnEffectStart (if on the magic effect) to effectively catch the event you're interested in.

i never making ability before, is easy?, anyway thanks

 

 

It's not hard. Have you ever made any spell or magic effect before?

 

never, i just make new quest and put the script on it, do you have any link/guide about ability you taklking about?

Link to comment
Share on other sites

  • Recently Browsing   0 members

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