User Tools

Site Tools


remove_currency

This is an old revision of the document!


Function


Removes the specified amount of a currency from a character.

Signature:

remove_currency(amount, stat_id, character)
ArgumentDescriptionTypeRequired
amountAmount of currency to remove.NumberYes
stat_idDefaults to “currency”.StringNo
characterDefaults to main player character.EntityNo

Example:

remove_currency(100, "currency", player);

Results: Decreases the player's base currency by 100 (i.e. their “currency” stat).

Use the Remove Currency function to…


Editor Node:

remove_currency.1712332239.txt.gz · Last modified: 2024/04/05 08:50 by justin