WizWom Posted December 31, 2007 Share Posted December 31, 2007 I had a block to stop combat only actions... IF CombatCounter(0) !Detect([0.0.0.0.WXJON_TARGET]) !Detect([ENEMY]) THEN RESPONSE #100 END So, imagine my surprise when I would get combat prep spell casting occasionally in the following situations: 1) After talking to an NPC 2) After failing a Hide in Shadows So, generally, I think using it as anything but a "combat might have just ended" check is dangerous. Link to comment
Avenger Posted December 31, 2007 Share Posted December 31, 2007 If i understood you correctly, you say that combatcounter is not 0 after those listed events? Link to comment
devSin Posted December 31, 2007 Share Posted December 31, 2007 Dialogue can hiccup the combat counter. Using the invalid block to stop the rest of the script from running is what's truly dangerous, though. Link to comment
WizWom Posted January 13, 2008 Author Share Posted January 13, 2008 I'm a bit confused - why is that dangerous? As I see it, it saves a lot of CPU. Link to comment
Miloch Posted January 14, 2008 Share Posted January 14, 2008 I think he's saying you should throw a NoAction() in there. Though why exactly it's dangerous not to have it, other than it being an invalid block, I forget. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.