• 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] Best way to do this?

Status
Not open for further replies.
Level 4
Joined
Jun 13, 2007
Messages
53
i have an ability made from hardened skin, it has 50% chance to reduce dmg.now, if that 50% chance triggers then i need it to be recognized as an event.
 
Level 9
Joined
Dec 4, 2007
Messages
562
You dont have to base it on hardened skinn, because I dont know if the trigger can know when the hardened skin is stunning/damaging the enemy. But you can if u want.
  • Event
  • A unit is attacked
  • Condition
  • Attacked unit has buff equal to hardened skinn
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (Random integer number between 1 and 100) Less than or equal to 50
    • Then - Actions
      • Unit - Create 1 Dummy (Dummy) for (Owner of (Attacked unit)) at (Position of (Attacked unit)) facing Default building facing degrees
      • Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Attacking unit)
    • Else - Actions
      • Do nothing
That shoud make it 50% chance on every attack to slow the attacker (with shadow strike).
And I hope you know how to make a custom shadow strike :p
And it is easy to change the % chance just put like 40 instead of 50 to get 40%.

Hope that helps you Serpent.
 
Level 12
Joined
Aug 22, 2008
Messages
911
You dont have to base it on hardened skinn, because I dont know if the trigger can know when the hardened skin is stunning/damaging the enemy. But you can if u want.
  • Event
  • A unit is attacked
  • Condition
  • Attacked unit has buff equal to hardened skinn
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (Random integer number between 1 and 100) Less than or equal to 50
    • Then - Actions
      • Unit - Create 1 Dummy (Dummy) for (Owner of (Attacked unit)) at (Position of (Attacked unit)) facing Default building facing degrees
      • Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Attacking unit)
    • Else - Actions
      • Do nothing
That shoud make it 50% chance on every attack to slow the attacker (with shadow strike).
And I hope you know how to make a custom shadow strike :p
And it is easy to change the % chance just put like 40 instead of 50 to get 40%.

Hope that helps you Serpent.

Don't forget to add an expiration timer to the dummy and add to it locust.
 
Status
Not open for further replies.
Top