Free, Open-Source and Moddable Lifesim RPG (Link NSFW). I had to change my dev PC and couldn't set up Git correctly on the new PC so the full source code for the game will be available here: https://mega.nz/folder/1XYSXbRb#nFHZ1wdwTbL6rS1oUdMe0g
GlobalVariable.getGlobalString() returns String
USE:
Get the string value of a global variable. If there's no global variable under such name, returns 0.
TYPE: Command, non-Ref (ref-like syntax)
RETURNS: string
THEME: Variables
COMPARE: clearGlobal, setGlobalString
EXAMPLE:
pie = pieString.getGlobalString()
"I could go for a slice of <pie> right now!"
setGlobalString
GlobalVariable.setGlobalString(String)
USE:
Set (add if it doesn't already exist) a global variable to a certain string.
TYPE: Command, non-Ref (ref-like syntax)
RETURNS: /
THEME: Variables
COMPARE: getGlobal, clearGlobal, getID
EXAMPLE:
0:: "cherry pie is my favorite!"
1:: "I really love warm apple pie!"
If 0
pieString.setGlobalString("cherry pie")
else
pieString.setGlobalString("apple pie")
endif
getGlobalString
setGlobalString