ScourgeGame
The root of the SOM. At the start of the game, a global variable named scourgeGame is created. All other scourge classes are referenced from this object.
string getVersion()
Get the game's version.
string getRootDir()
Get the game's data directory.
int getPartySize()
Get the number of party members.
Get one of the party member's creature objects. The first param is the index of the party member.
Get the currently selected character.
int getSkillCount()
Get the number of skills in the game.
string getSkillName()
Get the given skill's name. The first param is the index of the skill.
string getSkillDisplayName()
Get the given skill's name. The first param is the index of the skill.
Get the current mission object.
int getStateModCount()
Return the number of state modifiers in the game.
string getStateModName(int p1)
Get the given state mod's name. The first param is the index of the state mod.
string getStateModDisplayName(int p1)
Get the given state mod's name. The first param is the index of the state mod.
int getStateModByName(string p1)
Get the index of the state given in the param to this function.
string getDateString()
Get the current game date. It is returned in the game's date format: (yyyy/m/d/h/m/s)
bool isADayLater(string p1)
Is the given date a day later than the current game date? The first parameter is a date in game date format. (yyyy/m/d/h/m/s)
string getValue(string p1)
Get the value associated with a given key from the value map. The first parameter is the key.
void setValue(string p1, string p2)
Add a new or set an existing key and its value in the value map. The first parameter is the key, the second is its value.
void eraseValue(string p1)
Remove a key and its value from the value map. The first parameter is the key to be removed.
void printMessage(string p1)
Print a message in the scourge message window. The resulting message will always be displayed in a lovely shade of purple.
void reloadNuts()
Reload all currently used squirrel (.nut) files. The game engine will also do this for you automatically every 5 game minutes.
void documentSOM(string p1)
Produce this documentation. The first argument is the location where the html files will be placed.
void runTests(string p1)
Run internal tests of the rpg combat engine. Results are saved in path given as param to runTests().
void showTextMessage(string p1)
show a scrollable text message dialog.
string getDeityLocation(int p1, int p2, int p3)
Get the deity whose presense is bound to this location (like an altar). Results the name of the deity.
void endConversation()
Close the conversation dialog.
string getTranslatedString()
Get the translated version of this string. Calls GNU gettext.