• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Creep respawns and loot

Status
Not open for further replies.
Level 2
Joined
Sep 21, 2015
Messages
15
So i have creep re-spawn system and i have some creeps set to drop loot on my map, so i kill them off and they drop the loot, but then once they re-spawn i killed them again and this time they didn't drop any loot. Anyone have any idea how to fix this to where even when they re-spawn they still have their loot tables? Any help will be much appreciated.:goblin_yeah:
 
Level 10
Joined
Apr 4, 2010
Messages
509
You will have to trigger it. Those tables are a one shot thing that only apply to pre-placed units, it's meant for melee maps.
Here is an example of triggered loot.
  • Creep Loot
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Owner of (Dying unit)) Equal to Neutral Hostile
    • Actions
      • Set Dice_Roll = (Random integer number between 1 and 10)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • And - All (Conditions) are true
            • Conditions
              • Dice_Roll Less than 6
              • Dice_Roll Greater than 0
        • Then - Actions
          • -------- Drop common Item --------
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • And - All (Conditions) are true
            • Conditions
              • Dice_Roll Less than 10
              • Dice_Roll Greater than 5
        • Then - Actions
          • -------- Drop good Item --------
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Dice_Roll Equal to 10
        • Then - Actions
          • -------- Drop rare Item --------
        • Else - Actions
 
Status
Not open for further replies.
Top