HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Stopping units from entering a point

08-17-2004, 05:13 PM#1
Arkidas
Ok Im making a dota/aos style map, it has an duel system, and when one hero loses both heros are moved to a healing place,on that healiong place are 2 way gates,one leads to the scourge base and one to the Sentinel base. Im trying to have it so that only Player 1,2,3,4,5,6 can enter sentinel waygate and have only Player 7,8,9,10,11,12 have acess to enter the other waygate,currently I use this trigger but it seems just stopping every unit from entering the regions for the waygates, can you tell me the problem or give me new trigger?

For NE:
Code:
After Duel NE
    Events
        Unit - A unit enters teleport Nightelf healafterduel <gen>
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Owner of (Triggering unit)) Equal to Player 2 (Blue)
                (Owner of (Triggering unit)) Equal to Player 3 (Teal)
                (Owner of (Triggering unit)) Equal to Player 4 (Purple)
                (Owner of (Triggering unit)) Equal to Player 5 (Yellow)
                (Owner of (Triggering unit)) Equal to Player 6 (Orange)
            Then - Actions
                Do nothing
            Else - Actions
                Unit - Move (Triggering unit) instantly to (Center of Heal After Duel <gen>)
                Game - Display to (Owner of (Triggering unit)), at offset (0.00, 0.00) the text: ERROR:Enter The Oth...


For UD:
Code:
After Duel UD
    Events
        Unit - A unit enters Teleport Undead healafterduel <gen>
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Owner of (Triggering unit)) Equal to Player 8 (Pink)
                (Owner of (Triggering unit)) Equal to Player 9 (Gray)
                (Owner of (Triggering unit)) Equal to Player 10 (Light Blue)
                (Owner of (Triggering unit)) Equal to Player 11 (Dark Green)
                (Owner of (Triggering unit)) Equal to Player 12 (Brown)
            Then - Actions
                Do nothing
            Else - Actions
                Unit - Move (Triggering unit) instantly to (Center of Heal After Duel <gen>)
                Game - Display to (Owner of (Triggering unit)), at offset (0.00, 0.00) the text: ERROR:Enter The Oth...
08-17-2004, 05:41 PM#2
Coffein
Hmm.. try to use multiple or conditions for your if conditions

Edit: And always try to avoid triggering unit, in this case use "Entering Unit"
08-17-2004, 05:52 PM#3
DoCa-Cola
The problem is, you have the conditions set to 'If all conditions are true' which won't happen, in order for it to work with that trigger, the heroes would have to be owned by 5 players at once. Instead of making it multiple ALL conditions, make it OR.

--DoCa