| 07-26-2002, 09:34 PM | #1 |
Guest | I have a sports-type game in the works. Here're my triggers. Visitorscore (Homescore trigger the same as this one) Events - Unit - A unit enters Visitor Goal <gen> Conditions - (Triggering Unit) Equal to The Troll 0009 <gen> Actions - Set Homescore = (Homescore + 1) Leaderboard - Change value of Player 5 (Yellow) in (Last created Leaderboard) to HomeScore Game - Display to (All players) the text: Gooaal! One point for the Visitor Team! Unit - Kill The Troll 0009 <gen> Troll Check Events - Unit - The Troll 0009 <gen> Dies Conditions - (none) Actions - Unit - Remove (triggering unit) from the game Unit - Create 1 (Unit type of The Troll 0009 <gen>) for Neutral Hostile at (Center of Playfield <gen>) facing 270.00 degrees. ~~ The triggers seem to work fine... once. When the troll enters a goal, it says "Gooall! One point..." the troll vanishes, and appears at center field. The Leaderboard changes the score from 0 to 1 in favor of the goal-scoring team. After this, whenever the troll enteres either Goal region, nothing happens. What can I do? |
| 07-26-2002, 11:20 PM | #2 |
Guest | (Triggering Unit) Equal to The Troll 0009 <gen> that line is your problem when the map creats a new troll it wont be The Troll 0009 it will be some other number. |
| 07-27-2002, 02:01 AM | #3 |
Guest | yep. your condition have to be "unit-type comparision"... |
