HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Making Your Units Invulnerable To Your Units, How?

11-16-2002, 10:34 PM#1
Guest
Is it possible to create a trigger that would make your own units invulnerable to your other units? I use bounty for all units and want to make sure people cannot kill their own units for gold.
11-16-2002, 10:45 PM#2
Killer927
Do like this in the give bounty trigger:

Actions:
(must be the first one) If ((owner of killing unit) equal to (owner of dying unit)) (skip remaining actions) else (do nothing).

This should work like what you want. :gsmile:
11-16-2002, 10:46 PM#3
Guest
i cant remember the exact triggers, but something like this should work:

EVENT
unit is issued an order targeting another unit
CONDITION
Owner of (targeting unit) equal to owner of (targeted unit)
issued order = attack
ACTIONS
order (targeting unit) to stop
-or-
order (targering unit) to move to position of (targeted unit)
11-16-2002, 11:35 PM#4
ChronOmega
or you can for the triggs do this

Event:
unit owned by (player 1) (dies) [keep going through all you players]

Condition:
owner of (killing unit) is not equal to owner of dying unit [boolean]

Event give (x) gold to (owner of(killing unit))
11-16-2002, 11:39 PM#5
ph33rb0
Go with Mythmon's suggestion it's the best :P
11-17-2002, 12:19 AM#6
Scio
you could set the attack of the unit to not allow friendly units in the unit editor
11-17-2002, 08:00 AM#7
Guest
Kick *** Scio! Thank you so much. The ultimate solution =) Cheers :D