Jump to: navigation, search

Difference between revisions of "Global Storage"

(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(ByVal key As String) As String=====
+
=====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(ByVal key As String) As Double=====
+
=====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(ByVal key As String, ByVal value As String)=====
+
=====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(ByVal key As String, ByVal value As Double)=====
+
=====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(ByVal key As String) As Boolean=====
+
=====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(ByVal key As String) As Boolean=====
+
=====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

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")