HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trigger: Creep Spawn Following Path + Upgrade

09-02-2004, 08:43 AM#1
shrimpchips
I'm sure this has been asked a hundred times here, so I'm sorry for beating a dead horse (couldn't find any tutorial), but how do create a creep spawn + path follow similar to what you see in TD and Hero Maps?

I am trying to finish my map, wherein each team has allied spawn creeps that follow rally points (from base A to base B... duh, right?) and is able to buy upgrades for the creeps (i.e: spawn a different batch of allied creeps each round).

I am familiar with the NWN toolset, so I would think it would mean making a trigger for a value that can be changed via the "buy/upgrade creeps," or in otherwords, the trigger has a value of 1 initially that is coded to spawn the initial creeps, and when you upgrade you change that value to 2 or to a different trigger with different spawn code... maybe I am tottally off base.

In any case, can anyone help point me in the right direction or give me clear instructions on how to do this?

~Cheers
09-02-2004, 11:35 AM#2
AIAndy
That belongs in the trigger haven. Moved.
09-02-2004, 12:21 PM#3
BuRnInSpartan
idk if this is what you mean but since you defined it as following path i asume it's gotta be something like DOTA or TOB. so mak two triggers like this like this

Events:Every (howerer long you want) of game time

Conditions: NONE

Actions: Create (X amount of units) at (w/e location)
Trigger turn of (this trigger)
Trigger turn on (this trigger)

Events: Unit enters region (make region where the creeps units spwaned)

Conditions: Player- owner of triggering unit equal to Neutral (equal to true)

Actions: Unit set order to move attack to (the next region you want to go to)
09-02-2004, 12:38 PM#4
shrimpchips
Quote:
Originally Posted by BuRnInSpartan
idk if this is what you mean but since you defined it as following path i asume it's gotta be something like DOTA or TOB. so mak two triggers like this like this

Events:Every (howerer long you want) of game time

Conditions: NONE

Actions: Create (X amount of units) at (w/e location)
Trigger turn of (this trigger)
Trigger turn on (this trigger)

Events: Unit enters region (make region where the creeps units spwaned)

Conditions: Player- owner of triggering unit equal to Neutral (equal to true)

Actions: Unit set order to move attack to (the next region you want to go to)

Thankyou ^_^

Few questions tho, how do you create a variable? Or rather a point on the map set as a variable for the trigger to act on? Also, there are 3 main paths, for 3 main triggers, how do you make them follow a specific route like in TD's so the creeps aren't just going the "quickest possible route"?

My last question (for now probably, unfortunately lol) is how do you tie triggers to purchasable upgrades? I.e.: upgrade your creeps lv.2 items, having it bought and then having a trigger from there?
09-02-2004, 01:41 PM#5
BuRnInSpartan
well keep making triggers and regions for when the unit hits the region to go to the next region etc. so make some regions and make triggers like so


Events: Unit enters region (w/e)

Conditions:NONE

Actions: Unit order triggering unit to move to (w/e region)

and keep making those for the paths and not to make a big deal about it or anything but if it all possible can i get a rep for that?
09-03-2004, 12:09 AM#6
shrimpchips
GOT IT! W00T! LOL THX