In my map players can buy buffs with dialogs which are applied to their units. However, they can only have a certain number of active buffs which are again specified inside a dialog. I thought it might be a good idea to use a pulldown list to store the buffs a player has bought and then use this list to let players choose the buff they want from it. I was able to add all buffs correctly to the list for each player (add list item ITEM to PULLDOWN for triggering player), but I have no idea how to keep working at that point. The buffs can be bought in any order, which means the list looks different for all players.
How do I know which item a player has selected? As far as I see one can only access list items with their index, but doesnt help me, because I need to know their entry.
Thanks in advance!
In my map players can buy buffs with dialogs which are applied to their units. However, they can only have a certain number of active buffs which are again specified inside a dialog. I thought it might be a good idea to use a pulldown list to store the buffs a player has bought and then use this list to let players choose the buff they want from it. I was able to add all buffs correctly to the list for each player (add list item ITEM to PULLDOWN for triggering player), but I have no idea how to keep working at that point. The buffs can be bought in any order, which means the list looks different for all players. How do I know which item a player has selected? As far as I see one can only access list items with their index, but doesnt help me, because I need to know their entry. Thanks in advance!
Indexes are the only option, you'll have to keep track of what the players buy as they buy them.
Sad. What is best way to keep track of them?
@madmaxII:
Arrays!