• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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.
 
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
 
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.
Back
Top