Thread: Flags
View Single Post
Old 02-20-2002, 05:06 AM   #1
dominions
Elminster
 

Join Date: March 20, 2001
Location: Hampshire, England
Age: 50
Posts: 428
In my design I use alot of minor 'one situation' checks i.e. Have the party entered this area before?, has the party spoken with an NPC?, etc..
It gets a little cumbersome using the quest stuff for this kind of thing. I was wondering if a system of boolean flags could be implemented.
For those not into programming all means is that you would be able create a name (much like a quest) and assign the value of TRUE of FALSE to it. You could then do a check on this name.
This could be tested by using the checks normally used with any Event (much like Is It Daytime, etc.) and assigned using the Utilities Event.
Internally, these 'names' could still be listed as quests, but they would only ever have a value of 0 or 1. They would also work well with the the Logic Block Event.

Just an idea.
__________________
[img]\"http://www.shalewyn.com/Images/KrynnWhiteDragon1.gif\" alt=\" - \" /><br />\"Hah!\", thought the white dragon. \"A wand of Ice Storm will never harm me!\"<br />He never did figure out that he was in a CRPG...
dominions is offline   Reply With Quote