How can I check, if combatant is in battle from a script?
Also, if specific status effects are applied.
  • Check if a combatant is in battle:
    if(combatant.Battle.InBattle)
    Check if a status effect is applied:
    if(combatant.Status.Effects.IsApplied(id))
    id is the ID/index of the status effect.
    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!
  • Thank you!
  • You can also call the custom script from Battle Start Event if you need to get this before the actual battle starts.
Sign In or Register to comment.