This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
remove_currency [2024/04/04 21:38] – justin | remove_currency [2024/04/05 09:33] (current) – justin | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======Function====== | + | ======Remove Currency====== |
---- | ---- | ||
Removes the specified amount of a currency from a [[character]]. | Removes the specified amount of a currency from a [[character]]. | ||
Line 15: | Line 15: | ||
====Example: | ====Example: | ||
<code bauxite> | <code bauxite> | ||
- | remove_currency(); | + | remove_currency(100, " |
</ | </ | ||
- | // | + | // |
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Remove Currency** function to... | + | Use the **Remove Currency** function to take some gold coins from the player upon buying an item from an NPC or as a penalty for failing a quest. |
</ | </ | ||