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

how to Summons a Special hero/helper on every attack with a chance ?

Status
Not open for further replies.
Level 4
Joined
Aug 13, 2010
Messages
60
here i want to ask how to summon a special hero/helper that help me to attack my enemy that last for 15 seconds. ITs summons with a 15% chance on every attack when I acquire a special item ( only those who's acquire the item)!

please give me the trigger on GUI version. THX
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
You must remember that Hero is a unique type of unit which each differs from one another, unlike Normal Unit which can be infinitely spawn, Hero Units can be revived, therefore creating a New Hero will possibly creates a unit leak to the map

You can only do this as efficient if you make it a Normal Unit spawn or Illusion of the Hero spawn.

  • Chance To Summon Unit
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Random integer number between 1 and 100) Less than or equal to 15
      • ((Attacking unit) has an item of type Summoning Dagger) Equal to True
    • Actions
      • Set TempLoc = (Position of (Attacking unit))
      • Unit - Create 1 SpecialUnit for (Owner of (Attacking unit)) at TempLoc facing Default building facing degrees
      • Unit - Add a 15.00 second Generic expiration timer to (Last created unit)
      • Custom script: call RemoveLocation(udg_TempLoc)
Condition 1 is Integer Comparison - Math - Random Number
Condition 2 is Boolean Comparison - Hero - Hero Has Item Of Type
 
Status
Not open for further replies.
Top