• 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] 2 Skilltrigger

Status
Not open for further replies.
Level 3
Joined
Oct 4, 2007
Messages
27
Hello,
I have a Problem.
How can i make my Thunderstrike makeing str.x3 and stunning for agi.x0.1?
It woild be great when you help me :)
mfg the3nd
 
Level 10
Joined
Sep 21, 2007
Messages
517
The Stun is easy to do, just open up object editor, create a new spell based on storm bolt, remove its effects, make it deal no damage, make it stun for 0 Seconds (0 seconds stuns the unit forever if it has that buff) then make it a unit ability. Also make the missile speed value to a very high value so the stun can be instant. Basically you just set the real value and run a timer to end the duration by removing the infinite buff. This is what you should do:
Note: To make it MUI i suggest you use player arrays or custom values for it.
  • AUnitUsesSpell
    • Events
    • Conditions
    • Actions
      • -------- this is what you need to do for the stun --------
      • Unit - Create 1 Dummy for (Owner of (Triggering unit)) at PositionOfCaster facing Default building facing degrees
      • Unit - Add Storm Bolt to (Last created unit)
      • Set Target = (Target unit of ability being cast)
      • Unit - Order (Last created unit) to Human Mountain King - Storm Bolt Target
      • Set StunDuration = ((Real((Agility of (Triggering unit) (Include bonuses)))) x 0.01)
      • Countdown Timer - Start Timer as a One-shot timer that will expire in StunDuration seconds
Timer Ends
  • StunDurationExpires
    • Events
      • Time - Timer expires
    • Conditions
    • Actions
      • -------- Remove the buff so it wont stun anymore --------
      • Unit - Remove Stunned (Pause) buff from Target
I didnt post removing the memory leaks because i think it would ruin the whole concentration ^^
 
Level 3
Joined
Oct 4, 2007
Messages
27
Thx for that:wink:
But the second Variabel(stun Duration) what kind is it?
 
Last edited:
Level 3
Joined
Oct 4, 2007
Messages
27
Hmm, i want only know how to make the second variable"Set StunDuration = ((Real((Agility of (Triggering unit) (Include bonuses)))) x 0.01)
"
I dont know waht kind of Varibles it is :(((
 
Status
Not open for further replies.
Top