HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Very strange trigger problem...

07-10-2004, 01:59 AM#1
Aelita Lyoko
For some reason, when i use any of these abilities, at any of the Transport Inc. buildings i have on my map, it uses the Ocean Side City trigger, even i cast any of the other abilties.
Code:
Transporting
    Events
        Unit - A unit Begins casting an ability
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Owner of (Target unit of ability being cast)) Current gold) Less than or equal to 9
            Then - Actions
                Game - Display to (Player group((Owner of (Target unit of ability being cast)))) the text: You do not have the...
                Trigger - Reset (This trigger)
            Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Ability being cast) Equal to To Forest Camp 
                        ((Target unit of ability being cast) is A Hero) Equal to True
                    Then - Actions
                        Player - Add -10 to (Owner of (Target unit of ability being cast)) Current gold
                        Special Effect - Create a special effect at (Position of (Target unit of ability being cast)) using Abilities\Spells\Human\MassTeleport\MassTeleportTo.mdl
                        Wait 2.00 seconds
                        Unit - Move (Target unit of ability being cast) instantly to (Center of Forest Camp <gen>)
                        Special Effect - Destroy (Last created special effect)
                    Else - Actions
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            If - Conditions
                                (Ability being cast) Equal to To Ocean Side City 
                                ((Target unit of ability being cast) is A Hero) Equal to True
                            Then - Actions
                                Player - Add -10 to (Owner of (Target unit of ability being cast)) Current gold
                                Special Effect - Create a special effect at (Position of (Target unit of ability being cast)) using Abilities\Spells\Human\MassTeleport\MassTeleportTo.mdl
                                Wait 2.00 seconds
                                Unit - Move (Target unit of ability being cast) instantly to (Center of Ocean Side City <gen>)
                                Special Effect - Destroy (Last created special effect)
                            Else - Actions
                                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    If - Conditions
                                        (Ability being cast) Equal to To Desert Encampment 
                                        ((Target unit of ability being cast) is A Hero) Equal to True
                                    Then - Actions
                                        Player - Add -10 to (Owner of (Target unit of ability being cast)) Current gold
                                        Special Effect - Create a special effect at (Position of (Target unit of ability being cast)) using Abilities\Spells\Human\MassTeleport\MassTeleportTo.mdl
                                        Wait 2.00 seconds
                                        Unit - Move (Target unit of ability being cast) instantly to (Center of Desert Encampment <gen>)
                                        Special Effect - Destroy (Last created special effect)
                                    Else - Actions
                                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                            If - Conditions
                                                (Ability being cast) Equal to To Mountain Village 
                                                ((Target unit of ability being cast) is A Hero) Equal to True
                                            Then - Actions
                                                Player - Add -10 to (Owner of (Target unit of ability being cast)) Current gold
                                                Special Effect - Create a special effect at (Position of (Target unit of ability being cast)) using Abilities\Spells\Human\MassTeleport\MassTeleportTo.mdl
                                                Wait 2.00 seconds
                                                Unit - Move (Target unit of ability being cast) instantly to (Center of Mountain Village <gen>)
                                                Special Effect - Destroy (Last created special effect)
                                            Else - Actions
                                                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                    If - Conditions
                                                        (Ability being cast) Equal to To Dalaran 
                                                        ((Target unit of ability being cast) is A Hero) Equal to True
                                                    Then - Actions
                                                        Player - Add -10 to (Owner of (Target unit of ability being cast)) Current gold
                                                        Special Effect - Create a special effect at (Position of (Target unit of ability being cast)) using Abilities\Spells\Human\MassTeleport\MassTeleportTo.mdl
                                                        Wait 2.00 seconds
                                                        Unit - Move (Target unit of ability being cast) instantly to (Center of Transport Inc <gen>)
                                                        Special Effect - Destroy (Last created special effect)
                                                    Else - Actions

See, what i want to happen is a hero goes to a Transport Inc. building, be it in Dalaran, the Mountain Village, Ocean Side City, Desert Encampment, or the Forest Camp, and get the right effect. However, for some reason, the game keeps usingf the Ocean Side City trigger actions, even when i click on the Mountain village, or something else.

Any help on this matter would be greatly apreciated.
07-10-2004, 02:11 AM#2
Shimrra
A likely problem would be if you based all the abilities off the same ability. It would cheack the order strings and see that they were the same as Ocean City and thus run that trigger. If this is indeed the problem, just make the abilities based off of different abilities or try just using one ability and use dialogs to choose the destination.
07-10-2004, 02:48 AM#3
Aelita Lyoko
Each trigger action area (the Then actions) are based off 5 different abilites. However, ...
Maybe it would be better to show the the different Transport Inc. Buildings and their abilties. The first one is the location, and the list next to it are the places you can go from there.

Dalaran: Mountain village, Forest Camp, Ocean Side City, Desert Encampment

Mountain Village: Forest Camp, Ocean Side City, Desert Encampment, Dalaran

Forest Camp: Ocean Side City, Desert Encampment, Dalaran, Mountain Village

Ocean Side City: Desert Encampment, Dalaran, Mountain Village, Forest Camp

Desert Encampment: Dalaran, Mountain Village, Forest Camp, Ocean Side City

It is probably very confusing. I will experiment with it a little bit, see what i come up with.