Skip to content

Change Class

Change Class

Adds, adjusts the rank of, or removes a class from a character.

Properties

System

Name Explanation Type
Adjust Rank When enabled, the operation adjusts the rank of the class. When disabled, the class is removed entirely. Toggle
Class The class to add, adjust, or remove. Class
Rank The rank value to set or adjust for the class. Variable or Value
Remove When enabled, the class is completely removed from the character. Toggle
Target The character to apply the operation to. Character
Use As Delta Value When enabled, the rank value is added to the current rank. When disabled, the rank is set to the specified value. Toggle

Examples

Add a Class to Party Member 0

This adds the class at database index stored in Global Variable 0 to the first active party member with a default rank of 1.

change_class(party(0), $gv[0]);
{"Data":{"Class":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":0,"Metadata":null},"IsDeltaOperation":true,"IsRankValue":true,"Rank":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"1","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.ChangeClassCommand"}

Set a Class Rank to a Specific Value

This sets the rank of the specified class on party member 0 to exactly 5, replacing the current rank.

change_class(party(0), $gv[0], rank: 5, set);
{"Data":{"Class":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":0,"Metadata":null},"IsDeltaOperation":false,"IsRankValue":true,"Rank":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"5","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.ChangeClassCommand"}

Remove a Class from a Character

This completely removes the specified class from party member 0.

change_class(party(0), $gv[0], remove);
{"Data":{"Class":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":0,"Metadata":null},"IsDeltaOperation":true,"IsRankValue":false,"Rank":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"1","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.ChangeClassCommand"}