Jump to content

Condition: HasMagicEffect


OutLivingLife

Recommended Posts

So I have several different items that I'm trying to have restore health over time. I set up first Item to use the FoodRestoreHealthDuration (magnitude = 1.00, duration = 45s) and I set up my next item to also use the FoodRestoreHealthDuration (magnitude = 1.00, duration = 20s). But I don't want the player to be able to be able to be under the effects of both "food items" at the same time, so I set up conditions for those effects (reference = player; HasMagicEffect; FoodRestoreHealthDuration == 0.0000) for both food items.

 

I was thinking that upon eating the food, the condition would check to see if the player already has the "food effect" and if so, do nothing, and if not, give the "food effect." For some reason though, when I use the item, it's not letting me get the effect.

 

To try to debug it, I set the conditions to FoodRestoreHealthDuration == 1.0000, in which case it allowed me to get the "food effect", but it caused me to be able to use the "food effects" of both the first and the second item simultaneously (which is not what I would like to do).

 

Any help with resolving this issue? Thanks!

Link to comment
Share on other sites

  • Recently Browsing   0 members

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