• 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] How to make hero drop items once they leave

Status
Not open for further replies.
Level 16
Joined
Mar 3, 2006
Messages
1,564
  • Player Leaves
    • Events
      • Player - Player 1 (Red) leaves the game
      • Player - Player 2 (Blue) leaves the game
      • Player - Player 3 (Teal) leaves the game
      • Player - Player 4 (Purple) leaves the game
    • Conditions
    • Actions
      • For each (Integer B) from 1 to MaxHeroNumber, do (Actions)
        • Loop - Actions
          • For each (Integer A) from 1 to 6, do (Actions)
            • Loop - Actions
              • Item - Create (Item-type of (Item carried by PlayerHero[(Integer B)] in slot (Integer A))) at ((Triggering player) start location)
Not sure if it will work or not; haven't tried it.
 
Level 4
Joined
Jul 31, 2008
Messages
109
Events:player leaves a game
Actions:Set integer - hero - slots bein used
If integer not equal 0
then
Hero - drop item from slot 1(1-6)
else
do nothing
dont really useful but it is easier to understand
 
Status
Not open for further replies.
Top