Jump to content


Photo

AttackReevaluate() and AttackOneRound() issues


  • Please log in to reply
1 reply to this topic

#1 aVENGER

aVENGER
  • Modder
  • 1680 posts

Posted 03 March 2012 - 04:39 AM

As described here these actions don't seem to behave as advertised. Judging from the documentation, AttackOneRound() is supposed to make a creature deliver its designated amount of attacks/round within 6 seconds and then restart the script. On the other hand, AttackReevaluate() should force a creature to attack the target while making periodic checks to see if any other script action needs to be carried out. The reevaluation period is probably entered in engine ticks i.e. 15 ticks = 1 real-life second.

Can you check how the ToB engine actually handles these actions? While we're at it, does the engine actually make any difference between Attack() and AttackReevaluate()? Is the reevaluation period actually parsed at all?

#2 Avenger_teambg

Avenger_teambg
  • Member
  • 604 posts

Posted 03 March 2012 - 03:58 PM

Yes, they are different (but similar) and the first integer parameter in AttackReevaluate is parsed.

Actually, i believe AttackReevaluate(target, 150) is the same as Attack.

Edited by Avenger_teambg, 03 March 2012 - 04:02 PM.

Avenger