I am having trouble to get this trigger to fire correctly. I've been working at it for a while, pouring over the forums looking for likely fixes. anyway the issue is this:
So when %2 equals Magellan the trigger fires as intended. However if %2 is something else i have an error. I believe the error may be related to how the "other" is being represented, which is this:
I get the error:
any help would be appreciated. i am trying to figure out my dps vs the dps of the NPC if this helps. thanks.
Debug(.*?) on combat_round :: (.*?) is successfully hitting (.*?) for (.*?) actual damage.
FPCDPS = GetVariable ("FPCDPS")
Note ("combat %2, %4, @FPCDPS")
if %2 == "Magellan" then
SetVariable ("PCDPS", tonumber (GetVariable ("PCDPS")) + %4)
else
Note ("option 2")
end
Execute ("mathpcdps")
So when %2 equals Magellan the trigger fires as intended. However if %2 is something else i have an error. I believe the error may be related to how the "other" is being represented, which is this:
_1055134_623666 name1 name2 name3
I get the error:
Compile error
World: NDAedit
Immediate execution
[string "Trigger: "]:3: 'then' expected near 'name1'
any help would be appreciated. i am trying to figure out my dps vs the dps of the NPC if this helps. thanks.