Jump to content


Photo

AttackOneRound


  • Please log in to reply
7 replies to this topic

#1 temnix

temnix
  • Member
  • 983 posts

Posted 15 November 2016 - 10:30 AM

Is it the same as AttackReevaluate(Object,90)?



#2 The Imp

The Imp

    Not good, see EVIL is better. You'll LIVE.

  • Member
  • 5150 posts

Posted 16 November 2016 - 04:57 AM

Principally yes. ... well of course it depends on the exact use.
As in, if that's the only thing in the both scripts, then yeah.

Yep, Jarno Mikkola. my Mega Mod FAQ. Use of the BWS, and how to use it(scroll down that post a bit). 
OK, desert dweller, welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand. Ouh, actually it was still snow then.. but anyways.


#3 temnix

temnix
  • Member
  • 983 posts

Posted 16 November 2016 - 05:42 PM

Thanks.



#4 Miloch

Miloch

    Barbarian

  • Modder
  • 6573 posts

Posted 27 November 2016 - 08:37 PM

Principally yes. ... well of course it depends on the exact use.
As in, if that's the only thing in the both scripts, then yeah.

Sorry, bud. These two commands do two totally different things in the engine. I don't like it, but I've been in the trenches, and it hasn't been pleasant either way.

 

Your best bet is to use simply Attack() with a timer, rather than the alternatives.


Infinity Engine Contributions
Aurora * BG1 NPC * BG1 Fixpack * Haiass * Infinity Animations * Level 1 NPCs * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * BG:EE * BGII:EE * IWD:EE
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * Creature Checker * Creature Fixer * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Infinity turns out to be the opposite of what people say it is. It is not 'that which has nothing beyond itself' that is infinite, but 'that which always has something beyond itself'." -Aristotle


#5 temnix

temnix
  • Member
  • 983 posts

Posted 28 November 2016 - 10:01 AM

What's the difference?



#6 Miloch

Miloch

    Barbarian

  • Modder
  • 6573 posts

Posted 28 November 2016 - 02:24 PM

In short, the actions are quirky. In terms of quirkiness, the list goes (from highest to lowest):

 

AttackReevaluate()

AttackOneRound()

Attack()

 

If you're a history buff, feel free to peruse the following:

 

http://gibberlings3....showtopic=24523
"However, the two common methods used for attacking ( AttackOneRound() and AttackReevaluate() ) are both known to have issues from posts gathered here and elsewhere. It's frustrating to watch a user script sit there, attack foes, but not actually get an attack role for some percentage of the time."

http://gibberlings3....showtopic=17655
"I see the IESDP documents AttackReevaluate() as only evaluating triggers again once the timing has expired, which is perhaps a good hint as to how it works..."

http://gibberlings3....pic=8886&page=6
"[As for quirky IE actions,] it may be a showdown between Continue() and AttackReevaluate() (the more I play around with Continue(), the more dangerous it turns out to be)."


Infinity Engine Contributions
Aurora * BG1 NPC * BG1 Fixpack * Haiass * Infinity Animations * Level 1 NPCs * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * BG:EE * BGII:EE * IWD:EE
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * Creature Checker * Creature Fixer * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Infinity turns out to be the opposite of what people say it is. It is not 'that which has nothing beyond itself' that is infinite, but 'that which always has something beyond itself'." -Aristotle


#7 temnix

temnix
  • Member
  • 983 posts

Posted 30 November 2016 - 12:20 PM

Well, both are obviously an alternative to Attack() when that doesn't suit the need because it never ends, so the quirkiness is neither here nor there. If that's all there is...



#8 Miloch

Miloch

    Barbarian

  • Modder
  • 6573 posts

Posted 04 December 2016 - 09:57 AM

it never ends

Attack() ends if you put it on a timer. This has been the best alternative to the other two actions in my testing.


Infinity Engine Contributions
Aurora * BG1 NPC * BG1 Fixpack * Haiass * Infinity Animations * Level 1 NPCs * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * BG:EE * BGII:EE * IWD:EE
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * Creature Checker * Creature Fixer * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Infinity turns out to be the opposite of what people say it is. It is not 'that which has nothing beyond itself' that is infinite, but 'that which always has something beyond itself'." -Aristotle