(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.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top