HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

stubborn stupid trigger...(or is it me?!) help please.

10-28-2003, 05:39 AM#1
AnarkiNet
ok first off, this is a trigger to whack monsters around the hero for a few hp so a life drain aura item ability will kick in (based on healing ward spell).
the item works fine, ive attacked monsters and watch it kick in and drain their life every second...
the trigger doesnt work as i want it to tho, im asking for help in debugging it.
trigger:
Doomstone Aura
Events
Time - Every 1.00 seconds of game time
Unit - A unit Acquires an item
Conditions
Or - Any (Conditions) are true
Conditions
((Hero manipulating item) has an item of type Doomstone) Equal to True
(Item-type of (Item being manipulated)) Equal to Doomstone
Actions
Unit Group - Pick every unit in (Units within 575.00 of (Position of (Hero manipulating item)) matching ((((Picked unit) belongs to an enemy of (Owner of (Item being manipulated))) Equal to True) and ((Percentage life of (Picked unit)) Equal to 100.00))) and do (Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 5.00))

ive tried useing matching unit in the (percentage of life of (picked unit) and ((life of (picked unit)) - 5.00)) areas, to no avail.
thanks for any help i can get,
AnArKi
10-28-2003, 05:46 AM#2
Supra God CrK
i would suggest using a different trigger. don't make it so it only damages guys whos health is 100% make it do 1 damage to any unit within range of the unit holding the item. yea it will add 1 extra damage to some units without a cause. but it would be more easy and 1 damage isn't really that much at all. make the trigger look a little more like this.

event-
--unit enters range blah blah
condition-
--i don't know off head what to put here but just do a check to see if the unit has the item.
action-
--set life of triggering unit to life of triggering unit - 1

would be much much easier to do and although do 1 extra damage to some units with out need it would not be a big deal. and if you really were so worried about the unit taking an extra 1 damage you could set them to a variable and give them back thier stupid 1 life after like a 2 second wait time.
10-28-2003, 05:48 AM#3
FF_Behemoth
I Capilitized on what I changed......

Unit Group - Pick every unit in (Units within 575.00 of (Position of (Hero manipulating item)) matching ((((MATCHING UNIT) belongs to an enemy of (Owner of (Item being manipulated))) Equal to True) and ((Percentage life of (MATCHING UNIT)) Equal to 100.00))) and do (Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 5.00))
10-28-2003, 05:50 AM#4
Supra God CrK
lol or you can change what ff behemoth said. i have a wierd problem you see. i can't really edit other people's triggers. although i learned how to make my triggers from other people's i just am no good at editing them. i just prefer to see what thier triggers do and re-enact them myself. that is basiacally why i didn't even try to change what you did.
10-28-2003, 05:54 AM#5
Grater
Also the periodic event doesn't work right, or rather, the (Hero manipulating item) part of the action will be invalid.

You would be better off creating a unit variable "DoomStoneCarrier" or something, and update it when the item is picked up or dropped.
10-28-2003, 06:16 AM#6
AnarkiNet
thx guys i got it to work...only thing is the aura im useing doesnt give bounty or xp when it drains all the life away....*sigh* im goin to have to go back to immolation as base anyways...

now for another (nubbish) question:
how can i get the damn immolation graphics changed...no matter what i change em to, they stay at the original graphics.
thx again,
AnArKi
10-28-2003, 06:38 AM#7
FF_Behemoth
slk editing...