20 posts joined 2004-06-19
#1 2004-06-20
Help again please... How do I make a trigger that sets the amount of gold the player gets when he kills a certain monster?
Thanks!
1,431 posts Germany (NRW/Detmold) joined 2004-05-05
#2 2004-06-20
Do you mean a trigger that gives the player a specific amount of gold if he kills a creep or do you wanna have a trigger that changes the units bounty value?
20 posts joined 2004-06-19
#3 2004-06-20
I want a trigger that gives the owner of the tower that kills the creep a specific amount of gold.
If you know a good site that explains all of this to newbs that would be helpfull.
1,431 posts Germany (NRW/Detmold) joined 2004-05-05
#4 2004-06-20
OK, I'll start WE and do the trigger for you, I'll post it here when I finished it.
Sorry, don't know a site where ALL this is explained.
1,431 posts Germany (NRW/Detmold) joined 2004-05-05
#5 2004-06-20
Your Trigger
Events <<Unit - Player-owned unit event>>
Unit - A unit owned by Neutral Hostile Dies
Conditions <<Player Comparison>>
(Owner of (Killing unit)) Equal to Player 1 (Red)
<<Unit-Type Comparison>>
(Unit-type of (Killing unit)) Equal to [HereYourTower]
Actions <<Player - Add Property>>
Player - Add 15 to Player 1 (Red) Current gold
The <<text>>-descriptions should show you which event, condition or action you select in the list.
This trigger only refers to Player 1 and one type of tower, so you have to create a trigger for every player. You can build a trigger that is working for every player, but I don't know if you would understand that trigger.
20 posts joined 2004-06-19
#6 2004-06-20
Thanks a lot!
Another problem I stumbled upon is hwo to make countdown clocks.
I have been looking around at tutorials but I haven't found it yet.
1,431 posts Germany (NRW/Detmold) joined 2004-05-05
#7 2004-06-20
Wait plz. That's a bit more work.
Edit: Don't think I'll be able to post the solution today, so be patient.
51 posts Kansas joined 2004-05-07
#8 2004-06-20
Try This:
Events
<<Unit - Player-owned unit event>>
Unit - A unit owned by Neutral Hostile Dies
Conditions
<<Unit-Type Comparison>>
(Unit-type of (Killing unit)) Equal to [HereYourTower]
Actions
<<Player - Add Property>>
Player - Add 15 gold to (Owner of (killing unit)) Current gold
1,431 posts Germany (NRW/Detmold) joined 2004-05-05
#9 2004-06-20
LOL, yeah, jarin, that's quite a better one, concerning to every player
51 posts Kansas joined 2004-05-07
#10 2004-06-20
I don't understand... Was that sarcasm or were you actually meaning what you said? lol
1,431 posts Germany (NRW/Detmold) joined 2004-05-05
#11 2004-06-20
At first you have to create a timer-variable for your timer. I named it
Timer in the example. Then you create a trigger like this one:
TimerTrigger
Events <<Any event that you want, concerning to what
your're the trigger using for. But don't use "Map Initialization", it won't work.>>
Conditions <<concerning to the use of the trigger>>
Actions <<Countdown-Timer - Start Timer>>
Countdown Timer - Start
Timer as a Repeating timer that will expire in 60.00 seconds
<<Countdown Timer - Create timer window>>
Countdown Timer - Create a timer window for
Timer with title [HereYourTimerName]
<<Countdown Timer - Show/Hide Timer For Player>>
Countdown Timer - Show (Last created timer window) for Player 1 (Red)
This creates/starts a timer that repeats every 60 secs and shows it to player1. If you want every player to see it, use
<<Player Group - Pick Every Player in Player Group And Do Action>>
Player Group - Pick every player in (All players) and do (Countdown Timer - Show (Last created timer window) for (Picked Player))
51 posts Kansas joined 2004-05-07
#12 2004-06-20
que? What's a timer have to do with adding gold to a player?
1,431 posts Germany (NRW/Detmold) joined 2004-05-05
#13 2004-06-20
Adrian5 Thanks a lot! Another problem I stumbled upon is hwo to make countdown clocks. I have been looking around at tutorials but I haven't found it yet.I was refering to this.
And yes, it was sarcasm
, but to me cause I hadn't the simple idea to refer to the player that owns the killing unit.
20 posts joined 2004-06-19
#14 2004-06-20
I am totaly confused, I can't find anywhere that connects this timer to activate the release of my first round of creeps in my TD map.
1,431 posts Germany (NRW/Detmold) joined 2004-05-05
#15 2004-06-20
Aaah, that's what you want. Wait a moment.
OK, at first you create a trigger like the one above (edited it, look it up again). Then you create another trigger:
WaveAttack
Events <<Timer - Timer expires>>
Time -
Timer expires
Conditions Actions <<Trigger - Run (checking conditions)>>
Trigger - Run [YourWaveSpawnTrigger] (checking conditions)
Now you have a trigger that spawns new units every 60 secs.