• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[General] Item related

Status
Not open for further replies.
Level 2
Joined
Aug 22, 2014
Messages
7
How to make trigger with periodic event. That will count items in playable_map_area and if the number of items Y>=X decrease number of items up to Y<=X-10. Or just delete all the items on map if the number exceeds X. If possible not all but by Type or Class.

One more thing is how to make tome of defense +1 def , tome or potion of attack|move speed +0.01|1 permanently to unit.

And one more thing about sets. How to make so if 1 set item drops from hero this hero lose all of the set bonus attributes.
 
For Sets there is that Item Set system by Wietlol in the Spell section.

This Removes the Items which are over the Limit from the Map.
If you want to Remove only items from a specific Class change the Random item in.. to the one which allows filters with matching.
  • Limit Item
    • Events
      • Time - Every 4.00 seconds of game time
    • Conditions
    • Actions
      • Set Count_Items = 0
      • Item - Pick every item in (Playable map area) and do (Actions)
        • Schleifen - Aktionen
          • Set Count_Items = (Count_Items + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • IF - Conditions
          • Count_Items Greater as Item_Limit_X
        • Then - Actions
          • For each (Integer A) from 1 to (Count_Items - (Item_Limit_X - 10)), do (Actions)
            • Schleifen - Aktionen
              • Item - Remove (Random item in (Playable map area))
        • Else - Actions
 
Last edited:
Status
Not open for further replies.
Top