[Solved] A problem with Regions.

Status
Not open for further replies.
Level 1
Joined
Aug 17, 2012
Messages
4
Hey Guys,

I have a problem with my regions and can't solve it. :/

I'm creating a Tower Defense Map and my Creeps are supposed to go a specific route. My Map has 17 regions which have to be passed until the Player loses a life. The players are able to create their own mazes with their towers. (just like Gem TD)
If a Player creates his maze in a way that causes the creeps to walk over another region, the creeps will walk to the next region.

For Example:

normal Way: 1->2->3->...16->17
players Way expected: 1->2->5->3->5->4->5->...16->17
players Way real: 1->2->5->6->...16->17

I hope you understand my problem. :x

Is there a solution to let them walk the expected way?
 
Well all the triggers are built that way:

  • redWP1ToWP2
    • Events
      • Unit - A unit enters wp1 <gen>
    • Conditions
      • (Unit-type of (Triggering unit)) Not equal to Builder
    • Actions
      • Unit - Order (Entering unit) to Move To (Center of wp2 <gen>)
 
Try this: make a unit group for each "waypoint" (I suggest an array)

When you spawn a creep, add it to group[1]

The first waypoint will ONLY trigger if the unit is in group[1], and then remove the unit from group[1] and add it to group[2].

Repeat this for the rest of the waypoints.


thanks for that tip, I will try this out :)
 
Status
Not open for further replies.
Back
Top