| 07-13-2005, 12:26 PM | #1 |
In my map, i use the trigger player 1(red) type a exactly chat message ... player 2(blue) type a exactly chat message ... how i make a trigger that works for all user players ? |
| 07-13-2005, 12:43 PM | #2 |
use Triggering Player |
| 07-13-2005, 02:32 PM | #3 |
is not a condition or action, is a event dont exist trigger player at event in the UMSWE exist maximum number of players (12) i use this, and check if they are a user, but dont work i back to my old trigger... player 1(red) type a chat message and copy this for all players |
| 07-13-2005, 07:34 PM | #4 | |
Guest | Quote:
dude triggering player is a event responce! u cant use that in event, the only way is to do it is to do it for all players for all players |
| 07-13-2005, 09:06 PM | #5 |
In order to make the event go off for all players you have to do it like this. Code:
Events- Player 1(red) type a exactly chat message ... Player 2(blue) type a exactly chat message ... Player 3(teal) type a exactly chat message ... Player 4(purple) type a exactly chat message ... Player 5(yellow) type a exactly chat message ... Player 6(orange) type a exactly chat message ... Player 7(green) type a exactly chat message ... Player 8(pink) type a exactly chat message ... Player 9(gray) type a exactly chat message ... Player 10(light blue) type a exactly chat message ... Player 11(dark green) type a exactly chat message ... Player 12(brown) type a exactly chat message ... |
| 07-13-2005, 10:41 PM | #6 |
you can also add the events in a loop from another trigger. Something like local integer i=0 loop exitwhen i==12 call TriggerRegisterPlayerChatEvent( gg_trg_myTrigger, Player(i), "My Message to Detect", true) set i=i+1 endloop |
| 07-14-2005, 12:33 PM | #7 |
ok, let me test this... i dont know jass, but this code is easy, they dont make lag ?? |
| 07-14-2005, 01:17 PM | #8 |
Shouldn't cuase any lag. You're just add the twelve events, this way is automated. By the way, the last value, its true if you want exact match and false if you don't. |
| 07-14-2005, 02:23 PM | #9 |
i need two triggers ? the first are this jass and the second is my trigger (without event)? i need to change the mytrigger sentence in gg_trg_myTrigger ? |
| 07-14-2005, 05:01 PM | #10 |
well I'm going to assume you probably already have a trigger that runs at map initialization so you can using the custom script action copy these lines wholesale. (note local integer i=0 should be the first statement in your trigger actions) Your trigger you want to execute with these events, should be eventless. You will change gg_trg_myTrigger to whatever the name of your trigger is. If your trigger is myTrigger it will become gg_trg_myTrigger, if it is "My Trigger is oddly named" then it will become gg_trg_My_Trigger_is_oddly_named Thats about it. |
