- Joined
- Nov 3, 2009
- Messages
- 687
Haha!
I'm really sorry and this is my last thread today :
So I have problem, I want to make that when player writes repick and IF HE HAS AN ITEM(FLAG) with him it would be dropped on the ground before repicking.
This is my trigger which doesn't work:
I'm really sorry and this is my last thread today :
So I have problem, I want to make that when player writes repick and IF HE HAS AN ITEM(FLAG) with him it would be dropped on the ground before repicking.
This is my trigger which doesn't work:
-
Repick Sky
-
Events
- Player - Player 1 (Red) types a chat message containing -repick as An exact match
- Player - Player 2 (Blue) types a chat message containing -repick as An exact match
- Player - Player 3 (Teal) types a chat message containing -repick as An exact match
- Player - Player 4 (Purple) types a chat message containing -repick as An exact match
- Player - Player 5 (Yellow) types a chat message containing -repick as An exact match
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
- ((Triggering unit) has Flag_Horde) Equal to True
-
Conditions
-
Or - Any (Conditions) are true
-
Actions
- Hero - Drop Flag_Horde from (Triggering unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Repick[(Player number of (Triggering player))] Equal to False
-
Then - Actions
- Player - Add 250 to (Triggering player) Current gold
- Set Repick[(Player number of (Triggering player))] = True
- Set repickgroup = (Units owned by (Triggering player))
-
Unit Group - Pick every unit in repickgroup and do (Actions)
-
Loop - Actions
- Unit - Remove (Picked unit) from the game
- Unit - Create 1 Circle of Power for (Triggering player) at (Random point in repicksky <gen>) facing Default building facing degrees
- Camera - Pan camera for (Triggering player) to (Center of repicksky <gen>) over 0.00 seconds
-
Loop - Actions
- Custom script: call DestroyGroup(udg_repickgroup)
-
Else - Actions
- Game - Display to (Player group((Triggering player))) the text: You can only repick...
-
If - Conditions
-
Events