| 07-15-2008, 10:20 AM | #1 |
Thought this would be easy but seems like no matter what I put it dont work Heres what I want When I buy a hero from a tavern to choose a hero for my map, as long as every player also has a hero already to start a timer to start the game, thats it....... I dont want the map to start unless every1 has a hero, well I will add like a start anyway in 30secs or so, but I want my timer for the game to start if every1 chooses early |
| 07-15-2008, 10:45 AM | #2 |
Make a boolean array. When a player selects a hero, set their slot on the array to true. If a player isn't playing, or leaves during selection, you would probably also want to set their slot on the array to true. When you set a value, check the rest of the array. If the whole array from 1 -> no. players is true, start your timer. |
| 07-15-2008, 12:32 PM | #3 |
still cant seem to get it event: unit finishes training action: set players (player # of triggering player)= to true event: players food becomes = to 5 condition: ??? what do I do here? |
| 07-15-2008, 12:43 PM | #4 |
| 07-16-2008, 08:43 AM | #5 |
Doesnt work either :(, and the only differnce my trigger has is in the first trigger I added create timer window for last created timer since I'm pretty sure I need that. Btw Is there a way to make a timer count up instead of down? |
| 07-16-2008, 08:59 AM | #6 | |
Opps, it's from a tavern, so: Quote:
|
| 07-16-2008, 09:24 AM | #7 |
nope, im guessing because of players not playing? not sure |
| 07-16-2008, 09:29 AM | #8 |
It may be that the array is not initialized to false for first 12, or that there is a computer player in slot 1->12? Otherwise try putting text messages everywhere that show the current values of the variables when each action is finished. Edit: Oh, and with the sold unit, you must also change the (Owner of (Triggering Unit)) to (Owner of (Sold Unit)) |
