| 03-23-2004, 04:28 PM | #1 |
I have a trigger that sets any player that leaves to have full share of units to all allies. Sure enough, it works, the hero icon appears, the hero is selectable... but it cannot be issued any orders. What am I missing? |
| 03-23-2004, 05:04 PM | #2 |
I made a trigger that did the same thing, but the hero can be issued orders without a problem. Could you post the trigger you're using? |
| 03-23-2004, 05:43 PM | #3 |
Code:
Player Leave T1
Events
Player - Player 1 (Red) leaves the game
Player - Player 2 (Blue) leaves the game
Player - Player 3 (Teal) leaves the game
Player - Player 4 (Purple) leaves the game
Player - Player 5 (Yellow) leaves the game
Conditions
Actions
Game - Display to (All players) for 10.00 seconds the text: ((Name of (Triggering player)) + |c0000cdf9 has left the game|r)
Player Group - Remove (Triggering player) from Team1
Set Playerleft = (Playerleft - 1)
Set PlayersTeam1 = (PlayersTeam1 - 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
PlayersTeam1 Not equal to 0
Then - Actions
Player Group - Pick every player in Team1 and do (Player - Add (((Triggering player) Current gold) / PlayersTeam1) to (Picked player) Current gold)
Player Group - Pick every player in Team1 and do (Player - For (Triggering player), turn Full shared units On toward (Picked player))
Else - Actions
Do nothing
Player - Set (Triggering player) Current gold to 0
Trigger - Run Update Board <gen> (checking conditions)
|
| 03-23-2004, 06:17 PM | #4 |
Here's the line I used: Code:
Game - Grant shared vision and full shared unit control of (Triggering player) units with his/her allies |
| 03-25-2004, 09:52 PM | #5 |
Panto is right, you should use that...but i'm still curious myself to know why your code does that. I've had problems in the past using more than one event per trigger. I'd suggest making it E: Player leaves game C: Player belongs to team1 and another thing i notice that may or may not be cuasing problems, is you remove the player from the team BEFORE you distribute their gold and their control. It just looks dangerous to me, although, i'm still more or less a newb programmer. |
| 03-28-2004, 12:36 PM | #6 |
easy way to do it just dl the map Soul World from the maps section it easy to understand and it's not in code for newbies that wanna check it out |
