Warcraft III resources & community, 2003–2006 · archived

Help again please...

26 posts
#1

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! :)
#2
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?
#3
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. :)
#4
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.
#5
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.
#6
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.
#7
Wait plz. That's a bit more work.

Edit: Don't think I'll be able to post the solution today, so be patient.
#8
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
#9
LOL, yeah, jarin, that's quite a better one, concerning to every player :? :? :?
#10
I don't understand... Was that sarcasm or were you actually meaning what you said? lol
#11
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))
#12
que? What's a timer have to do with adding gold to a player?
#13
Adrian5Thanks 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 :twisted: , but to me cause I hadn't the simple idea to refer to the player that owns the killing unit.
#14
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.
#15
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.