You can check if a combatant has a status effect applied by calling:
combatant.Status.IsEffectSet(int index)
Which returns true if the effect is applied, otherwise false. The index is the ID of the status effect (the index in your status effect list). To get the player combatant, you can call ORK.Game.ActiveGroup.Leader.
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found. If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
There where some scripting changes in ORK 2.20.0, splitting up combatant functionality in different dedicated classes. All status effect related stuff can now be accessed via:
combatant.Status.Effects
E.g. to check if an effect is applied: combatant.Status.Effects.IsApplied(int effectID)
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found. If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
combatant.Status.IsEffectSet(int index)
Which returns true if the effect is applied, otherwise false. The index is the ID of the status effect (the index in your status effect list).
To get the player combatant, you can call ORK.Game.ActiveGroup.Leader.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
What has changed IsEffectSet?
■iOS
https://itunes.apple.com/us/app/id679133055
■Android
https://play.google.com/store/apps/details?id=com.WabiPlant.SAMURAI100SlashLite
New ORK Battle Game
■iOS
https://itunes.apple.com/jp/app/id1403510381
■Android
https://play.google.com/store/apps/details?id=com.Company.AgentFight
combatant.Status.Effects
E.g. to check if an effect is applied:
combatant.Status.Effects.IsApplied(int effectID)
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Thank you!!!
■iOS
https://itunes.apple.com/us/app/id679133055
■Android
https://play.google.com/store/apps/details?id=com.WabiPlant.SAMURAI100SlashLite
New ORK Battle Game
■iOS
https://itunes.apple.com/jp/app/id1403510381
■Android
https://play.google.com/store/apps/details?id=com.Company.AgentFight