• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

how can it work?

Status
Not open for further replies.
Level 9
Joined
Aug 15, 2007
Messages
261
how can I make that trigger activate when a unit enters all the region's in the trigger
  • Untitled Trigger 001
    • Events
      • Unit - A unit enters Region 000 <gen>
      • Unit - A unit enters Region 001 <gen>
      • Unit - A unit enters Region 002 <gen>
    • Conditions
    • Actions
      • Unit - Change ownership of Footman 0000 <gen> to Neutral Hostile and Change color
when it's that way the unit goes to 1 of the region's and the footman becomes enemy
10x for helping :infl_thumbs_up:
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
Change ownership of Event Response - Triggering Unit :/ and events are okay
If you want only footmans become enemy
then add a condition
Unit type of Event Response - Triggering Unit equal to Footman
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
You didnt get what I mean Netural Hostile is enemy already enemy of every player that part is true
Just
Unit - Change ownership of Footman 0000 <gen> to Neutral Hostile and Change color
is wrong
Unit - Change ownership of Event Response - Triggering Unit to Neutral Hostile and Change color
 
Level 9
Joined
Aug 15, 2007
Messages
261
You didnt get what I mean Netural Hostile is enemy already enemy of every player that part is true
Just
Unit - Change ownership of Footman 0000 <gen> to Neutral Hostile and Change color
is wrong
Unit - Change ownership of Event Response - Triggering Unit to Neutral Hostile and Change color

I enter a region WHIT UNIT THEN ANOTHER UNIT IS CHANGET TO ENEMY
 
mm... a unit cant go to 3 places at once. but if you want it to be like, you have to enter 1, then 2, then 3, or any order, to activate so its enemy then make a trigger that has Event - Enters region, Condition - Region = (your Region), Action - If Then Else == IF - trigger x and trigger y off equal to true THEN - Change ownership of unit to hostile ELSE - Turn off this trigger. then make 3 of those and change the location for each one to the desired one.
 
Level 4
Joined
Sep 19, 2007
Messages
78
im not too good with triggers but would this work? set a condition that requires the footman to enter all the regions before it switches ownership??? that might have been what just spectating suggested im to lazy at the moment to read it...
 
Level 2
Joined
Sep 21, 2007
Messages
26
should have read a basic gui triggering tutorial -.-'


what you have to untherstand is that a event will tell the game to run the trigger. What you done is like saying run the action with condition 1 OR condition 2 OR condition 3.

What you want to do is let the game check if the unit has entered the other regions alreaddy, this is done with a condition.

so do like spect sugjested, do the check in a action called a "if-then-else" where you or change the footman or mark the region as viseted, by changing a variable or if you onley have to run it once turning off the trigger which is pritty smart as it won't be run invain again when entering the same region.
 
Level 9
Joined
Aug 15, 2007
Messages
261
mm... a unit cant go to 3 places at once. but if you want it to be like, you have to enter 1, then 2, then 3, or any order, to activate so its enemy then make a trigger that has Event - Enters region, Condition - Region = (your Region), Action - If Then Else == IF - trigger x and trigger y off equal to true THEN - Change ownership of unit to hostile ELSE - Turn off this trigger. then make 3 of those and change the location for each one to the desired one.
"any order" I need exacly that but can't understand sone of the trigger you made
can you do it on the map or add [ Trigger}?
:infl_thumbs_up:
( enter 1, then 2, then 3, can be usefull too)
Turok-Titan
hero goes in the regions and then Footmen become's an enemy
 
Level 2
Joined
Sep 21, 2007
Messages
26
ugh i don't have annything better to do annyway...

please try to learn from it not just copy it
 

Attachments

  • bla.w3x
    16.9 KB · Views: 60

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,259
Well it would need to use handle vars to attach to the entering unit which rects have been entered. Basicly it would work that each region the unit enters stores on that unit what region it has entered (a mark) via the handle vars. Then it checks to see if the unit has entered all 3 regions by checking if the mark of each region has been attached and if so it would remove all marks and make it neutral hostile. Ofcourse a clean up trigger is needed incase the unit dies or else it might leak.
 
Level 2
Joined
Sep 21, 2007
Messages
26
ow right =/

damn thought it was simple :eekani:.

you don't need it if onley kenny can actevate it not the priest by adding the condition triggering unit = kenny
 
Level 2
Joined
Sep 21, 2007
Messages
26
Now you made it a chalenge :wink: Whould this work?


  • region 1
    • Events
      • Unit - A unit enters Region 000 <gen>
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Triggering unit) is in Entered2Regions) Equal to True
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Custom value of (Triggering unit)) Equal to (5,4,3)
            • Then - Actions
              • Unit Group - Remove (Triggering unit) from Entered2Regions
              • -------- posebly disabeling the triggers destroying the groops--------
              • -------- final action --------
              • Skip remaining actions
            • Else - Actions
              • Skip remaining actions
        • Else - Actions
          • Do nothing
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Triggering unit) is in Entered1Region) Equal to True
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Custom value of (Triggering unit)) Equal to (1,2,3)
            • Then - Actions
              • Skip remaining actions
            • Else - Actions
              • Unit Group - Remove (Triggering unit) from Entered1Region
              • Unit - Set the custom value of (Triggering unit) to ((Custom value of (Triggering unit)) + (1,2,3))
              • Unit Group - Add (Triggering unit) to Entered2Regions
              • Skip remaining actions
        • Else - Actions
          • Do nothing
      • Unit - Set the custom value of (Triggering unit) to (1,2,3)
      • Unit Group - Add (Triggering unit) to Entered1Region
this X 3


  • unit from groops died
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Triggering unit) is in Entered1Region) Equal to True
        • Then - Actions
          • Unit Group - Remove (Triggering unit) from Entered1Region
          • Skip remaining actions
        • Else - Actions
          • Do nothing
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Triggering unit) is in Entered2Regions) Equal to True
        • Then - Actions
          • Unit Group - Remove (Triggering unit) from Entered2Regions
        • Else - Actions
          • Do nothing

can you tell me if This has leaks left? onley just started reading about them.
 
Last edited:
this is what i was talking about...

  • Enter 1
    • Events
      • Unit - A unit enters (Region 1)
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • And - All (Conditions) are true
            • Conditions
              • (Enter 2 <gen> is on) Equal to False
              • (Enter 3 <gen> is on) Equal to False
        • Then - Actions
          • Unit - Change ownership of (your unit) to Neutral Hostile and Change color
        • Else - Actions
          • Trigger - Turn off (This trigger)
  • Enter 2
    • Events
      • Unit - A unit enters (Region 2)
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • And - All (Conditions) are true
            • Conditions
              • (Enter 1 <gen> is on) Equal to False
              • (Enter 3 <gen> is on) Equal to False
        • Then - Actions
          • Unit - Change ownership of (your unit) to Neutral Hostile and Change color
        • Else - Actions
          • Trigger - Turn off (This trigger)
  • Enter 3
    • Events
      • Unit - A unit enters (Region 3)
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • And - All (Conditions) are true
            • Conditions
              • (Enter 1 <gen> is on) Equal to False
              • (Enter 2 <gen> is on) Equal to False
        • Then - Actions
          • Unit - Change ownership of (your unit) to Neutral Hostile and Change color
        • Else - Actions
          • Trigger - Turn off (This trigger)
Any order you enter the regions, once youve entered the last one, it will change the ownership. tell me if that works cause i didnt test it out.
 
Level 2
Joined
Sep 21, 2007
Messages
26
I kinda stole your idea in the bla.w3x i added.

aperentley it has to be that one unit has to enter all the area's. So you have to acount for diferent unit's of the same player.
 
Level 2
Joined
Sep 21, 2007
Messages
26
what's wrong with the trigger in post 17?
thought the use of custom value(CV) was smart, if you add a other amount then 1,2,3 you might be able to leave the unitgroops.

1, 10 and 100 for instence. if CV=110 the unit has been in region 2 and 3 alreaddy if it's 1> CV <110 it has been in one of the groops alreaddy and if the CV is 0 add 1
hmm forgot if 1 do nothing.
 
Status
Not open for further replies.
Top