0rcL0rd
New Member
- Reaction score
- 1
Edit : Fixed
Hi,
I want at the start of my game a dialog for each player (total of 4 players).
DialogButtons are :
Human
Orc
Night Elf
Undead
Variables :
Dialog : Dialog Array
Human : Dialog Button Array
Orc : Dialog Button Array
Night Elf : Dialog Button Array
Undead : Dialog Button Array
this is what i got so far but it only works for player 1
Code
for player 2 :
Hi,
I want at the start of my game a dialog for each player (total of 4 players).
DialogButtons are :
Human
Orc
Night Elf
Undead
Variables :
Dialog : Dialog Array
Human : Dialog Button Array
Orc : Dialog Button Array
Night Elf : Dialog Button Array
Undead : Dialog Button Array
this is what i got so far but it only works for player 1
Code
Trigger:
- Dialog1
- Events
- Time - Elapsed game time is 0.00 seconds
- Conditions
- Actions
- Dialog - Clear Dialog[1]
- Dialog - Change the title of Dialog[1] to Choose Race :
- Dialog - Create a dialog button for Dialog[1] labelled Human
- Set Human[1] = (Last created dialog Button)
- Dialog - Create a dialog button for Dialog[1] labelled Orc
- Set Orc[1] = (Last created dialog Button)
- Dialog - Create a dialog button for Dialog[1] labelled Night Elf
- Set NightElf[1] = (Last created dialog Button)
- Dialog - Create a dialog button for Dialog[1] labelled Undead
- Set Undead[1] = (Last created dialog Button)
- Dialog - Show Dialog[1] for Player 1 (Red)
- Events
for player 2 :
Trigger:
- Dialog2
- Events
- Time - Elapsed game time is 0.00 seconds
- Conditions
- Actions
- Dialog - Clear Dialog[2]
- Dialog - Create a dialog button for Dialog[2] labelled Human
- Set Human[2] = (Last created dialog Button)
- Dialog - Create a dialog button for Dialog[2] labelled Orc
- Set Orc[2] = (Last created dialog Button)
- Dialog - Create a dialog button for Dialog[2] labelled Night Elf
- Set NightElf[2] = (Last created dialog Button)
- Dialog - Create a dialog button for Dialog[2] labelled Undead
- Set Undead[2] = (Last created dialog Button)
- Dialog - Show Dialog[2] for Player 2 (Blue)
- Events