[GUI] (Big Request) Teleporters

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

Bobbeh
Newcomer
Posts: 10
Joined: January 31st, 2010, 2:49 am

[GUI] (Big Request) Teleporters

Post by Bobbeh »

I've been trying to create a trigger that seems almost impossible for me to create. First I'm going to try to give you as much information as I can.

Here's the information:

There are 8 builders and 4 vampires, each of the 8 builders have something called "Base Control" which is a circle of power in each of the base's entrances. Inside of their base is something called "Harvester Control"(which is the teleporter to the Green Areas) which is also a circle of power. By accessing the Harvester control, players can manage their Green Areas(What their Harvester Circle of Power teleports them to) which is an area their Harvesters teleport for trees and harvesting. Only the harvesters and the vampire can access the Green Area, the builders cannot. Because of this, there are 8 different Green Areas, which are not assigned to any builder until a Harvester from the owner of the Base, which the Harvester Control is in, is entered. (<--confusing sentence, I know) Also, the Bases are not owned until entered by a Builder. Sooooo.. the problem here for me is the following:

In my trigger, I recognize who is entering the base, setting all necessary conditions (IE: checking the color of the player, seeing if he already owns a Green Area, etc).. I also check if their Green Area is closed or opened depending on the Owner's choice (they might not want their teammate's harvesters in their area, so they have the option to close the harvester area to keep them from going inside)

So when the Builder first gets their Base, they still don't have a Green Area until they enter the Harvester Control circle of power, which RANDOMLY PICKS ONE OF THE 8 GREEN AREAS THAT ARE NOT CONTROLLED CURRENTLY and teleports their harvester to it, so after that happens, those two teleporters (the Harvester Control and the Green Area) are now connected.. so my problem is this: I cannot connect the two circle of powers together and assigned to that player.

This is what I've tried doing:
-using unit groups to easily and randomly teleport and link(which doesn't work for me for some odd reason)

So, as you can see, I hope you have enough information about my current situation concerning this trigger.


Long story short, I need the teleporters to link with eachother and also account the necessary conditions whenever the teleporter is entered by a vampire or a Harvester.


If you need any more information, let me know. Also, I can PM you the map if you're interested in seeing the triggers and my 100 variables for messy triggers (this is why I don't want to post it, it's very hard to understand the variables I use and the triggers associated with them)

Thanks to any help, and +rep to it as well.
Refer to the images on the bottom for additional information.

I want to tell you guys the conditions that I need to checked for when the Harvester Teleporter is first entered and after they're assigned here they are.

When it's first entered:
-Check which player (1-8)
-What base they own (1-9)
-If it's not the owner's Harvester that's entering, it won't do anything
-It only activates if the Harvester enters it, not vampire/builder

After the two teleporters are linked:
-Check if it's open/closed if it's not the owner's harvester
-check if it's a vampire
-Check if they still own the base that the harvester teleporter is in
-If it is closed, it will port the other harvesters to the side of the teleporter

Will add more if I missed anything.


CODE:

Here is how each of the triggers I'm linking work.

I made, in total, 24 triggers because I have 8 bases. (3 [the triggers] times[x] 8[How many bases there are)

The first three triggers are for Base 1 out of 8.

The first one is when the player's Harvester FIRST enters the Harvester Control Teleporter. It then moves the Harvester to a random unit from the HarvesterTP_Group(which is the green areas), after that, the trigger is turned off and the second trigger is then activated.

The second one activates when the unit ENTERS the green area, then it removes the Green Area Teleporter from the HarvesterTP_Group and puts it into the owner's TP group(PlayerHarvestArea1), this group will ONLY HAVE the player's Green Area Teleporter in it. This one is now turned off and the third one is activated.

The third one is turned on automatically with the second one. It just checks if the Green Area is closed, if it's a harvester or not, etc.. all those necessary conditions that I've stated previously.


Things you should know:
-P1B1, etc means he is player one and that he owns base 1, etc.
-Survivor = the Builder
-P1OPEN checks if the Harvester Control Teleporter is Open
-Base1Cntrl checks if the base is in control or not.
-InsideHarvester TP1 means he's inside the Green Area.
-HarvOpen checks if the player has an open Green Area for his teammates.
-Used unit groups to get the random teleports, then I remove the unit from the available Green Area Group and put it in the Player's Teleporter Group after to make them link.
-This is for the third trigger: "PlayerHarvestArea1" is the ONE unit inside the player's Teleporter Group, it is the green area.

Any other questions.. please lemme know.
FIRST TRIGGER:

Spoiler:

Code: Select all

ENTER H TP 1 START
    Events
        Unit - A unit enters Harvester TP 1 <gen>
    Conditions
        Base1Cntrl Equal to True
        Or - Any (Conditions) are true
            Conditions
                (Unit-type of (Triggering unit)) Equal to Harvester
                (Unit-type of (Triggering unit)) Equal to Vampire
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                And - All (Conditions) are true
                    Conditions
                        P1B1 Equal to True
                        (Owner of (Triggering unit)) Equal to Player 1 (Red)
            Then - Actions
                Set UNIT = (Triggering unit)
                Special Effect - Create a special effect attached to the chest of UNIT using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
                Set SpecialEffect = (Last created special effect)
                Wait 1.00 seconds
                Unit - Move UNIT instantly to (Position of (Random unit from HarvestTP_Group))
                Special Effect - Destroy SpecialEffect
                Trigger - Turn off (This trigger)
            Else - Actions
                Game - Display to (Player group((Triggering player))) the text: You are not in cont...
                Skip remaining actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                And - All (Conditions) are true
                    Conditions
                        P2B1 Equal to True
                        (Owner of (Triggering unit)) Equal to Player 2 (Blue)
            Then - Actions
                Set UNIT = (Triggering unit)
                Special Effect - Create a special effect attached to the chest of UNIT using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
                Set SpecialEffect = (Last created special effect)
                Wait 1.00 seconds
                Unit - Move UNIT instantly to (Position of (Random unit from HarvestTP_Group))
                Special Effect - Destroy SpecialEffect
                Trigger - Turn off (This trigger)
            Else - Actions
                Game - Display to (Player group((Triggering player))) the text: You are not in cont...
                Skip remaining actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                And - All (Conditions) are true
                    Conditions
                        P3B1 Equal to True
                        (Owner of (Triggering unit)) Equal to Player 3 (Teal)
            Then - Actions
                Set UNIT = (Triggering unit)
                Special Effect - Create a special effect attached to the chest of UNIT using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
                Set SpecialEffect = (Last created special effect)
                Wait 1.00 seconds
                Unit - Move UNIT instantly to (Position of (Random unit from HarvestTP_Group))
                Special Effect - Destroy SpecialEffect
                Trigger - Turn off (This trigger)
            Else - Actions
                Game - Display to (Player group((Triggering player))) the text: You are not in cont...
                Skip remaining actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                And - All (Conditions) are true
                    Conditions
                        P4B1 Equal to True
                        (Owner of (Triggering unit)) Equal to Player 4 (Purple)
            Then - Actions
                Set UNIT = (Triggering unit)
                Special Effect - Create a special effect attached to the chest of UNIT using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
                Set SpecialEffect = (Last created special effect)
                Wait 1.00 seconds
                Unit - Move UNIT instantly to (Position of (Random unit from HarvestTP_Group))
                Special Effect - Destroy SpecialEffect
                Trigger - Turn off (This trigger)
            Else - Actions
                Game - Display to (Player group((Triggering player))) the text: You are not in cont...
                Skip remaining actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                And - All (Conditions) are true
                    Conditions
                        P5B1 Equal to True
                        (Owner of (Triggering unit)) Equal to Player 5 (Yellow)
            Then - Actions
                Set UNIT = (Triggering unit)
                Special Effect - Create a special effect attached to the chest of UNIT using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
                Set SpecialEffect = (Last created special effect)
                Wait 1.00 seconds
                Unit - Move UNIT instantly to (Position of (Random unit from HarvestTP_Group))
                Special Effect - Destroy SpecialEffect
                Trigger - Turn off (This trigger)
            Else - Actions
                Game - Display to (Player group((Triggering player))) the text: You are not in cont...
                Skip remaining actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                And - All (Conditions) are true
                    Conditions
                        P6B1 Equal to True
                        (Owner of (Triggering unit)) Equal to Player 6 (Orange)
            Then - Actions
                Set UNIT = (Triggering unit)
                Special Effect - Create a special effect attached to the chest of UNIT using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
                Set SpecialEffect = (Last created special effect)
                Wait 1.00 seconds
                Unit - Move UNIT instantly to (Position of (Random unit from HarvestTP_Group))
                Special Effect - Destroy SpecialEffect
                Trigger - Turn off (This trigger)
            Else - Actions
                Game - Display to (Player group((Triggering player))) the text: You are not in cont...
                Skip remaining actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                And - All (Conditions) are true
                    Conditions
                        P7B1 Equal to True
                        (Owner of (Triggering unit)) Equal to Player 7 (Green)
            Then - Actions
                Set UNIT = (Triggering unit)
                Special Effect - Create a special effect attached to the chest of UNIT using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
                Set SpecialEffect = (Last created special effect)
                Wait 1.00 seconds
                Unit - Move UNIT instantly to (Position of (Random unit from HarvestTP_Group))
                Special Effect - Destroy SpecialEffect
                Trigger - Turn off (This trigger)
            Else - Actions
                Game - Display to (Player group((Triggering player))) the text: You are not in cont...
                Skip remaining actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                And - All (Conditions) are true
                    Conditions
                        P8B1 Equal to True
                        (Owner of (Triggering unit)) Equal to Player 8 (Pink)
            Then - Actions
                Set UNIT = (Triggering unit)
                Special Effect - Create a special effect attached to the chest of UNIT using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
                Set SpecialEffect = (Last created special effect)
                Wait 1.00 seconds
                Unit - Move UNIT instantly to (Position of (Random unit from HarvestTP_Group))
                Special Effect - Destroy SpecialEffect
                Trigger - Turn off (This trigger)
            Else - Actions
                Game - Display to (Player group((Triggering player))) the text: You are not in cont...
                Skip remaining actions
        Game - Display to (All players) the text: ONE
        Trigger - Turn off (This trigger)

SECOND TRIGGER:

Spoiler:

Code: Select all

InsHarv 1
    Events
        Unit - A unit enters INSIDE HarvTP1 <gen>
    Conditions
        Or - Any (Conditions) are true
            Conditions
                (Unit-type of (Triggering unit)) Equal to Harvester
                (Unit-type of (Triggering unit)) Equal to Vampire
    Actions
        Unit Group - Remove Circle of Power 0008 <gen> from HarvestTP_Group
        Set HarvCntrl1 = True
        Set HarvOpen1 = True
        Unit - Change ownership of Circle of Power 0008 <gen> to (Owner of (Triggering unit)) and Change color
        Set H_TP_1 = True
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Owner of (Triggering unit)) Equal to Player 1 (Red)
            Then - Actions
                Unit Group - Add Circle of Power 0008 <gen> to PlayerHarvestArea1
                Set HarvCntrl1 = True
                Set P1OPEN = True
                If (P1B1 Equal to True) then do (Trigger - Turn on H1 CLOSED <gen>) else do (Do nothing)
                If (P1B2 Equal to True) then do (Trigger - Turn on H2 CLOSED <gen>) else do (Do nothing)
                If (P1B3 Equal to True) then do (Trigger - Turn on H3 CLOSED <gen>) else do (Do nothing)
                If (P1B4 Equal to True) then do (Trigger - Turn on H4 CLOSED <gen>) else do (Do nothing)
                If (P1B5 Equal to True) then do (Trigger - Turn on H5 CLOSED <gen>) else do (Do nothing)
                If (P1B6 Equal to True) then do (Trigger - Turn on H6 CLOSED <gen>) else do (Do nothing)
                If (P1B7 Equal to True) then do (Trigger - Turn on H7 CLOSED <gen>) else do (Do nothing)
                If (P1B8 Equal to True) then do (Trigger - Turn on H8 CLOSED <gen>) else do (Do nothing)
            Else - 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)
                    Then - Actions
                        Unit Group - Add Circle of Power 0008 <gen> to PlayerHarvestArea2
                        Set HarvCntrl1 = True
                        Set P2OPEN = True
                        If (P2B1 Equal to True) then do (Trigger - Turn on H1 CLOSED <gen>) else do (Do nothing)
                        If (P2B2 Equal to True) then do (Trigger - Turn on H2 CLOSED <gen>) else do (Do nothing)
                        If (P2B3 Equal to True) then do (Trigger - Turn on H3 CLOSED <gen>) else do (Do nothing)
                        If (P2B4 Equal to True) then do (Trigger - Turn on H4 CLOSED <gen>) else do (Do nothing)
                        If (P2B5 Equal to True) then do (Trigger - Turn on H5 CLOSED <gen>) else do (Do nothing)
                        If (P2B6 Equal to True) then do (Trigger - Turn on H6 CLOSED <gen>) else do (Do nothing)
                        If (P2B7 Equal to True) then do (Trigger - Turn on H7 CLOSED <gen>) else do (Do nothing)
                        If (P2B8 Equal to True) then do (Trigger - Turn on H8 CLOSED <gen>) else do (Do nothing)
                    Else - Actions
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            If - Conditions
                                (Owner of (Triggering unit)) Equal to Player 3 (Teal)
                            Then - Actions
                                Unit Group - Add Circle of Power 0008 <gen> to PlayerHarvestArea3
                                Set HarvCntrl1 = True
                                Set P3OPEN = True
                            Else - Actions
                                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    If - Conditions
                                        (Owner of (Triggering unit)) Equal to Player 4 (Purple)
                                    Then - Actions
                                        Unit Group - Add Circle of Power 0008 <gen> to PlayerHarvestArea4
                                        Set HarvCntrl1 = True
                                        Set P4OPEN = True
                                    Else - Actions
                                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                            If - Conditions
                                                (Owner of (Triggering unit)) Equal to Player 5 (Yellow)
                                            Then - Actions
                                                Unit Group - Add Circle of Power 0008 <gen> to PlayerHarvestArea5
                                                Set HarvCntrl1 = True
                                                Set P5OPEN = True
                                            Else - Actions
                                                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                    If - Conditions
                                                        (Owner of (Triggering unit)) Equal to Player 6 (Orange)
                                                    Then - Actions
                                                        Unit Group - Add Circle of Power 0008 <gen> to PlayerHarvestArea6
                                                        Set HarvCntrl1 = True
                                                        Set P6OPEN = True
                                                    Else - Actions
                                                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                            If - Conditions
                                                                (Owner of (Triggering unit)) Equal to Player 7 (Green)
                                                            Then - Actions
                                                                Unit Group - Add Circle of Power 0008 <gen> to PlayerHarvestArea7
                                                                Set HarvCntrl1 = True
                                                                Set P7OPEN = True
                                                            Else - 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)
                                                                    Then - Actions
                                                                        Unit Group - Add Circle of Power 0008 <gen> to PlayerHarvestArea8
                                                                        Set HarvCntrl1 = True
                                                                        Set P8OPEN = True
                                                                    Else - Actions
        Trigger - Turn off (This trigger)


THIRD TRIGGER:

Spoiler:

Code: Select all

H1 CLOSED
    Events
        Unit - A unit enters Harvester TP 1 <gen>
    Conditions
        Base1Cntrl Equal to True
        And - All (Conditions) are true
            Conditions
                (Unit-type of (Triggering unit)) Equal to Harvester
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                And - All (Conditions) are true
                    Conditions
                        (Owner of (Triggering unit)) Equal to Player 1 (Red)
            Then - Actions
                Set UNIT = (Triggering unit)
                Special Effect - Create a special effect attached to the chest of UNIT using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
                Set SpecialEffect = (Last created special effect)
                Wait 1.00 seconds
                Unit - Move UNIT instantly to (Position of (Random unit from PlayerHarvestArea1))
                Special Effect - Destroy SpecialEffect
                Skip remaining actions
            Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        P1OPEN Equal to True
                    Then - Actions
                        Set UNIT = (Triggering unit)
                        Special Effect - Create a special effect attached to the chest of UNIT using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
                        Set SpecialEffect = (Last created special effect)
                        Wait 1.00 seconds
                        Unit - Move UNIT instantly to (Position of (Random unit from PlayerHarvestArea1))
                        Special Effect - Destroy SpecialEffect
                        Skip remaining actions
                    Else - Actions
                        Game - Display to (Player group((Triggering player))) the text: ((Name of Player 1 (Red)) +  has denied access of all Survivors from entering the base.)
                        Unit - Move (Triggering unit) instantly to (Center of B1 P1 <gen>)
                        Skip remaining 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)
            Then - Actions
                Set UNIT = (Triggering unit)
                Special Effect - Create a special effect attached to the chest of UNIT using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
                Set SpecialEffect = (Last created special effect)
                Wait 1.00 seconds
                Unit - Move UNIT instantly to (Position of (Random unit from PlayerHarvestArea2))
                Special Effect - Destroy SpecialEffect
                Skip remaining actions
            Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        P2OPEN Equal to True
                    Then - Actions
                        Set UNIT = (Triggering unit)
                        Special Effect - Create a special effect attached to the chest of UNIT using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
                        Set SpecialEffect = (Last created special effect)
                        Wait 1.00 seconds
                        Unit - Move UNIT instantly to (Position of (Random unit from PlayerHarvestArea2))
                        Special Effect - Destroy SpecialEffect
                        Skip remaining actions
                    Else - Actions
                        Game - Display to (Player group((Triggering player))) the text: ((Name of Player 2 (Blue)) +  has denied access of all Survivors from entering the base.)
                        Unit - Move (Triggering unit) instantly to (Center of B1 P1 <gen>)
                        Skip remaining actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Owner of (Triggering unit)) Equal to Player 3 (Teal)
            Then - Actions
                Set UNIT = (Triggering unit)
                Special Effect - Create a special effect attached to the chest of UNIT using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
                Set SpecialEffect = (Last created special effect)
                Wait 1.00 seconds
                Unit - Move UNIT instantly to (Position of (Random unit from PlayerHarvestArea3))
                Special Effect - Destroy SpecialEffect
                Skip remaining actions
            Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        P3OPEN Equal to True
                    Then - Actions
                        Set UNIT = (Triggering unit)
                        Special Effect - Create a special effect attached to the chest of UNIT using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
                        Set SpecialEffect = (Last created special effect)
                        Wait 1.00 seconds
                        Unit - Move UNIT instantly to (Position of (Random unit from PlayerHarvestArea3))
                        Special Effect - Destroy SpecialEffect
                        Skip remaining actions
                    Else - Actions
                        Game - Display to (Player group((Triggering player))) the text: ((Name of Player 3 (Teal)) +  has denied access of all Survivors from entering the base.)
                        Unit - Move (Triggering unit) instantly to (Center of B1 P1 <gen>)
                        Skip remaining actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Owner of (Triggering unit)) Equal to Player 4 (Purple)
            Then - Actions
                Set UNIT = (Triggering unit)
                Special Effect - Create a special effect attached to the chest of UNIT using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
                Set SpecialEffect = (Last created special effect)
                Wait 1.00 seconds
                Unit - Move UNIT instantly to (Position of (Random unit from PlayerHarvestArea4))
                Special Effect - Destroy SpecialEffect
                Skip remaining actions
            Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        P4OPEN Equal to True
                    Then - Actions
                        Set UNIT = (Triggering unit)
                        Special Effect - Create a special effect attached to the chest of UNIT using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
                        Set SpecialEffect = (Last created special effect)
                        Wait 1.00 seconds
                        Unit - Move UNIT instantly to (Position of (Random unit from PlayerHarvestArea4))
                        Special Effect - Destroy SpecialEffect
                        Skip remaining actions
                    Else - Actions
                        Game - Display to (Player group((Triggering player))) the text: ((Name of Player 4 (Purple)) +  has denied access of all Survivors from entering the base.)
                        Unit - Move (Triggering unit) instantly to (Center of B1 P1 <gen>)
                        Skip remaining actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Owner of (Triggering unit)) Equal to Player 5 (Yellow)
            Then - Actions
                Set UNIT = (Triggering unit)
                Special Effect - Create a special effect attached to the chest of UNIT using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
                Set SpecialEffect = (Last created special effect)
                Wait 1.00 seconds
                Unit - Move UNIT instantly to (Position of (Random unit from PlayerHarvestArea5))
                Special Effect - Destroy SpecialEffect
                Skip remaining actions
            Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        P5OPEN Equal to True
                    Then - Actions
                        Set UNIT = (Triggering unit)
                        Special Effect - Create a special effect attached to the chest of UNIT using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
                        Set SpecialEffect = (Last created special effect)
                        Wait 1.00 seconds
                        Unit - Move UNIT instantly to (Position of (Random unit from PlayerHarvestArea5))
                        Special Effect - Destroy SpecialEffect
                        Skip remaining actions
                    Else - Actions
                        Game - Display to (Player group((Triggering player))) the text: ((Name of Player 5 (Yellow)) +  has denied access of all Survivors from entering the base.)
                        Unit - Move (Triggering unit) instantly to (Center of B1 P1 <gen>)
                        Skip remaining actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Owner of (Triggering unit)) Equal to Player 6 (Orange)
            Then - Actions
                Set UNIT = (Triggering unit)
                Special Effect - Create a special effect attached to the chest of UNIT using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
                Set SpecialEffect = (Last created special effect)
                Wait 1.00 seconds
                Unit - Move UNIT instantly to (Position of (Random unit from PlayerHarvestArea6))
                Special Effect - Destroy SpecialEffect
                Skip remaining actions
            Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        P6OPEN Equal to True
                    Then - Actions
                        Set UNIT = (Triggering unit)
                        Special Effect - Create a special effect attached to the chest of UNIT using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
                        Set SpecialEffect = (Last created special effect)
                        Wait 1.00 seconds
                        Unit - Move UNIT instantly to (Position of (Random unit from PlayerHarvestArea6))
                        Special Effect - Destroy SpecialEffect
                        Skip remaining actions
                    Else - Actions
                        Game - Display to (Player group((Triggering player))) the text: ((Name of Player 6 (Orange)) +  has denied access of all Survivors from entering the base.)
                        Unit - Move (Triggering unit) instantly to (Center of B1 P1 <gen>)
                        Skip remaining actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Owner of (Triggering unit)) Equal to Player 7 (Green)
            Then - Actions
                Set UNIT = (Triggering unit)
                Special Effect - Create a special effect attached to the chest of UNIT using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
                Set SpecialEffect = (Last created special effect)
                Wait 1.00 seconds
                Unit - Move UNIT instantly to (Position of (Random unit from PlayerHarvestArea7))
                Special Effect - Destroy SpecialEffect
                Skip remaining actions
            Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        P7OPEN Equal to True
                    Then - Actions
                        Set UNIT = (Triggering unit)
                        Special Effect - Create a special effect attached to the chest of UNIT using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
                        Set SpecialEffect = (Last created special effect)
                        Wait 1.00 seconds
                        Unit - Move UNIT instantly to (Position of (Random unit from PlayerHarvestArea7))
                        Special Effect - Destroy SpecialEffect
                        Skip remaining actions
                    Else - Actions
                        Game - Display to (Player group((Triggering player))) the text: ((Name of Player 7 (Green)) +  has denied access of all Survivors from entering the base.)
                        Unit - Move (Triggering unit) instantly to (Center of B1 P1 <gen>)
                        Skip remaining 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)
            Then - Actions
                Set UNIT = (Triggering unit)
                Special Effect - Create a special effect attached to the chest of UNIT using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
                Set SpecialEffect = (Last created special effect)
                Wait 1.00 seconds
                Unit - Move UNIT instantly to (Position of (Random unit from PlayerHarvestArea8))
                Special Effect - Destroy SpecialEffect
                Skip remaining actions
            Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        P8OPEN Equal to True
                    Then - Actions
                        Set UNIT = (Triggering unit)
                        Special Effect - Create a special effect attached to the chest of UNIT using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
                        Set SpecialEffect = (Last created special effect)
                        Wait 1.00 seconds
                        Unit - Move UNIT instantly to (Position of (Random unit from PlayerHarvestArea8))
                        Special Effect - Destroy SpecialEffect
                        Skip remaining actions
                    Else - Actions
                        Game - Display to (Player group((Triggering player))) the text: ((Name of Player 8 (Pink)) +  has denied access of all Survivors from entering the base.)
                        Unit - Move (Triggering unit) instantly to (Center of B1 P1 <gen>)
                        Skip remaining actions
        Game - Display to (All players) the text: THREE



Note: Sorry for the HUGE wall of text, it's just that I'm not very good with the editor, and I've been asking on multiple help-sites and I never got the help I needed. Thanks to any help!
User avatar
Risen
Forum Staff
Posts: 811
Joined: January 1st, 2008, 12:58 am

Re: [GUI] (Big Request) Teleporters

Post by Risen »

Haha, learn Jass and it'll me way more simplified.

But yeah, I don't know GUI anymore so maybe arabnun(spelled right) will help.
Image
Wanna learn to hack maps? --> Guide
Bobbeh
Newcomer
Posts: 10
Joined: January 31st, 2010, 2:49 am

Re: [GUI] (Big Request) Teleporters

Post by Bobbeh »

Ehh, I've attempted learning Jass, and it never ended up working with me.