I'm trying to take the next step so I was reading up the manuel and studying example code all over the place but I really don't understand (Beside programming in strings as indicators) how to program in states for example in war.wdl you have this Code:
 	if((EVENT_TYPE == EVENT_SCAN && indicator == _EXPLODE)
|| (EVENT_TYPE == EVENT_SHOOT && indicator == _GUNFIRE))
{
MY._SIGNAL = _DETECTED; // by shooting, player gives away his position

if (indicator == _EXPLODE)
{

You notice indicator == _explode as well as My.signal these very much seem to be conveniant indicators for states that the entity is in and they obviously use no strings to do it, these may be functions of some kind but I can't figure them out, so can anyone clarify a bit on how to program these or better types of states for my AI?

Now that I think about it they may just be returns from the engine functions, regardless can anyone tell my what they are and how to program in states the best way possible (Is my string way the best or not)

P.S. Please prove me wrong on my string idea


A clever person solves a problem.
A wise person avoids it.
--Einstein

Currently Codeing: Free Lite-C