Jump to: navigation, search

Global Storage

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