Skip to content

Change Money

Change Money

Adjusts the party's currency by the specified amount.

Properties

System

Name Explanation Type
Amount The amount of money to add or remove. Positive values increase the party's money and negative values decrease it. Variable or Value

Examples

Add 500 Money to the Party

This increases the party's money by 500.

change_money(500);
{"Data":{"Money":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"500","VariableIndex":0,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Inventory.ChangeMoneyCommand"}

Adjust Money by Global Variable 1

Adjusts the party's money by the amount stored in Global Variable 1. Store a negative value to subtract.

change_money($gv[1]);
{"Data":{"Money":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":1,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Inventory.ChangeMoneyCommand"}