Storing a value in a database:
IF
Event
THEN
DB_MyOwnDatabase(9001);
Retrieving the (first) value from a database for use in another function:
IF
Event
AND
DB_MyOwnDatabase(_outputVariable)
THEN
PartyAddExperience(_outputVariable);
Checking for existence of a value:
IF
Event
AND
DB_MyOwnDatabase(9001)
THEN
Stuff
Removing a value:
IF
Event
THEN
NOT DB_MyOwnDatabase(9001);
Making a database with multiple entries:
INIT SECTION
DB_Stuff(1, 1000);
DB_Stuff(2, 2000);
DB_Stuff(3, 3000);
DB_Stuff(4, 4000);
DB_Stuff(5, 5000);
Passing one value to retrieve another from the database:
IF
CharacterLeveledUp(_Char)
AND
CharacterGetLevel(_Char, _level)
AND
DB_Stuff(_level, _output)
THEN
PartyAddExperience(_output);
Using a database as an event:
IF
DB_Stuff(_level, _experience)
THEN
PartyAddExperience(_experience);
NOT DB_Stuff(_level, _experience);
IF
Event
THEN
DB_Stuff(9, 9001);
Checking if something doesn't exist within the database:
IF
Event
AND
NOT DB_Stuff(9, 9001)
THEN
PartyAddExperience(5000);
Checking for just one of the many values in a database:
IF
Event
AND
DB_Stuff(_level, 9001)
THEN
PartyAddExperience(9001);
----
I think that covers all of the database uses that I know of.