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

Most efficient way for per player dialogs.

Status
Not open for further replies.
Level 3
Joined
May 4, 2008
Messages
51
Well I'm wondering what is the most efficient way of making different dialogs for each players. Like a hero dependent skill tree for exemple.

Would I be better to create one dialog for each players at the start of the game?
 
Level 6
Joined
Apr 15, 2012
Messages
205
In my opinion, you should make a dialog and then attach button dialog items to it. There should be triggers which triggers when the button dialog items are clicked. In the trigger there should be a if then-else action which does various things depending on the triggering player. If for example the button should be removed from the screen for one player, then just simple hide the button dialog item from the player. Is this the answer to your question?
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Apparently there is a limit to dialog elements. Only a certain number can exist at any given time and as they exist for all players this might make it impossible to have separate dialogs for everything. In this case the efficient approach would be to make elements into a pool rather than static use. Each player allocates a certain button for a certain use rather than using a button allocated for a use for all players. The only disadvantage with this approach is you need to keep track of allocations and uses for each player yourself (using your own script).
 
Level 6
Joined
Apr 15, 2012
Messages
205
I know that Screen Dialog Buttons have a limit (50). I'm not sure about the limit of dialog item buttons though.

In the map that I'm currently making, I have over 50 dialog item buttons.
 
Level 3
Joined
May 4, 2008
Messages
51
Based on what you guys wrote, I guess the most efficient way is to keep track of dialog buttons and dynamically change images and functions depending on the player's usage.
 
Status
Not open for further replies.
Top