This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| give_currency [2024/04/04 21:36] – justin | give_currency [2024/04/05 09:33] (current) – justin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ======Function====== | + | ======Give Currency====== |
| ---- | ---- | ||
| Gives the specified amount of a currency to a [[character]]. | Gives the specified amount of a currency to a [[character]]. | ||
| Line 9: | Line 9: | ||
| ^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
| - | |amount| |[[Number]]|Yes| | + | |amount|Amount of currency to give.|[[Number]]|Yes| |
| - | |stat_id| |[[String]]|No| | + | |stat_id|Defaults to " |
| - | |character| |[[Entity]]|No| | + | |character|Defaults to main [[player character]].|[[Entity]]|No| |
| ====Example: | ====Example: | ||
| <code bauxite> | <code bauxite> | ||
| - | give_currency(); | + | give_currency(100, " |
| </ | </ | ||
| - | // | + | // |
| <WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
| - | Use the **Give Currency** function to... | + | Use the **Give Currency** function to reward the player with gold coins upon finishing an important task or completing a quest for an NPC. |
| </ | </ | ||