• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

[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