| 05-23-2004, 05:35 AM | #1 |
All I need, is one trigger that does the following.. it should be easy to do, and unfortunately, I have no idea how to. @_@ I'm not that great with triggers, you see. Here it is..: Whenever a hero is killed, the owner of the killing unit receives additional lumber equal to the level of the hero killed, and a message will pop up to all players declaring such. Can anyone help me? I'm doing my best to get better with triggers, but it's a pain.. |
| 05-23-2004, 06:22 AM | #2 |
I'm pretty sure this is it... Code:
Events Unit - a unit dies Conditions ((dying unit) is a hero)Equal to true Actions Player - Set (owner of (killing unit)) Current lumber to ((Hero level of dying unit)) + 0 |
| 05-23-2004, 06:55 AM | #3 |
Code:
Add Lumber
Events
Unit - A unit Dies
Conditions
((Dying unit) is A Hero) Equal to True
((Dying unit) belongs to an enemy of (Owner of (Killing unit))) Equal to True
Actions
Player - Add (Hero level of (Dying unit)) to (Owner of (Killing unit)) Current lumber
Game - Display to (All players) the text: ((Name of (Owner of (Killing unit))) + (was given + ((String((Hero level of (Dying unit)))) + (lumber for + ((Name of (Owner of (Dying unit))) + 's head!))))) |
| 05-23-2004, 09:39 AM | #4 |
Vandell you couldt just have asked me :> |
| 05-23-2004, 03:21 PM | #5 |
Totally AWSUM! (mispelling -totally- on purpose). Thanks! .. Reputation points for all! |
| 05-23-2004, 03:34 PM | #6 |
Uhmm Vandell im a member of the team, you know, i got msn you know; ask me another time (im triggere you know), and what about the thread for Ancienthold TD, update it, show some more scrennies! |
| 05-23-2004, 06:54 PM | #7 |
Hmm.. there was a little problem with that trigger you gave me, JJ912. I get lumber and all that correctly . . . but the text message shows up exactly as it is: with the brackets and everything. How do I fix that? |
| 05-23-2004, 09:33 PM | #8 |
It does? hmm well sorry bout that. To tell you the truth I was just guessing that itd display the messege the way I posted. Ill work on making the messege display properly. |
| 05-23-2004, 09:34 PM | #9 | |
Quote:
because you typed it in as a string didnt you? everytime you see a + and something is in brackets its a conecate (mispelled i'm saure) strings not just the text field jimmy |
| 05-24-2004, 12:42 AM | #10 |
Yeah I tested it and it worked fine. You mustve done what Jimmy said and just plain typed the exact words I posted. Its actually a bunch of concatenate strings for each couple words. You convert the integer of the dying units level to a string to display the amount of lumber. For the player names look down the list of string actions for Player - Player Name. was given lumber for 's head are the only things that are actually words you type in. |
| 05-24-2004, 04:20 AM | #11 | |
Quote:
Ahh, pisshiu, sorry.. but I don't know what you mean. I copy-and-pasted it in.. er, and all that. Into the part where you actually type it in.. |
| 05-24-2004, 04:21 AM | #12 |
Oh, wait. I just got it. Sorry! :3 Thanks again. ^^ |
