(Created page with "====Global Storage==== '''Note: GLOBAL VARIABLES GENERALLY SHOULD NOT BE USED! This should be for special effects that need to effect the world only.''' =====Storage.GetStri...") |
|||
Line 3: | Line 3: | ||
− | =====Storage.GetString( | + | =====Storage.GetString(key As String) As String===== |
*Description=''Get a text value from the global variable storage.'' | *Description=''Get a text value from the global variable storage.'' | ||
;'''Values''' | ;'''Values''' | ||
Line 11: | Line 11: | ||
− | =====Storage.GetNumber( | + | =====Storage.GetNumber(key As String) As Double===== |
*Description=''Get a number value from the global variable storage.'' | *Description=''Get a number value from the global variable storage.'' | ||
;'''Values''' | ;'''Values''' | ||
Line 19: | Line 19: | ||
− | =====Storage.SetString( | + | =====Storage.SetString(key As String, value As String)===== |
*Description=''Set a text value from the global variable storage.'' | *Description=''Set a text value from the global variable storage.'' | ||
;'''Values''' | ;'''Values''' | ||
Line 27: | Line 27: | ||
− | =====Storage.SetNumber( | + | =====Storage.SetNumber(key As String, value As Double)===== |
*Description=''Set a number value from the global variable storage.'' | *Description=''Set a number value from the global variable storage.'' | ||
;'''Values''' | ;'''Values''' | ||
Line 35: | Line 35: | ||
− | =====Storage.RemoveString( | + | =====Storage.RemoveString(key As String) As Boolean===== |
*Description=''Remove a string value from the global variable storage.'' | *Description=''Remove a string value from the global variable storage.'' | ||
;'''Values''' | ;'''Values''' | ||
Line 43: | Line 43: | ||
− | =====Storage.RemoveNumber( | + | =====Storage.RemoveNumber(key As String) As Boolean===== |
*Description=''Remove a number value from the global variable storage.'' | *Description=''Remove a number value from the global variable storage.'' | ||
;'''Values''' | ;'''Values''' |
Latest revision as of 14:31, 5 October 2018
Contents
- 1 Global Storage
- 1.1 Storage.GetString(key As String) As String
- 1.2 Storage.GetNumber(key As String) As Double
- 1.3 Storage.SetString(key As String, value As String)
- 1.4 Storage.SetNumber(key As String, value As Double)
- 1.5 Storage.RemoveString(key As String) As Boolean
- 1.6 Storage.RemoveNumber(key As String) As Boolean
Global Storage
Note: GLOBAL VARIABLES GENERALLY SHOULD NOT BE USED! This should be for special effects that need to effect the world only.
Storage.GetString(key As String) As String
- Description=Get a text value from the global variable storage.
- Values
- key=The name of the key you are trying to find.
- Returns=String value of 'key'.
- Example=Storage.GetString("petName")
Storage.GetNumber(key As String) As Double
- Description=Get a number value from the global variable storage.
- Values
- key=The name of the key you are trying to find.
- Returns=Number value of 'key'.
- Example=Storage.GetNumber("petHP")
Storage.SetString(key As String, value As String)
- Description=Set a text value from the global variable storage.
- Values
- key=The name of the key you are trying to change or add.
- value=The new value of 'key'.
- Example=Storage.SetString("petName", "Bobby")
Storage.SetNumber(key As String, value As Double)
- Description=Set a number value from the global variable storage.
- Values
- key=The name of the key you are trying to change or add.
- value=The new value of 'key' as a number. MUST BE A NUMBER, CAN HAVE DECIMAL POINTS.
- Example=Storage.SetNumber("petHP", 50)
Storage.RemoveString(key As String) As Boolean
- Description=Remove a string value from the global variable storage.
- Values
- key=The name of the key you are trying to change or remove.
- Returns=True if found and deleted, false otherwise.
- Example=Storage.RemoveString("petName")
Storage.RemoveNumber(key As String) As Boolean
- Description=Remove a number value from the global variable storage.
- Values
- key=The name of the key you are trying to change or remove.
- Returns=True if found and deleted, false otherwise.
- Example=Storage.RemoveNumber("petName")