HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

trigger problems

01-09-2003, 07:16 PM#1
FurbyI)estroyer
im trying to make a 'Test of Survival - Orc' map for wc3 modeled after the Test of Survival - Terran one for sc and im having some problems with the healing area trigger(s). They just dont seem to work. Here they are:
Trigger 1
Event - a unit enters heal area

Conditions - Race of (owner of entering unit) equal to orc
Life of entering unit less than or equal to 99.00

Action - set life of entering unit to 100%

Trigger2
Event - a unit owned by player 1 is attacked

Condition - Owner of attacked unit is not equal to green, pink or grey. ( the comps)
Life of attacked unit less than or equal to 99.00
attacked unit equal to random unit from (units in heal area)

Action - set life of attacked unit to 100%

the triggers all sound fine to me and look like they should work but they arent.
01-09-2003, 07:41 PM#2
Kerry
There are some faults in it. In trigger 1 you can use (triggering unit) instead, otherwise it should work fine and u dont really need that life equal to or less than 99. And in the second condition it may not work if there are several units owned by player 1 because of the (random unit). Use Pick all units in [healarea] and do if (picked unit) equal to (triggering unit) then do (set life of (triggering unit) to 100%).
01-10-2003, 10:03 PM#3
FurbyI)estroyer
none of those worked:(
01-12-2003, 01:17 AM#4
FurbyI)estroyer
gee guys i know theres better triggerers out there then me yet no ones replying :(
01-12-2003, 09:23 PM#5
FurbyI)estroyer
ya i figured it out but its not what i was hoping for

in
Quote:
Life of attacked unit less than or equal to 99.00
i replaced 99 with 9999999 or how ever many it can have

but it would be some much better if i could do a percent instead of a value
01-16-2003, 11:25 PM#6
FurbyI)estroyer
new trigger problem:

in a map that im makeing, i have a part where theres 3 special effects at the same time. Problem is i can only destroy one, last created one. Then the other 2 units run around with glowing things on there head. Can no one help me? :bgrun:
01-17-2003, 11:20 AM#7
Krakou
Create special effect variables and store your effects in it than you can destroy special effect <variable>

The best is to create an array.

Ex.
Create an array called SpecEffect.

Trigger1 Create Effects
Event
Cond
Action
Create special effect ...
set SpecEffect[1] = last created special effect
Create special effect ...
set SpecEffect[2] = last created special effect
Create special effect ...
set SpecEffect[3] = last created special effect

Trigger2 Destroy Effects
Event
Cond
Action
For each integer A from 1 to 3 do destroy SpecEffect[Integer A]
01-17-2003, 11:57 AM#8
Extrarius
Trigger 1
Event - a unit enters heal area
Conditions - Race of (owner of entering unit) equal to orc
Action - set life of entering unit to 100%

Trigger2
Event - a unit owned by player 1 is attacked
Condition - attacked unit is in heal area = TRUE
Action - set life of attacked unit to 100%


Those two should work like I think you want them to - when any orc enters healing area it will be healed (the player must be orc tho so make sure u set the races), and any unit owned by player 1 in the healing area can't be killed from normal attacks (might be better to set them to invulnerable when they enter the area and vulnerable when they leave cuz you can still die from spells the way I haev it up there)
01-17-2003, 08:32 PM#9
FurbyI)estroyer
the healing area trigger is gonig to be hard, but that project is gonig on back burners for now, im going to anyturn to anouther project. the reason its going to be hard is because A) the terran units(orc in my version) dont get full life right off the bat B) i dont want it impossible to be killed in the healing area, just hard.