| 02-06-2006, 03:18 AM | #1 |
Why doesn't this move the unit selected by the player who typed the command to his hero? Code:
Events
Player - Player 1 (Red) types a chat message containing -gm move as An exact match
Player - Player 2 (Blue) types a chat message containing -gm move as An exact match
Player - Player 3 (Teal) types a chat message containing -gm move as An exact match
Player - Player 4 (Purple) types a chat message containing -gm move as An exact match
Player - Player 5 (Yellow) types a chat message containing -gm move as An exact match
Player - Player 6 (Orange) types a chat message containing -gm move as An exact match
Player - Player 7 (Green) types a chat message containing -gm move as An exact match
Player - Player 8 (Pink) types a chat message containing -gm move as An exact match
Player - Player 9 (Gray) types a chat message containing -gm move as An exact match
Player - Player 10 (Light Blue) types a chat message containing -gm move as An exact match
Conditions
(Length of (Entered chat string)) Equal to 8
GMaccess[(Player number of (Triggering player))] Equal to True
Or - Any (Conditions) are true
Conditions
(Name of (Triggering player)) Equal to Linera
Actions
Set SelectedUnit[(Player number of (Triggering player))] = (First unit of group (Units currently selected by (Triggering player)))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (First unit of group (Units currently selected by (Triggering player)))) controller) Equal to User
(Owner of (First unit of group (Units currently selected by (Triggering player)))) Not equal to (Triggering player)
Then - Actions
Unit - Move (First unit of group (Units currently selected by (Triggering player))) instantly to (Position of (First unit of group (Units owned by (Triggering player))))
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (First unit of group (Units currently selected by (Triggering player)))) Equal to (Triggering player)
Then - Actions
Game - Display to (Player group((Triggering player))) the text: You must select ano...
Else - Actions
Do nothing |
| 02-06-2006, 04:42 PM | #3 |
I noticed you set the conditions wrong according to how i need them but thats ok i just used the actions. Now it works perfectly |
