Ace TD Trigger help

Status
Not open for further replies.
Level 1
Joined
Oct 23, 2009
Messages
2
My progress has slowed on my game now. But i can continue if you guys can help me with triggers for three things.

1. How would i make creeps spawn at a point if a hero entered that point (like a circle of power), and how would i make it able to happen again?

(I can get this to work, but i would have to copy and paste the triggers to get it to work multiple times, and that would equal around 500 triggers).

2. How can i create a dialog screen, which pops up at the start of the game and shows all the races (builders) you can pick. And when you choose a race(builder) it spawns at your maze.

(I kind of understand how this would work, but don't understand the variables, so all help apreciated).

3. How would i create a random hero duel every 5 waves, like how to make the selection fo which heroes duel, how to move them to the duel arena, and how to set them as enemies!
(I'm not that familiar with how this would work, but i'm open to everything, and don't be afraid to get technical, i'm a nerd).
I'm sorry if these questions are noob, but this is my first project, and i'm aiming high, even if i need others to partially create it to achieve what i want.

4. How do i create a sell button, and what custom unit do i need?

5. How do you make a unit invunerable?

Thanks guys, i wouldn't be this far without you,
Fouraces.
 
Level 10
Joined
Oct 22, 2006
Messages
599
- I'm writing these triggers without the World Editor, so they might not be exactly the same.

  • Creeps Spawn
    • Events
      • Unit - A unit enters <Circle of Power> Region
    • Conditions
      • Boolean - Unit is A Hero equal to True
    • Actions
      • Unit - Create # unit(s) at <region> facing ### Degrees
This trigger...
Activates each time someone steps into the circle of power.
Checks if the unit is a Hero.
Creates as many units as you want, any unit-type you want, where you want and where you want them to face.

2. What do you mean you don't understand the variables?
There should be a variable for the dialog, and variables for each button you make, so you can trigger the actions when the button is pressed.

3. Just add a trigger that does all that.
First you must consider in which category is your Action/Condition/Event. Then you select the line that fits your needs, or search for such a line. The things you mentioned here are simple lines.
Event - Wave is Started/Finished
Condition - Current Wave is 5
Actions - *[Selection of which heroes to duel could be random. top kills, top levels, anything]*
Unit - Move Instantly to
Player - Set alliance for owner of unit1 Enemy to Owner of unit2
Player - Set alliance for owner of unit2 Enemy to Owner of unit1

I would suggest for you to get a partner that knows how to trigger, instead of asking all the triggers. We're here to help you 'n teach you, not make the map for you.

4. I'll cover that when I get home, don't have the link to assisst you now.

5. Add the Ability Invulnerable (neutral)
 
Level 19
Joined
Feb 25, 2009
Messages
2,004
1. First of all, I think you will need a periodic event(s) for spawning creeps, b/c Vergil's trigger will only spawn a unit when a Hero actually enters the specified region, so you will need to walk in, then walk out, walk in, walk out...

2. Check the tutorial section.

3. Its a long story, Im kinda tired atm to make the whole script/triggers

4. Create an ability for sell. Then when making the unit into the Object Editor, set its "Point Value" to the half of its price (ex: if the tower coast 100 gold, point value should be 50), thus, this will make the player to sell the specified tower for 50% of its actual price (50 gold in our case) use this trigger:

  • Sell
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Sell (50%)
    • Actions
      • Set Gold = (Point-value of (Triggering unit))
      • Set Point = (Position of (Triggering unit))
      • Special Effect - Create a special effect at Point using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
      • Special Effect - Destroy (Last created special effect)
      • Unit - Remove (Triggering unit) from the game
      • Game - Display to (Player group((Owner of (Triggering unit)))) for 5.00 seconds the text: (You've sold |cffffcc00 + ((Name of (Triggering unit)) + (|r for |cffffcc00 + ((String(Gold)) + |r gold.))))
      • Player - Add Gold to (Owner of (Triggering unit)) Current gold
      • Custom script: call RemoveLocation (udg_Point)
5. Vergil was first.
 
Last edited:
Status
Not open for further replies.
Top