IceDevil9
BattleForums Senior Member
OK, since the stupid hacker deleted this topic, and because I've been requested, I'll put it back up here....
NOTE- Anything between the [ ]'s is my comment, and not part of the trigger.
HOW TO MAKE A DIALOG
OK, this is like in Wintermaul TD, or Cube D where you pick a difficulty (This is done by setting # of lives and handicaps....handicaps alter there hit points and other various subtle details)
Now before we start making our dialog, we need a couple Variables.
First create a variable named 'Name of Dialog (i.e. Difficulty). Than create X number of dialog buttons, for the exmaple we choose 3, and name them, we'll name ours Easy. Normal, and Hard.
Now with those set it's time to get out triggers going.
Events:
Time-Time Elapsed (Elapsed game time is 2.00 seconds)
Conditions:
None [ Well, you could set it so that it only works if Player 1 is playing...here's how ]
Player Comparison-(Player 1 (Slot Status)) Equal To Is Playing)
Actions:
Dialog-Create Dialog Button (Create a Dialog Button for [ Your dialog, ours will be Difficulty_Picker ] Difficulty_Picker called Easy [ Or whatever else you'd like ]
Set Variable- Set Easy [ Or whatever your Dialog Button Variable is called ] to (Last created Dialog Button)
^ Repeat the above process, renaming each of the Dialog Buttons, and setting all of your variables, than when all thats done...
Dialog-Show/Hide (Show Difficulty_Picker)
So you see, it's rather quite simple, and when you want something to happen after a certain dialog is clicked.....we'll use a simple Set LIves kind of action for a TD...
Events:
Dialog-Dialog Button Is Clicked (A dialog button is clicked for Difficulty_Chooser)
Conditions:
Dialog BUtton Comparison- (Clicked Dialog Button) Equal To Easy
Actions:
Set Variable- (Set Lives = 40)
Rather simple....
HOW TO CONFIGURE A LEADERBOARD
Events:
Time-Time Elapsed (Elapsed Game Time is 2.00 Seconds)
Conditions:
None
[ Unless you'd like something else, lemme know and I'll tell you how to do it ]
Actions:
Leaderboard-Create (Create a Leaderboard for (All Players) named Kills [ Or any other name you choose ]
Now, a simple way of adding players
Leaderboard-Add Player (Add Player [1-12] to (Last Created Leaderboard) with label (Player-Player Name (Name of ((Player [1-12, it has to match your first choice])) and value of 0 [ or whatever you would like them to start out with ]
Now a bit more difficult way, but it helps clear those empty spaces...
If/Then/Else (If (Player [1-12] Slot Status Equal To (Is Playing) Then ( [ Add the player here using the trigger above ^ ] ) else (Do Nothing)
And then once all thats done put this
Leaderboard-Show/Hide (Show (Last created Leaderboard))
Anything else you need lemme know, my mind is sort of blanking....
-Frank
NOTE- Anything between the [ ]'s is my comment, and not part of the trigger.
HOW TO MAKE A DIALOG
OK, this is like in Wintermaul TD, or Cube D where you pick a difficulty (This is done by setting # of lives and handicaps....handicaps alter there hit points and other various subtle details)
Now before we start making our dialog, we need a couple Variables.
First create a variable named 'Name of Dialog (i.e. Difficulty). Than create X number of dialog buttons, for the exmaple we choose 3, and name them, we'll name ours Easy. Normal, and Hard.
Now with those set it's time to get out triggers going.
Events:
Time-Time Elapsed (Elapsed game time is 2.00 seconds)
Conditions:
None [ Well, you could set it so that it only works if Player 1 is playing...here's how ]
Player Comparison-(Player 1 (Slot Status)) Equal To Is Playing)
Actions:
Dialog-Create Dialog Button (Create a Dialog Button for [ Your dialog, ours will be Difficulty_Picker ] Difficulty_Picker called Easy [ Or whatever else you'd like ]
Set Variable- Set Easy [ Or whatever your Dialog Button Variable is called ] to (Last created Dialog Button)
^ Repeat the above process, renaming each of the Dialog Buttons, and setting all of your variables, than when all thats done...
Dialog-Show/Hide (Show Difficulty_Picker)
So you see, it's rather quite simple, and when you want something to happen after a certain dialog is clicked.....we'll use a simple Set LIves kind of action for a TD...
Events:
Dialog-Dialog Button Is Clicked (A dialog button is clicked for Difficulty_Chooser)
Conditions:
Dialog BUtton Comparison- (Clicked Dialog Button) Equal To Easy
Actions:
Set Variable- (Set Lives = 40)
Rather simple....
HOW TO CONFIGURE A LEADERBOARD
Events:
Time-Time Elapsed (Elapsed Game Time is 2.00 Seconds)
Conditions:
None
[ Unless you'd like something else, lemme know and I'll tell you how to do it ]
Actions:
Leaderboard-Create (Create a Leaderboard for (All Players) named Kills [ Or any other name you choose ]
Now, a simple way of adding players
Leaderboard-Add Player (Add Player [1-12] to (Last Created Leaderboard) with label (Player-Player Name (Name of ((Player [1-12, it has to match your first choice])) and value of 0 [ or whatever you would like them to start out with ]
Now a bit more difficult way, but it helps clear those empty spaces...
If/Then/Else (If (Player [1-12] Slot Status Equal To (Is Playing) Then ( [ Add the player here using the trigger above ^ ] ) else (Do Nothing)
And then once all thats done put this
Leaderboard-Show/Hide (Show (Last created Leaderboard))
Anything else you need lemme know, my mind is sort of blanking....
-Frank