Page 1 of 1

usecode question - global flag

Posted: Sun Aug 21, 2011 12:54 pm
by agentorangeguy
While doing some usecode work, I notice that sometimes I cannot get a global flag to be set true during a conversation topic although some actually do get set. The flag numbers should be in the safe range (1000 +) and before the cutoff number. an example

Code: Select all

case "topic"(remove):
               say("@this should set a flag@");
               gflags[FLAG] = true;



I have also used the following format:

Code: Select all


case "topic"(remove):
          if (!gflags[FLAG])
             {
              say("@Flag is now set.@");
              }
              else say("@What I say after flag is set.@");


for some reason, some flags will fire and some wont. As far as I know, there are no overlapping flags.