• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] problem with a trigger

Status
Not open for further replies.
Level 19
Joined
Feb 15, 2008
Messages
2,184
  • Multishot
    • Events
      • Unit - A unit Is attacked
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Custom value of (Attacking unit)) Less than 3
        • Then - Actions
          • Unit - Remove MultiShot (ranged) from (Attacking unit)
          • Unit - Remove MultiAttack (Melee) from (Attacking unit)
          • Unit - Set the custom value of (Attacking unit) to ((Custom value of (Attacking unit)) + 1)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Attacking unit) is A ranged attacker) Equal to True
            • Then - Actions
              • Unit - Add MultiShot (ranged) to (Attacking unit)
            • Else - Actions
              • Unit - Add MultiAttack (Melee) to (Attacking unit)
          • Unit - Set the custom value of (Attacking unit) to 0
when i choose footman to have this ability he dont do this :S multi shoot

and its also not when i attacking the unit its when hes attacked i want it to be when he attacks...

and i dont get this trigger if i wanna change so he attacks for example 10 shoots instead of 3 like its now where do i change this O:
 
Level 19
Joined
Feb 15, 2008
Messages
2,184
omg how i make this trigger then? if i want it for example work on demon hunter a footman or what ever :S

and omg i dont know can sum one help me make this trigger correct i mean its when he attacks not is attacked and then he will do multishot of 3 or mybe 10 if i wanna change....

can sum one help me do this one ?
 
Level 19
Joined
Feb 15, 2008
Messages
2,184
O: ranged what do i need to change.....

i made trigger like this now

  • Multishot
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Level of DUMMY CHOOSER (Melee) for (Attacking unit)) Greater than 0
      • (Unit-type of (Attacking unit)) Equal to Demon Hunter
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Custom value of (Attacking unit)) Less than 1
        • Then - Actions
          • Unit - Remove MultiShot (ranged) from (Attacking unit)
          • Unit - Remove MultiAttack (Melee) from (Attacking unit)
          • Unit - Set the custom value of (Attacking unit) to ((Custom value of (Attacking unit)) + 1)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Attacking unit) is A ranged attacker) Equal to True
            • Then - Actions
              • Unit - Add MultiShot (ranged) to (Attacking unit)
              • Unit - Set level of MultiShot (ranged) for (Attacking unit) to (Level of DUMMY CHOOSER (Melee) for (Attacking unit))
            • Else - Actions
              • Unit - Add MultiAttack (Melee) to (Attacking unit)
              • Unit - Set level of MultiAttack (Melee) for (Attacking unit) to (Level of DUMMY CHOOSER (Melee) for (Attacking unit))
          • Unit - Set the custom value of (Attacking unit) to 0
and tell me where to change so it works for demon hunter :)
 
Level 19
Joined
Feb 15, 2008
Messages
2,184
what is ranged and how i do that ? plz show me the trigger :/ huurka i know ur pro on this :)
u help me all the time i will give u rep + u helped me with map when its finished :) i mean like credits that u helped me :) liek ur name etc....
 
Level 17
Joined
May 6, 2008
Messages
1,598
Ranged, like an archer.

Change it in object editor.


Barrage just won't work otherwise
 
Status
Not open for further replies.
Top