| 10-11-2002, 05:12 AM | #1 |
Guest | I need help with doing these things. - Individual kill counts that are trackable by Leaderboard. - Making an event happen when the Countdown Timer reaches a certain number(NOT expiring). - Making a timer for a unit to explode, killing everything around it. - Implimenting a voting system for extending a Countdown Timer. Any help you could provide would be greatly appreciated. Thanks. |
| 10-11-2002, 03:09 PM | #2 |
Because im at work, i cant answer eveything fully, but: 1. You need to make an interger array varible (for sake of explaining, lets call it Kills). Next you will need code to update the varible. Actions: A Unit owned by Player (number of player to keep track of kills) kills a unit Condition: Nothing unless you want to limit who has to die or what unit makes the kill Actions: Set Kills[PlayerNumber(of triggering player)] = (using arthimatic) Kills[PlayerNumber(of triggering player)]+1 Update leaderboard using the new kill varible 2.I belive the countdown timer is not a real, but a interger value. So you would need to do a peridoc time check. say: Events: Every 1 second of game play Conditions: None Actions: Set (Interger varible) = Countdown timer If (interger comparaison)Countdown timer=number, then (action) else (action) 3. would have to look it up 4.First make a interger varible called NumPlayers and a player group varible called AllPlayers (or anything you want it to be). on the map initilazation actions: -Player group remove all players from AllPlayers -For Each interger A 1-(number of max players in your map) do If Player Slot Status is = to Is Playing, Then add Player(Interger A) to player group AllPlayers Set NumPlayers = Count the number of players in AllPlayers Then you can do this: Events: Player chat message contains 'string' as an exact match Conditions: none Actions: set Extend (interger varrible name can be anything) = Extend + 1 If (interger comparison) Extend greater than (arithmatic)NumPlayers/2 then (action) else (action) |
