Region

Viceroy_Shem

New Member
Reaction score
0
can i make a region that
commands only one player
for example everything in this region4 attack move to region5
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
show us your triggers and we can most probably help you alot easier.
 

Viceroy_Shem

New Member
Reaction score
0
well im still planning about it
after learning that once a gate is opened and not destroyed
the computer moves to the next targeted gate


can you please make me 1
 

X.Terror.X

New Member
Reaction score
10
Trigger:
  • Events
    • Time - Every 0.50 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in Region 4 matching (((Owner of (Matching unit)) Equal to Player 1 (Red)) and ((Issued order) Not equal to (Order(attack))))) and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Attack-Move To (Center of Region 5)


is this something you want?
or you might let it trigger when the unit really enters the region.


Trigger:
  • Events
    • Unit - A unit enters Region 4
    • Conditions
      • (Owner of (Triggering unit)) Equal to Player 1 (Red)
    • Actions
      • Unit - Order (Triggering unit) to Attack-Move To (Center of Region 5)
 

Viceroy_Shem

New Member
Reaction score
0
Trigger:
  • Events
    • Time - Every 0.50 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in Region 4 matching (((Owner of (Matching unit)) Equal to Player 1 (Red)) and ((Issued order) Not equal to (Order(attack))))) and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Attack-Move To (Center of Region 5)


is this something you want?
or you might let it trigger when the unit really enters the region.


Trigger:
  • Events
    • Unit - A unit enters Region 4
    • Conditions
      • (Owner of (Triggering unit)) Equal to Player 1 (Red)
    • Actions
      • Unit - Order (Triggering unit) to Attack-Move To (Center of Region 5)
hehehe the answer to my problem
thanks mate
thank you very much
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
hehehe the answer to my problem
thanks mate
thank you very much
i wouldnt recommend using those triggers posted above since they leak heavily. periodic unit group leaks are a bad thing to happen.

Trigger:
  • Events
    • Time - Every 0.50 seconds of game time
    • Conditions
    • Actions
      • set Temp_Group = (Units in Region 4 matching (((Owner of (Matching unit)) Equal to Player 1 (Red)) and ((Issued order) Not equal to (Order(attack)))))
      • set Temp_Point = (Center of Region 5)
      • Unit Group - pick all units in Temp_Group and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Attack-Move To TempPoint
      • custom script: call DestroyGroup (udg_Temp_Group)
      • custom script: call RemoveLocation (udg_Temp_Point)


thats how it should look like if you want it to work properly.

@X.Terror.X: if you know what memory leaks are you shouldnt post leaking triggers in this forums section because alot of beginners do not know. if you dont know what they are you should better read some good turtorials about memory leaks before posting triggers here again. memory leaks are a serious danger to wc3 map making and should be avoided as best as possible.
 

X.Terror.X

New Member
Reaction score
10
i knew but forget :X

sorry about the ask ^^

Edit#
i just never got problems with group leaks.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Varine Varine:
    I have a bunch of community service I have to do, and I have a feeling there will be a lot of snow shoveling involved now
  • The Helper The Helper:
    don't know why people choose to live in that kind of weather :)
  • Varine Varine:
    Well
  • Varine Varine:
    My job is here
  • Varine Varine:
    I was born here man I didn't choose shit
  • Varine Varine:
    And also, I keep moving away and it doesn't get any better. I moved to San Antonio and shit froze there AND we had blackouts
  • tom_mai78101 tom_mai78101:
    I'm back, suffering from severe jet lag.
  • The Helper The Helper:
    Cold is following your ass around Varine - I just dont think I could handle a snowy winter.
  • The Helper The Helper:
    Welcome Back Tom!
  • The Helper The Helper:
    I hear that taking a Melatonin around your normal bedtime can really fix jet lag
  • tom_mai78101 tom_mai78101:
    Yeah, I also heard about that as well. I think I'm good. I'm just lucky it's the weekend so I have some time to readjust.
    +1
  • Varine Varine:
    It was a fucking blizzard today, shoveling was an effort in futility.
  • Varine Varine:
    Melatonin gives me nightmares
  • Varine Varine:
    They had me shoveling out the parking lot for the jail. Fucking pointless, they need a blow.
  • Varine Varine:
    Well they gave me a snow blower but it was too wet to do much with with other than compact everything. Oh well, the cop cars can get into there now when they arrest people I guess
    +1
  • The Helper The Helper:
    I shit you not we are Number one on Google for Banana Bread Recipe
  • jonas jonas:
    xD
    +1
  • The Helper The Helper:
    Need Web Design Contractor that knows Word Press, Woocommerce and Elementor to help with the company that sponsors this site
  • The Helper The Helper:
  • The Helper The Helper:
    I am going to be AFK most of this weekend has I have a friend coming into town for his company christmas party and I am going to be busy with that this weekend.
    +1
  • The Helper The Helper:
    541 Active Users and this number has been pretty steady give or take some. The bots are hammering us.
  • The Helper The Helper:
    I have been posting a bunch of recipes and Google is loving them. I mean OK my shit is good but how does google know LOL!

    The Helper Discord

    Members online

    Affiliates

    Hive Workshop NUON Dome World Editor Tutorials

    Network Sponsors

    Apex Steel Pipe - Buys and sells Steel Pipe.
    Top