— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
Gives the specified amount of a currency to a character.
give_currency(amount, stat_id, character)
Argument | Description | Type | Required |
---|---|---|---|
amount | Amount of currency to give. | Number | Yes |
stat_id | Defaults to “currency”. | String | No |
character | Defaults to main player character. | Entity | No |
give_currency(100, "currency", player);
Results: Increases the player's base currency by 100 (i.e. their “currency” stat).
Use the Give Currency function to reward the player with gold coins upon finishing an important task or completing a quest for an NPC.