Skip to content

Restore Character

Restore Character

Resets a character's statistics to their maximum values and removes all status effects.

Properties

System

Name Explanation Type
Restore Statistics When enabled, all statistics are restored to their maximum values. Switch or Value
Restore Status Effects When enabled, all status effects are removed from the character. Switch or Value
Target The character to apply the operation to. Character

Examples

Fully Restore Party Member 0

This restores the first active party member's statistics to maximum and removes all status effects.

restore_character(party(0), true, true);
{"Data":{"IncludeStatistics":true,"IncludeStatus":true,"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.RestoreCharacterCommand"}

Restore Only Statistics for Hero 0

This restores the statistics of database hero 0 to their maximum values without removing status effects.

restore_character(hero(0), true, false);
{"Data":{"IncludeStatistics":true,"IncludeStatus":false,"Target":{"Identifier":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"IsInstanceIndex":false,"IsReferenceIndex":true,"IsUniqueID":false,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Character.RestoreCharacterCommand"}

Remove Only Status Effects from Party Member 0

This removes all status effects from the first active party member without restoring statistics.

restore_character(party(0), false, true);
{"Data":{"IncludeStatistics":false,"IncludeStatus":true,"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.RestoreCharacterCommand"}