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

item drop system

Status
Not open for further replies.
Level 11
Joined
Jul 17, 2013
Messages
544
im trying to do item drop system. my map has so many units some shouldnt drop items, some should. and some only should drop if they are killed by certain player. wc3 vanillia drop system would be the best to do that but there is a problem. too many items might drop.

so my question is if you use wc3 vanillia item drop system is it possible to somehow stop fully futher drop chance of items from units if it dropped alreday 5 times?
 
Level 3
Joined
Feb 12, 2020
Messages
34
Make an integer variable and call it Item_Maxed_Count or whatever. I assume you want to have a max of 5 items dropped at the same time? Need info
 
Level 11
Joined
Jul 17, 2013
Messages
544
Make an integer variable and call it Item_Maxed_Count or whatever. I assume you want to have a max of 5 items dropped at the same time? Need info

upload_2020-4-30_23-15-18.png


i think u dont get what i mean excatly i mean if u set drop item like this using the wc3 defeault option is it possible to make it that globally on whole maps no more than x5 draggers of escape than drop?
 
Level 3
Joined
Feb 12, 2020
Messages
34
But you CAN do this with just three triggers, right? I have no experience making an item-heavy map like that. If I would make a trigger I would do this:

#1
Event: Item enter playable map area
Condition: Item equal to dagger of escape
Action: set variable Item_max5 +1

#2
Event: Item leaves playable map area
Condition: Item equal to dagger of escape
Action: set variable Item_max5 -1

#3
Event: Item enters playable map area
Condition: Item_max5 (variable) = greater than 5
Condition: Last created item is equal to Daggers of escape
Action:
Remove last created item
 
Level 11
Joined
Jul 17, 2013
Messages
544
But you CAN do this with just three triggers, right? I have no experience making an item-heavy map like that. If I would make a trigger I would do this:

#1
Event: Item enter playable map area
Condition: Item equal to dagger of escape
Action: set variable Item_max5 +1

#2
Event: Item leaves playable map area
Condition: Item equal to dagger of escape
Action: set variable Item_max5 -1

#3
Event: Item enters playable map area
Condition: Item_max5 (variable) = greater than 5
Condition: Last created item is equal to Daggers of escape
Action:
Remove last created item


oh that would be it but the question is wont it lag? game if its big map
 
Level 3
Joined
Feb 12, 2020
Messages
34
I dont think so, the trigger only checks its condition when an item drops. Im sure this can work. Map size wouldnt matter, it depends on the rate in which items are dropping ;)
 
Level 29
Joined
Feb 18, 2014
Messages
3,593
You can use itempools : Itempools Guide
But you CAN do this with just three triggers, right? I have no experience making an item-heavy map like that. If I would make a trigger I would do this:

#1
Event: Item enter playable map area
Condition: Item equal to dagger of escape
Action: set variable Item_max5 +1

#2
Event: Item leaves playable map area
Condition: Item equal to dagger of escape
Action: set variable Item_max5 -1

#3
Event: Item enters playable map area
Condition: Item_max5 (variable) = greater than 5
Condition: Last created item is equal to Daggers of escape
Action:
Remove last created item
You cannot detect when an item enter playable map unless you periodically check if the item is on the map.
 
Status
Not open for further replies.
Top