HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trigger Help plz

07-03-2003, 07:31 PM#1
Viper504
can some one help me out i suck when it comes to triggers.

heres what i need

when hero dies on team1 the player who killed the hero(team 2) gets extra bounty, not through the unit editor.So he would get 100 extra gold + the regular bounty

thanks for help
07-03-2003, 07:58 PM#2
Hivemind
Event-

Unit owned by player 1 dies

Condition-

Owner of killing unit equil to player 2

Action-

Add 100 to player 2 gold
07-04-2003, 12:41 AM#3
Viper504
thx for help but i have 2 teams, players 2-6 are team1 and players 8-12 are team 2 so when a player from team 1 kills a player from team 2 he would get extra gold + bounty so how would i go about doing this



event
unit owened by player(2-6) dies

Condition-
unit equal to hero true
Owner of killing unit equal to player(7-12)

action

add 100 gold to player(who killed the other hero)

Heres what i think i need ,so can any one help translate this into a trigger
07-04-2003, 12:53 AM#4
Dmonmonk
i'm not on my comp at the moment so i could be wrong but i believe theres a action trigger where it goes
add 100 gold to killer of triggering unit

and with all players on team 1/2 i think theres one where it goes
allies of [player]
07-04-2003, 02:00 AM#5
Thunderroms
I cant think right now, i KNOW there is an easier way but I dont have much time and here is a way that just poped into my head...

Envent:

--If a unit owned by Player 1 Dies
--If a unit owned by Player 2 Dies
--If a unit owned by Player 3 Dies
--If a unit owned by Player 4 Dies
--If a unit owned by Player 5 Dies
--If a unit owned by Player 6 Dies

Condition:

--unit equal to hero true
--Owner of killing unit equal to player7 or Owner of killing unit equal to player8 or Owner of killing unit equal to player9 or Owner of killing unit equal to player10 or Owner of killing unit equal to player11 or Owner of killing unit equal to player12

EVENT:

Add 100 gold to owner of killing unit.
07-04-2003, 03:15 AM#6
Guest
There is a more efficient way to do this...my WE just crapped out from something else I was testing and I have to do a reinstall so I can't do an _exact_ trigger, but...

Event:
A unit controlled by ally of Player 2 dies
Condition:
Killing Unit is owned by an ally of Player 8
Event:
Give 100 gold to owner of Killing Unit.

I'll try to have everything reinstalled and test this trigger for you within an hour or so.

For any who are curious what screwed up my WE...I unchecked the Unit is a Building boolean when trying to make a shopkeeper unit.
07-04-2003, 03:39 AM#7
Guest
Alright here's the actual trig.

Event:
Unit - A unit dies
Conditions:
Dying Unit belongs to an ally of Player 2 Equal to True
Killing Unit belongs to an ally of Player 8 Equal to True
Dying Unit is a Hero Equal to True
Actions:
Player - Add 100 to (Owner of (Killing Unit)) current gold
07-04-2003, 03:42 AM#8
Thunderroms
doesnt the condition have to be:

...player 2 or ally of player 2
and
...player 8 or ally of player 8

?

what i mean is when you say ally of player 2, does it include player 2 as well? i thought it ment just the allies...
07-04-2003, 04:57 AM#9
Weinbauer
you want a trigger which gives the extra gold only if the killer was from another team??

Event:
unit owned by player (1-6) dies

condition
-killing unit is a hero equal true
-(owner of(killing unit)) is an enemy of (owner of(triggering unit)

action
- add 100 gold to (owner of (killing unit)
07-04-2003, 03:39 PM#10
Guest
Change (triggering unit) to (dying unit)...not sure how big of a deal it makes, but always better to play it safe. And that's an outlook on the trigger that didn't even occur to me *grin* Smart thinking Weinbauer
07-06-2003, 05:46 AM#11
Viper504
tnx all but Darneith's way worked great
07-06-2003, 05:51 AM#12
Hivemind
Yea there is nothing wrong with his trigger. Player 2 is a ally of player 2 as far as the game is concerened. So it will work fine.