Duality Posted March 11, 2006 Share Posted March 11, 2006 Anyone know if the object parameter in SendTrigger() can be a Token set by SetTokenObject? I can't seem to make it work, but I just thought I'd check, since ActionOverride doesn't seem to work either. This is the code I'm testing. If Trigger(1) then Response #100 //Blah blah end if //blah blah then response #100 SendTrigger("caster", 1) end Where "caster" is a TokenObject set from another script. Can you use SetTokenObject with ANY targeting or command feature other then a simple "attack"? While I'm at it, is there anyway to use a string in something like "Spell(myself, WIZARD_FIREBALL)" but replacing the WIZARD_FIREBALL with some sort of variable? The problem is, I want to minimize the number of IF blocks in the mage script, but to do so, I would need to set some sort of indicator about which of the AoE spells were being cast. I tried SetGlobal("spellGlobal", "GLOBAL", 2304), then used the "spellGlobal" in the Spell command, but it didn't like it. It also didn't like a string or using SetTokenObject. (I'll try anything, even if I know it wont work.) Link to comment
This topic is now archived and is closed to further replies.