The map I'm currently working on allows players to purchase upgrades by pressing buttons on a shared dialog. I want to alter several of the dialog items when upgrades are purchased, but only for the player who purchased the upgrade.
Looking at the trigger editor, it appears I can't specify for which player the dialog items are altered. The only thing I can think to do is put each player on a different team in the lobby so that I can use "Players on Team", but this seems like a wonky workaround.
Is there an easier way to do this? Does anyone know why you can't specify a specific player?
Why don't you link your upgrades dialog buttons to arrays via variables? Example: Upgrade1[4]. [4] means the number of players your game has. So, whenever a dialog item is clicked, you just have to, for example, disallow Upgrade1[Triggering Player] dialog item so only disables the upgrade button for the player who clicked it.
The map I'm currently working on allows players to purchase upgrades by pressing buttons on a shared dialog. I want to alter several of the dialog items when upgrades are purchased, but only for the player who purchased the upgrade.
Looking at the trigger editor, it appears I can't specify for which player the dialog items are altered. The only thing I can think to do is put each player on a different team in the lobby so that I can use "Players on Team", but this seems like a wonky workaround.
Is there an easier way to do this? Does anyone know why you can't specify a specific player?
Any help is very much appreciated! Thank You
Why don't you link your upgrades dialog buttons to arrays via variables? Example: Upgrade1[4]. [4] means the number of players your game has. So, whenever a dialog item is clicked, you just have to, for example, disallow Upgrade1[Triggering Player] dialog item so only disables the upgrade button for the player who clicked it.
@ArchonTheWizard: Go
All Dialog related things are done on a per player basis. Convert player to playergroup should be all that you need.
Thanks Hobbidude! I honestly don't know why I didn't just try this... I saw the option, but assumed it wouldn't work for some reason =P
SC2Maniac... I thought about doing that, but I have over 100 buttons, so it would be quite a bit of work
@ArchonTheWizard: Go
Then just add a variable with double array: Upgrade[X][Y]
You can add up to four.