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

Repick Hero

Status
Not open for further replies.
Level 10
Joined
Jul 22, 2007
Messages
261
Im making a custom hero arena, i cant get the Repick to work i set it so its like this (attackment)
 

Attachments

  • Repick.JPG
    Repick.JPG
    185.8 KB · Views: 118
Level 10
Joined
Jul 22, 2007
Messages
261
  • Unlearn and Gold
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Repick
    • Actions
      • Unit - Create 1 Hero Chooser for (Owner of (Hero manipulating item)) at (Center of Pick <gen>) facing Default building facing degrees
      • Unit - Kill (Hero manipulating item)
      • Unit - Set the custom value of (Dying unit) to (((Integer((Life of (Dying unit)))) - 200) / 25)
      • Wait 0.20 seconds
      • Player - Add ((Strength of (Hero manipulating item) (Exclude bonuses)) - 1) to (Owner of (Entering unit)) Current lumber
      • Player - Add ((Agility of (Hero manipulating item) (Exclude bonuses)) - 1) to (Owner of (Entering unit)) Current lumber
      • Player - Add ((Intelligence of (Hero manipulating item) (Exclude bonuses)) - 1) to (Owner of (Entering unit)) Current lumber
      • Player - Add (Custom value of (Dying unit)) to (Owner of (Entering unit)) Current lumber
      • Player - Add ((Level of Acid Bomb for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Banish for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Bash for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Black Arrow for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Blink for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Blizzard for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Breath of Fire for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Brilliance Aura for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Carrion Beetles for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Chain Lightning for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Cleaving Attack for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Cluster Rockets for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Command Aura for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Critical Strike for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Death Coil for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Death Pact for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Dark Ritual for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Demolish for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Devotion Aura for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Divine Shield for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Drunken Brawler for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Drunken Haze for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Endurance Aura for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Engineering Upgrade for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Entangling Roots for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Evasion for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Fan of Knives for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Feedback for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Feral Spirit True for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Flame Strike for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Force of Nature for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Forked Lightning for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Frost Armor for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Frost Arrows for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Frost Nova for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Healing Spray for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Healing Wave for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Hex for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Holy Light for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Howl of Terror for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Immolation for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Impale for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Incinerate for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Life Drain for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Mana Burn for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Mana Shield for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Mirror Image for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Pocket Factory for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Posion Arrows TRUE for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Rain of Fire for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Searing Arrows for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Serpent Ward for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Shadow Strike for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Shockwave True for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Silence for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Siphon Mana for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Sleep for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Soul Burn for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Spiked Carapace for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Storm Bolt True for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Summon Bear for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Summon Hawk for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Summon Lava Spawn for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Summon Quilbeast for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Summon Water Elemental for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Thorns Aura for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Thunder Clap for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Trueshot Aura for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Unholy Aura for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Vampiric Aura for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of War Stomp for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Wind Walk for (Dying unit)) x 400) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Animate Dead for (Dying unit)) x 1000) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Avatar for (Dying unit)) x 1000) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Big Bad Voodoo for (Dying unit)) x 1000) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Blade Sheild for (Dying unit)) x 1000) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Charm for (Dying unit)) x 1000) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Death And Decay for (Dying unit)) x 1000) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Doom for (Dying unit)) x 1000) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Earthquake for (Dying unit)) x 1000) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Infernal TRUE for (Dying unit)) x 1000) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Locust Swarm for (Dying unit)) x 1000) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Mass Teleport for (Dying unit)) x 1000) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Phoenix for (Dying unit)) x 1000) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Reincarnation True for (Dying unit)) x 1000) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Resurrection for (Dying unit)) x 1000) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Stampede for (Dying unit)) x 1000) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Starfall for (Dying unit)) x 1000) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Storm, Earth, And Fire for (Dying unit)) x 1000) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Tornado for (Dying unit)) x 1000) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Tranquility for (Dying unit)) x 1000) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Transmute for (Dying unit)) x 1000) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Vengeance for (Dying unit)) x 1000) to (Owner of (Entering unit)) Current gold
      • Player - Add ((Level of Volcano for (Dying unit)) x 1000) to (Owner of (Entering unit)) Current gold
      • Camera - Pan camera for (Owner of (Hero manipulating item)) to (Center of Pick <gen>) over 0.00 seconds
      • Trigger - Turn off Enter <gen>
      • Trigger - Turn on Repick Enter <gen>
why dosent it add lumber?
 
Level 9
Joined
Apr 3, 2008
Messages
700
Triggering player shouldn't work, really.

Omg =)
Thiggering player works with all generic unit events, and with some other also.
I know that there is no triggering player.
I didn't say that it should work...
I've just said that it WORKS.
Please, don't write all this criticism again.
Just check it.
And compare what is more optimized.

JASS:
GetTriggerPlayer()

JASS:
GetOwningPlayer(GetTriggerUnit())

JASS:
GetOwningPlayer(GetManipulatingUnit())

And I read somewhere on THW that "triggering unit" / "triggering player" is much faster than other natives that returns unit / player.

"Triggering unit" also don't turn MUI spells to non-MUI.
 
Status
Not open for further replies.
Top