modding:function:typincglobaldata
Discuss this page on this pages TalkPage
typIncGlobalData
See typIncGlobalData at Xelerus
| Syntax | (typIncGlobalData number string [number]) |
|---|---|
| Arguments | number: The UNID of the type you want to increment the data in. |
| string: The name of the data you want to increment. | |
| number: The optional number that gets added to the data. | |
| Returns | number: The value of the data after it has been incremented. |
| Category | 0.99, data, math, unid |
| Description | Increments the data in the type by the given number (if no number is given it increment it by one). |
Example
(typIncGlobalData &itSolarPanelArray; "rincost" 100)
Returns the rincost in itSolarPanelArray plus 100, if it didn't exist before it creates it and sets it to 100. Return to Functions list
modding/function/typincglobaldata.txt · Last modified: by 127.0.0.1
