Jump to content

Processing of a BAF block


critto

Recommended Posts

Posted

So, here's what I've been trying to figure out for the recent few days. How does the game process all of the baf block's conditions and actions? Is it from top to bottom?

 

If all this is described in a faq or tutorial somewhere in the community, just point me to it. I haven't been able to find one by myself.

 

Anyhow. Say, we have a block:

IF
   Global("chaos","GLOBAL",0);
   !StateCheck(LastSeenBy(Myself),STATE_IMPROVEDINVISIBILITY)
   See(NearestEnemyOf(Myself))
THEN
  RESPONSE #100
     SpellNoDec(LastSeenBy(Myself), WIZARD_CHAOS)
     SetGlobal("chaos","GLOBAL",1)
END

1) would this block fail and/or work not as intended because LastSeenBy() does not point to the NearestEnemyOf() that we are trying to locate with the See() trigger? Should the See() trigger be put before any other trigger or action in the same block that references its result?

 

2) I use a global variable here to disable any future castings of Chaos. Is there a chance that the game will fire the block for the second time, because I set the global after casting a spell?

 

Best regards,

critto

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...