Warcraft III resources & community, 2003–2006 · archived

trigger help

4 posts
#1

trigger help

how can i make it so a trigger is activated when a player types a message and it only works if his unit is in a certain region?

thanks
-tom barker
#2
Ever thought about turning on the trigger when they go in the region and turn it off when they leave, plus a check when they type the string to see if there are any units in the region
#3

Try This

How about this:

Have a trigger like-
Unit Enters Region
Unit Types = 2 (If u want one)
Turn on trigger (Your typnig trigger here)

Then also do:

Unit Leaves region
Unit = 2 (your unit here,if one)
Turn off your typing trigger

It should work, but u didn't specicfy what u wanted excatly. :lol:

Good Luck
#4
I dont Understand Full but i give a Try

Make 3 Triggers.

Trigger 1: (Trigger 1 is not ON (Turned off))

Event: A player(Red) whrite (Text) as an exact match
Condition: None
Action: (The Action you want)
--------------------------------------------------
Trigger 2: (This trigger is ON (Turned on))

Event: Unit enters Region (Region of name)
Condition: Owner of entering unit equal to Player(Red)
Action: Turn on (Trigger 1)
---------------------------------------------------
Trigger 3: (this trigger is ON(Trigger is turned on))

Event: Unit Leaves Region (Region of name)
Condition: Owner of leaving Region Equal to Player(Red)
Action: Turn off (Trigger 1)
----------------------------------------------------

Hopes this was for help...