• 🏆 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!

[Trigger] Stop him from attacking..?

Status
Not open for further replies.
Level 16
Joined
Oct 12, 2008
Messages
1,570
Im srry,, i just cant find it =S
I tried making an aura ability and set attack speed extra to -100, didnt work
I tried serveral other different things,, but they all didnt work!
Im sorry,,

P.S. I also replied on your knockback thread ;)

EDIT: Listen to Reborn_Devil, he knows more then me!
(no srsly, it was NOT sarcastic!)
 
Level 23
Joined
Nov 29, 2006
Messages
2,482
Well why dont you just do like The Reborn Devil says?

it would require a boolean for the unit who is jumping though, which I cant say at a right arm how you should do that gui mui... for mpi however:
  • Events:
    • Unit is issued 'no target' order
  • Conditions:
    • isJumping[Player number of owner of triggering unit] equals to true
  • Actions:
    • Unit - order unit to stop
Excuse my bad habbit of using trigger tags. I was better on that in the past.
 
Level 7
Joined
Jul 12, 2008
Messages
295
Use silence to disable attacks. Make it a dummy ability, cr8 the dummy and order to cast on an area around the caster. Set the targets allowed to Player units. It will look something like this:

  • Events: A unit starts the effect of an ability
  • Conditions: Ability is being cast equal to Jumping Ability
  • Actions: set Jumping_Units[1] = triggering unit
    • set Jumping_Point = Targeted point of ability is being cast
    • Unit - Create 1 dummy for Owner of Jumping_Units[1] at Jumping Point
    • Set Jumping_Units[2] = last created unit
    • Unit - Add silence(with prevents attacks melee and ranged) to Jumping_Units[2]
    • Unit - Set level of silence to level of Jumping Ability
    • Unit - Issue order Jumping_Units[2] to Silence Jumping Point
    • Custom Script(call RemoveLocation(udg_Jumping_Point)
Is this what u want?
 
Status
Not open for further replies.
Top