| 04-13-2004, 11:22 AM | #1 |
I am making a surviaval map.All players are in one force.How to make rounds trigger(multiboard? ) so that whenever computers units are killed that it goes to the next round and new comp units are spawned. |
| 04-13-2004, 11:45 AM | #2 |
Event: Generic Unit Event - Unit dies Conditions: Owner of Dying unit equal to player 12 (If player 12 is computer with the attacking units) Actions: Set variable Units_Killed = Units_Killed + 1 If (Units_Killed) More than or Equal to (Units_In_Wave) then do (Then Actions) else do (Else Actions) -Then: --Unit - Create Units_In_Wave Footman for player 12 in Spawn_Region --Set variable Units_Killed = 0 That should work if attacker is player 12 and you want to spawn footmen for the wave. |
| 04-13-2004, 05:48 PM | #3 |
Well,that helped a little bit,but I dont understand something because I am N00b.First, are Units_Killed and Units_In_Wave unit variable type. Second,the problem is(i think)I want to make more unit types in one wave. I want to make something like leaderboard that looks like this Rounds = 1* *round number should activate next trigger(next wave). |
| 04-13-2004, 06:11 PM | #4 |
Yes, Units_Killed and Units_In_Wave should be integer variables. And if you want more than one unit type in a wave, for an example if you want it to make 10 units of 4 types, make Units_In_Wave 10 and create 4 actions which each spawns Units_In_Wave units of the unit type you want them to be. For the leaderboard, I think there are some leaderboard tutorials around, though I'm not sure. |
| 04-13-2004, 06:22 PM | #5 |
Well,there arent any tutorials about leaderboards,but it is simple,how to make round board? |
| 04-13-2004, 06:31 PM | #6 |
First create a trigger like this: Event: Time - Time elapsed is 2 seconds Conditions: Actions: Leaderboard - Create a leaderboard for (All players) titled Wave Leaderboard - Add Player 12 (Brown) to (Last created leaderboard) with label Wave number: and value Wave Then change the spawning trigger I gave and add these to actions: Set variable Wave = Wave + 1 Leaderboard - Change the value for Player 12 (Brown) in (Last created leaderboard) to Wave And Wave is a new integer variable you have to create. |
| 04-13-2004, 06:35 PM | #7 |
I made something of that before,but I already got kills multiboard and it works(i copied it from dixel TD): Bounty Events Unit - A unit owned by Player 11 (Dark Green) Dies Conditions Actions Player - Add Enemygold to (Owner of (Killing unit)) Current gold Player Group - Pick every player in (All players controlled by a User player) and do (If ((Owner of (Killing unit)) Equal to (Picked player)) then do (Set Kills[(Player number of (Picked player))] = (Kills[(Player number of (Picked player))] + 1)) else do (Do nothing)) Leaderboard - Change the value for (Owner of (Killing unit)) in (Last created leaderboard) to Kills[(Player number of (Owner of (Killing unit)))] Leaderboard - Sort (Last created leaderboard) by Value in Descending order 2. Events Map initialization Conditions Actions Unit - Create Units_in_wave Footie for Player 11 (Dark Green) at (Center of Start 1 <gen>) facing Default building facing degrees Unit - Create Units_in_wave Footie for Player 11 (Dark Green) at (Center of Start 2 <gen>) facing Default building facing degrees What should i do so the units spawn,i already made movement trigger |
| 04-13-2004, 06:37 PM | #8 |
Thx for multiboard help,I was writting last reply while you posted yours :D |
