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 |
| 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":true,"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":true,"IsReferenceIndex":false,"IsUniqueID":false,"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":false,"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":true,"IsReferenceIndex":false,"IsUniqueID":false,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Character.ChangeStatusCommand"}