Abilility Help/Splittng Balloons

irgan

New Member
Reaction score
3
I have a TD where there's a part of it you get to pop balloons. I know how to create the Balloons and all that easy stuff, but how do i give the newly Created Balloons the same exact order as the old one if for the order for the old balloon it was required to walk over a region and then being ordered to go to another region (like all TDs)
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
Let's say your TD(I believe it's a td?) consists of pathways, just create a region at every pathway and order all units in the pathway to move to the next checkpoint
 

irgan

New Member
Reaction score
3
Hmm, Good try, but i already have that. That's for a normal td, where the Creeps that die dont spawn more creeps (that have no orders when they are created) after it's dead
 

Ryushi

"I will stand, or I will fall. I will not sit."
Reaction score
59
I believe Skyblader meant creating regions over the pathways between the checkpoints. So like:

A----------B

There would be a region at A which would be a checkpoint and a region at B which would also be a checkpoint. You would create a region covering the dotted space, and if a balloon is spawned in that region, you would order that unit to move to checkpoint B (Assuming units were moving from A to B).
 

irgan

New Member
Reaction score
3
Oh so just, spreading out a huge region to cover that space? Alright i'll try that out

edit: ty, but idk who to give the rep to :p the one who supposedly had the idea or the one who explained it

edit2: actually, I'm going to hold off on the rep. I would rather not make another 100+ triggers just for this. Is there NO possible way to just have like a trigger say:
"Replace unit with (unit)"
"Give replacing unit the same orders as replaced unit"?
That would like reduce these triggers to like 2 at max.
 

Ryushi

"I will stand, or I will fall. I will not sit."
Reaction score
59
I do not believe a trigger like that is possible. Another possibility would be to store a point for each unit in a hashtable, the point being the target of its current order. Then when you replace the unit, you can order the unit to move to the stored point for the old unit. You could add the point storing actions into your triggers that order units to move to the next checkpoint, so would not need to make a large number of new triggers.
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
You can use custom values, and add your pathways to an array, say Path[1], Path[2] etc. Then do something like

Every second pick all units in playable map area
Order units to move to Path[custom value of picked unit]

Another trigger would be

Unit enters Path[1]
Unit enters Path[2]
.
.
.

Set custom value of unit to custom value of unit + 1

and you can add all the paths to the event using another trigger.


Or another method would be doing integer loops, let's say you have 150 paths..

For 1 to 150, do

Pick all units in Path[integer A]
Order units to move to Path[Integer A + 1]
 

Sajin

User title under construction.
Reaction score
56
BLOONS TOWER DEFENSE!! :D

If its all one path with no splits then you can do it with just 2 regions

every 0.22 seconds of game


pick all units in TD_Area equal to owned by player 12 brown and issue order to move to TD_End

It would only work if your td had one path like this
Code:
-----------------------------------
-----------------------------------
 = = = = = Creep Movement = = >
-----------------------------------
-----------------------------------

But if it has turns like this then this code wont work
Code:
----------------------------------
----------------------------------
= = = = Creep Movement = = = = = >
-------------------------- || ---
-------------------------- || ---
-------------------------- = = = >
 

irgan

New Member
Reaction score
3
>.> the path is more like this:
Code:
==============
==============
------------>        ---------->
          |        ^
          |        |
          |        |
          v---------

==============
==============

or something like that >.> (not giving the true path) but it doesnt split off but it's not a simple one line path. I think i'll try the custom value + array and see how that works out
 

Sajin

User title under construction.
Reaction score
56
Yea make a trigger that is like
Event
Unit enters MoveRegion [1]
Unit enters MoveRegion [2]
Unit enters MoveRegion [3]
condition
Entering unit belongs to player 12
action
move entering unit to MoveRegion [Custom value of entering unit + 1]
set custom value of entering unit to custom value of entering unit +1
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Varine Varine:
    How can you tell the difference between real traffic and indexing or AI generation bots?
  • The Helper The Helper:
    The bots will show up as users online in the forum software but they do not show up in my stats tracking. I am sure there are bots in the stats but the way alot of the bots treat the site do not show up on the stats
  • Varine Varine:
    I want to build a filtration system for my 3d printer, and that shit is so much more complicated than I thought it would be
  • Varine Varine:
    Apparently ABS emits styrene particulates which can be like .2 micrometers, which idk if the VOC detectors I have can even catch that
  • Varine Varine:
    Anyway I need to get some of those sensors and two air pressure sensors installed before an after the filters, which I need to figure out how to calculate the necessary pressure for and I have yet to find anything that tells me how to actually do that, just the cfm ratings
  • Varine Varine:
    And then I have to set up an arduino board to read those sensors, which I also don't know very much about but I have a whole bunch of crash course things for that
  • Varine Varine:
    These sensors are also a lot more than I thought they would be. Like 5 to 10 each, idk why but I assumed they would be like 2 dollars
  • Varine Varine:
    Another issue I'm learning is that a lot of the air quality sensors don't work at very high ambient temperatures. I'm planning on heating this enclosure to like 60C or so, and that's the upper limit of their functionality
  • Varine Varine:
    Although I don't know if I need to actually actively heat it or just let the plate and hotend bring the ambient temp to whatever it will, but even then I need to figure out an exfiltration for hot air. I think I kind of know what to do but it's still fucking confusing
  • The Helper The Helper:
    Maybe you could find some of that information from AC tech - like how they detect freon and such
  • Varine Varine:
    That's mostly what I've been looking at
  • Varine Varine:
    I don't think I'm dealing with quite the same pressures though, at the very least its a significantly smaller system. For the time being I'm just going to put together a quick scrubby box though and hope it works good enough to not make my house toxic
  • Varine Varine:
    I mean I don't use this enough to pose any significant danger I don't think, but I would still rather not be throwing styrene all over the air
  • The Helper The Helper:
    New dessert added to recipes Southern Pecan Praline Cake https://www.thehelper.net/threads/recipe-southern-pecan-praline-cake.193555/
  • The Helper The Helper:
    Another bot invasion 493 members online most of them bots that do not show up on stats
  • Varine Varine:
    I'm looking at a solid 378 guests, but 3 members. Of which two are me and VSNES. The third is unlisted, which makes me think its a ghost.
    +1
  • The Helper The Helper:
    Some members choose invisibility mode
    +1
  • The Helper The Helper:
    I bitch about Xenforo sometimes but it really is full featured you just have to really know what you are doing to get the most out of it.
  • The Helper The Helper:
    It is just not easy to fix styles and customize but it definitely can be done
  • The Helper The Helper:
    I do know this - xenforo dropped the ball by not keeping the vbulletin reputation comments as a feature. The loss of the Reputation comments data when we switched to Xenforo really was the death knell for the site when it came to all the users that left. I know I missed it so much and I got way less interested in the site when that feature was gone and I run the site.
  • Blackveiled Blackveiled:
    People love rep, lol
    +1
  • The Helper The Helper:
    The recipe today is Sloppy Joe Casserole - one of my faves LOL https://www.thehelper.net/threads/sloppy-joe-casserole-with-manwich.193585/
  • The Helper The Helper:
    Decided to put up a healthier type recipe to mix it up - Honey Garlic Shrimp Stir-Fry https://www.thehelper.net/threads/recipe-honey-garlic-shrimp-stir-fry.193595/

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top