(TD) air not following and loseing life..

morno

Active Member
Reaction score
2
i have prob whit air units on my trigger they dont follow the path to region.. what is rong?
Code:
Melee Initialization
    Events
        Map initialization
    Conditions
    Actions
        -------- Setting player --------
        Set ingameplayers = (All players matching ((((Matching player) slot status) Equal to Is playing) and (((Matching player) controller) Equal to User)))
        -------- Creeps spwan --------
        Set CreepArry[1] = Footman
        Set CreepArry[2] = Sheep
        Set CreepArry[3] = Child
        Set CreepArry[4] = Swordsman
        Set CreepArry[5] = Wagon
        Set CreepArry[6] = High Elf (Female)
        Set CreepArry[7] = Medivh (Raven Form)
        Set CreepArry[8] = High Elf (Male)
        Set CreepArry[9] = Crab
        Set CreepArry[10] = Battle Golem
        Set CreepArry[11] = Rat
        Set CreepArry[12] = Penguin
        Set CreepArry[13] = Marine
        Set CreepArry[14] = Harpy Windwitch
        Set CreepArry[15] = Ice Troll
        Set CreepArry[16] = Makrura Pooldweller
        Set CreepArry[17] = Dark Wizard
        Set CreepArry[18] = Magnataur Destroyer
        Set CreepArry[19] = Mur'gul Snarecaster
        Set CreepArry[20] = Enraged Wildkin
        Set CreepArry[21] = Hippogryph
        -------- Number of creeps set in the arry --------
        Set creepCount_lastindex = 21
        -------- Visybility --------
        Visibility - Disable fog of war
        Visibility - Disable black mask
        -------- Coloure codes --------
        Set colouregolde = |cffffcc00
        -------- Player Coloures --------
        Set colourePlayers[1] = |c00ff0303
        Set colourePlayers[2] = |c000042ff
        Set colourePlayers[3] = |c001ce6b9
        Set colourePlayers[4] = |c00540081
        -------- For makeing pathing trigger's easier --------
        Set hostilecreep = Player 12 (Brown)
        -------- Turn bounty on for the ''bad guys'' --------
        Player - Turn Gives bounty On for hostilecreep
        -------- Amount of ''Lives'' --------
        Set liveCount = 100

I have allso some prob whit the ''loseing life'' trigger.. can anyone who know please look into my triggers:

Code:
Lose Lives
    Events
        Unit - A unit enters END <gen>
    Conditions
        (Owner of (Triggering unit)) Equal to hostilecreep
    Actions
        Unit - Remove (Triggering unit) from the game
        Set liveCount = (liveCount - 1)
        -------- need to updade evry time a player leaks --------
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                LevelCount Equal to 0
            Then - Actions
                Wait 2.00 seconds
                Player Group - Pick every player in ingameplayers and do (Actions)
                    Loop - Actions
                        Game - Defeat (Picked player) with the message: Defeat!
            Else - Actions
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
889
> air units on my trigger they dont follow the path to region

Well, air units don't follow the same pathing rules as ground units. Could that be your problem?

> I have allso some prob whit the ''loseing life'' trigger

What DOES it do?

Code:
LevelCount Equal to 0

Should be liveCount, perhaps?
 

elmstfreddie

The Finglonger
Reaction score
203
If you want air to follow the same path as ground just make some pathing blockers (air) where you don't want them to fly to, or add more move-to points.
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
889
> can't i just make a trigger for the air to go to the region?

Do they not go to the region like the ground units?
 

morno

Active Member
Reaction score
2
no they don't they go to another region not following tl.x the path of red they go to teal and to there.. some crazy shit! :p
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
889
It's probably an issue with your movement triggers. You should post them.
 

morno

Active Member
Reaction score
2
here is my trigger's:

this one i juse on 3 other allso but chanch the P1 01 to P2 01..
Code:
Spwan on player 1
    Events
        Map initialization
    Conditions
    Actions
        Set Regionarry[0] = SPWAN P1 <gen>
        Set Regionarry[1] = P1 01 <gen>
        Set Regionarry[2] = P1 02 <gen>
        Set Regionarry[3] = P1 03 <gen>
        Set Regionarry[4] = P1 04 <gen>
        Set Regionarry[5] = P1 05 <gen>
        Set Regionarry[6] = P1 06 <gen>
        Set Regionarry[7] = P1 07 <gen>
        Set Regionarry[8] = P1 08 <gen>
        Set Regionarry[9] = P1 09 <gen>
        Set Regionarry[10] = p1 10 <gen>
        Set Regionarry[11] = P1 11 <gen>
        Set Regionarry[12] = P1 12 <gen>
this is my enter unit..
Code:
Spwan player 1
    Events
        Unit - A unit enters SPWAN P1 <gen>
        Unit - A unit enters P1 01 <gen>
        Unit - A unit enters P1 02 <gen>
        Unit - A unit enters P1 03 <gen>
        Unit - A unit enters P1 04 <gen>
        Unit - A unit enters P1 05 <gen>
        Unit - A unit enters P1 06 <gen>
        Unit - A unit enters P1 07 <gen>
        Unit - A unit enters P1 08 <gen>
        Unit - A unit enters P1 09 <gen>
        Unit - A unit enters p1 10 <gen>
        Unit - A unit enters P1 11 <gen>
        Unit - A unit enters P1 12 <gen>
    Conditions
        (Owner of (Triggering unit)) Equal to hostilecreep
    Actions
        Unit - Set the custom value of (Triggering unit) to ((Custom value of (Triggering unit)) + 1)
        Set tmpPoint = (Center of Regionarry[(Custom value of (Triggering unit))])
        Unit - Order (Triggering unit) to Move To tmpPoint
        -------- leak removal --------
        Custom script:   call RemoveLocation( udg_tmpPoint )
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
889
How is the path set up? Is there any way that a flying unit could enter a region it's not supposed to?
 

morno

Active Member
Reaction score
2
its upset that 4 players start in 3 cornets and then it gose to the moddel in sertrnt path.. so the air isent supposed to go there... but here is my map
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
889
I see what your problem is. You overwrite your region array variable. You can't use the same variable for every player. You'll have to use separate arrays.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top