Change Status Effect
Change Status Effect¶
Adds or removes a status effect from a character.
Properties¶
System¶
| Name | Explanation | Type |
|---|---|---|
| Add | When enabled, the status effect is applied to the character. When disabled, the status effect is removed. | Toggle |
| Force | When enabled with Remove, permanently suppresses the status effect on the target. When enabled with Add, permanently asserts it. Bypasses persistence either way — works even when a Class, Character, or Equipment trait table would otherwise dictate the result. | Toggle |
| Remove | When enabled, the status effect is removed from the character. | Toggle |
| Status Effect | The status effect to add or remove. | Status Effect |
| Target | The character to apply the operation to. | Character |
Examples¶
Apply a Status Effect to Party Member 0¶
This applies the status effect at database index stored in Global Variable 0 to the first active party member.
{"Data":{"IsAdd":1,"IsForceful":0,"IsRemove":0,"StatusEffect":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":0,"Metadata":null},"Target":{"Identifier":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"IsInstanceIndex":1,"IsReferenceIndex":0,"IsUniqueID":0,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Character.ChangeStatusCommand"}
Remove a Status Effect from a Character¶
This removes the status effect at database index 2 from the first active party member.
{"Data":{"IsAdd":0,"IsForceful":0,"IsRemove":1,"StatusEffect":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"2","VariableIndex":0,"Metadata":null},"Target":{"Identifier":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"IsInstanceIndex":1,"IsReferenceIndex":0,"IsUniqueID":0,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Character.ChangeStatusCommand"}