- Joined
- Jun 27, 2011
- Messages
- 1,866
I've created an afk trigger which makes the player's unit pause and invulnerable if they type -afk.
Now to the problem, why this two triggers isn't working?
+rep and credit for the helper ofcourse!
Now to the problem, why this two triggers isn't working?
-
AFK Dialog
-

Events
-


Player - Player 1 (Red) types a chat message containing -afk as An exact match
-


Player - Player 2 (Blue) types a chat message containing -afk as An exact match
-


Player - Player 3 (Teal) types a chat message containing -afk as An exact match
-


Player - Player 4 (Purple) types a chat message containing -afk as An exact match
-


Player - Player 5 (Yellow) types a chat message containing -afk as An exact match
-


Player - Player 6 (Orange) types a chat message containing -afk as An exact match
-


Player - Player 7 (Green) types a chat message containing -afk as An exact match
-


Player - Player 8 (Pink) types a chat message containing -afk as An exact match
-


Player - Player 9 (Gray) types a chat message containing -afk as An exact match
-


Player - Player 10 (Light Blue) types a chat message containing -afk as An exact match
-


Player - Player 11 (Dark Green) types a chat message containing -afk as An exact match
-


Player - Player 12 (Brown) types a chat message containing -afk as An exact match
-
-

Conditions
-

Actions
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




AFK_Check[(Player number of (Triggering player))] Equal to False
-
-



Then - Actions
-




Game - Display to (All players) for TextTimer seconds the text: (|cffD6AE12[System]|r: + (Player_Colors[(Player number of (Triggering player))] + ((Name of (Triggering player)) + |r is now Away From Keyboard (AFK))))
-




Dialog - Change the title of AFK_Dialog[(Player number of (Triggering player))] to |cff00FFFFYou're aw...
-




Dialog - Create a dialog button for AFK_Dialog[(Player number of (Triggering player))] labelled |cff696969I'm back....
-




Dialog - Show AFK_Dialog[(Player number of (Triggering player))] for (Owner of Castaways[(Player number of (Triggering player))])
-




Set AFK_Check[(Player number of (Triggering player))] = True
-




Unit - Make Castaways[(Player number of (Triggering player))] Invulnerable
-




Unit - Pause Castaways[(Player number of (Triggering player))]
-




Trigger - Add to AFK Click <gen> the event (Dialog - A dialog button is clicked for AFK_Dialog[(Player number of (Triggering player))])
-
-



Else - Actions
-
-
-
-
AFK Click
-

Events
-

Conditions
-

Actions
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Clicked dialog button) Equal to AFK_Button[(Player number of (Triggering player))]
-
-



Then - Actions
-




Dialog - Clear AFK_Dialog[(Player number of (Triggering player))]
-




Game - Display to (All players) for TextTimer seconds the text: (|cffD6AE12[System]|r: + (Player_Colors[(Player number of (Triggering player))] + ((Name of (Triggering player)) + |r is now back.)))
-




Set AFK_Check[(Player number of (Triggering player))] = False
-




Unit - Make Castaways[(Player number of (Triggering player))] Vulnerable
-




Unit - Unpause Castaways[(Player number of (Triggering player))]
-
-



Else - Actions
-
-
-






