• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Stamina Simulations

Status
Not open for further replies.
Level 8
Joined
Oct 8, 2005
Messages
409
I need a trigger that causes generic units to have there attack speed lowered while they walk and go back up when they stand/hold position

If not this, I could use a trigger that causes negative buffs causing lowered attack speed

Either way I want generic units to simulate becoming tired after/while walking, through their attack speed

any ideas ?

The goal of this trigger is to mimic Warcraft II physics, in which units standing still attacked first when approached
 
Level 3
Joined
Mar 25, 2006
Messages
43
stamina

ooooo u got a problem tho. tell me this. u cant attack if ur moving :/. lol didnt think of that did u. when i first saw it i thought u meant like they move slower after a while. that would work and be easier but u can do it this way. hmmm. i was gonna say make mana there stamina but........ some units have mana like priests so make it a variable a integer. lets say this. becuase i feel like it i will make it do move speed and attack speed (more realistic)
event unit moves (i dont think there is somthin like that but there should be somthing near that if not then) check every second.
condition unit is moving (if there isnt somthing like that then umm leave blank.
action units move distance = 100 (lets just use that for now) integer -1)


event check every second
condition
action wait 2 seconds if units move is 0 then +1 to integer


event integer = integer
condition
action make units attack speed% = integer%
make units move speed% = interger%

make starting interger 100 making it 100 make a trigger saying that it wont go over 100 or add condition saying integer ? 100
unit is made set integer((may need another integer here)+1)= same as other side
so it sets for that unit im srry but im not at my computer with WCWE so i cant do much better than me guessing like that.
 
Status
Not open for further replies.
Top