HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Basic (VERY basic..) trigger request!

05-23-2004, 05:35 AM#1
Vandell
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
orcmasta
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
JJ912
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!)))))
This will also display the messege. A quick summary of what the messege says is a player was given lumber for another players head.
05-23-2004, 09:39 AM#4
SoulReaver
Vandell you couldt just have asked me :>
05-23-2004, 03:21 PM#5
Vandell
Totally AWSUM! (mispelling -totally- on purpose).

Thanks! .. Reputation points for all!
05-23-2004, 03:34 PM#6
SoulReaver
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
Vandell
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
JJ912
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
jimmypopali96
Quote:
Originally Posted by Vandell
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?


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
JJ912
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
Vandell
Quote:
Originally Posted by JJ912
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.

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
Vandell
Oh, wait. I just got it. Sorry! :3 Thanks again. ^^