- Joined
- Dec 10, 2008
- Messages
- 850
Ok, so I've been working on a dialog system that leads to another dialog that alows you to pick a unit. It works fine, until I try to add a title to it. I've tried setting them in the init trigger, I've tryed setting them when they're made, but nothing is working unless I remove the titles, but then it isn't noob-friendly.
Note that the buttons arn't properly labed yet.
Any insite as to why these don't work is accepted. But dont just say "OMG INEFFECTIVE!!!!!1111oneone"
Note that the buttons arn't properly labed yet.
-
Init
-
Events
- Map initialization
- Conditions
-
Actions
- Set SpawnAmount = 30
- Dialog - Change the title of PDialog1 to Class Type's
- Dialog - Create a dialog button for PDialog1 labelled Mage's
- Set PDialogBtn[0] = (Last created dialog Button)
- Dialog - Create a dialog button for PDialog1 labelled Melee
- Set PDialogBtn[1] = (Last created dialog Button)
- Dialog - Create a dialog button for PDialog1 labelled Ranger's
- Set PDialogBtn[2] = (Last created dialog Button)
- Dialog - Change the title of PDialog2 to Melee Units
- Dialog - Change the title of PDialog3 to Mage Type
- Dialog - Change the title of PDialog4 to Ranger Type
- Dialog - Create a dialog button for PDialog3 labelled Fire
- Set PDialogBtn[6] = (Last created dialog Button)
- Dialog - Create a dialog button for PDialog3 labelled Water
- Set PDialogBtn[7] = (Last created dialog Button)
- Dialog - Create a dialog button for PDialog3 labelled Lightning
- Set PDialogBtn[8] = (Last created dialog Button)
- Dialog - Create a dialog button for PDialog2 labelled Warrior
- Set PDialogBtn[3] = (Last created dialog Button)
- Dialog - Create a dialog button for PDialog2 labelled Tank
- Set PDialogBtn[4] = (Last created dialog Button)
- Dialog - Create a dialog button for PDialog2 labelled Defense
- Set PDialogBtn[5] = (Last created dialog Button)
- Dialog - Create a dialog button for PDialog2 labelled Tank
- Set PDialogBtn[3] = (Last created dialog Button)
- Dialog - Create a dialog button for PDialog2 labelled Tank
- Set PDialogBtn[4] = (Last created dialog Button)
- Dialog - Create a dialog button for PDialog2 labelled Tank
- Set PDialogBtn[5] = (Last created dialog Button)
-
Events
-
Picking Main
-
Events
- Time - Elapsed game time is 10.00 seconds
- Conditions
-
Actions
- Dialog - Create a dialog button for PDialog1 labelled Mage's
- Set PDialogBtn[0] = (Last created dialog Button)
- Dialog - Create a dialog button for PDialog1 labelled Melee
- Set PDialogBtn[1] = (Last created dialog Button)
- Dialog - Create a dialog button for PDialog1 labelled Ranger's
- Set PDialogBtn[2] = (Last created dialog Button)
-
Player Group - Pick every player in (All players) and do (Actions)
-
Loop - Actions
- Dialog - Show PDialog1 for (Picked player)
-
Loop - Actions
-
Events
-
PickingClass
-
Events
- Dialog - A dialog button is clicked for PDialog1
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Clicked dialog button) Equal to PDialogBtn[1]
-
Then - Actions
- Dialog - Show PDialog2 for (Triggering player)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Clicked dialog button) Equal to PDialogBtn[0]
-
Then - Actions
- Dialog - Show PDialog3 for (Triggering player)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Clicked dialog button) Equal to PDialogBtn[2]
-
Then - Actions
- Dialog - Show PDialog4 for (Triggering player)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
The other ones will look the same as this
-
PickingMelee
-
Events
- Dialog - A dialog button is clicked for PDialog2
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Clicked dialog button) Equal to PDialogBtn[4]
-
Then - Actions
- Unit - Create 1 Footman for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events