• 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.

Item

Status
Not open for further replies.
Level 2
Joined
Feb 15, 2008
Messages
11
I've tried to create a item that has a 15% chance to send a impale to an attacking unit, so i want anyone that understands triggers to try to help me.
 
Level 10
Joined
Jun 21, 2007
Messages
643
ok heres how it would go

  • Events:
    • Generic Unit Event - A unit is attacked
  • Conditions:
    • Unit Has item of Type "Impale chance item"
  • Actions:
    • set variable - impaleRand random number between 1 and 100
    • if(implaeRand less than or equal to 15)
      • Then:
        • Unit - create "dummy caster for impale"
        • Unit order (last created unit) to "impale" (event response - attacked unit)
        • Unit Remove last created unit from the game
      • Else:
        • do nothing
 
Level 2
Joined
Feb 15, 2008
Messages
11
I've fixed it, so now it cast an impale at the enemy. Thank you for helping me :grin:
 
Status
Not open for further replies.
Top