I believe you were using the standalone template yes? If so this will be easy.
Hello. I've got two things that i've been having trouble with for a while now so i thought i'd post them both in the same thread.
Flags: I'm interested in being able to check if several flags has been set in story, right now i can only check for one by using GlobalEventSet("flag"), for example. In dialog it's possible to do by using several conditions but i haven't found any good functions in story.
In MAIN and in the template there is this awesome little script called Greevers_Little_helpers. It has tons of useful script and if you don't have it I highly recommend getting it.
One of the more useful and really simple scripts it has is "GLOBAL EVENT MEMORY"
//REGION Global Event Memory
IF
GlobalEventSet(_String)
THEN
DB_GlobalEvent(_String);
IF
GlobalEventCleared(_String)
THEN
NOT DB_GlobalEvent(_String);
//END_REGION
The above stores all global events as a database.
If you already have this in your mod you can use it right away like this:
IF
GlobalEventSet("GaveFish")
AND
DB_GlobalEvent("GaveCrate")
AND
DB_GlobalEvent("Gavebasket")
AND
DB_GlobalEvent("GaveTeaQuest")
THEN
QuestUpdate("DinerFood","Update13");
QuestClose("DinerFood");
That's one of my quest close conditional statements. It checks for the global event GaveFish and then for the DB_GlobalEvent for the rest. The DB_GlobalEvent("YOUREVENT") is what the global event memory generates everytime you set a global event. It's extremely useful.
Variables: Is it possible to make global variables that remain in the game that i can change up and down over time? Like having a variable that tracks how well liked the player is by a certain faction.
This sounds like another issue for databases. I'm not too proficient at this at the moment but here are the more relevant threads on the subject:
http://www.larian.com/forums/ubbthr...ords=database&Search=true#Post549547http://www.larian.com/forums/ubbthr...character.txt&Search=true#Post556556