HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Unit Group- Pick every unit Help

10-06-2004, 11:03 PM#1
Kishe
Can someone tell me why this trigger isn't working? When this trigger fires, no units get damaged. If I change Matching Unit to Picked Unit, it damages all units, including my own. Should I change (Picked unit belongs to an enemy of owner of caster equal to true) to (Picked unit belongs to an ally of owner of caster equal to false)? :(



Unit Group - Pick every unit in (Units within 400.00 of CasterPos matching (((Picked unit) belongs to an enemy of Player 1 (Red)) Equal to True)) and do (Unit - Order Caster to damage (Matching unit) for CasterMana using attack type Spells and damage type Normal.)
10-07-2004, 12:13 AM#2
Unknown6
Quote:
Originally Posted by Kishe
Unit Group - Pick every unit in (Units within 400.00 of CasterPos matching (((Picked unit) belongs to an enemy of Player 1 (Red)) Equal to True)) and do (Unit - Order Caster to damage (Matching unit) for CasterMana using attack type Spells and damage type Normal.)

as the elf worker says: no no no no no, no like that! let me do it.! ^_^

Unit Group - Pick every unit in (Units within 400.00 of CasterPos matching (((Picked unit) belongs to an enemy of Player 1 (Red)) Equal to True)) and do (Unit - Order Caster to damage (Matching unit) for CasterMana using attack type Spells and damage type Normal.

the correct use is:

Unit Group - Pick every unit in (Units within 400.00 of CasterPos matching (((matching unit) is an ally of Player 1 (Red)) Equal to False)) and do actions
---- actions
(Unit - Order Caster to damage (Picked unit) for CasterMana using attack type Spells and damage type Normal.)

Try to avoid the only one line triggers, use -do multiple actions-
that allows u to modify freely the values and such....

my advice to your trigger is to make 3 triggers (just to test)
with [event - player types a text] so u can activate it any time.
trigger #1, uses the trigger you are usin' now.
trigger #2, uses the trigger i said
trigger #3, shows the values (of all variants you're using)

then, run your map and activate the triggers. check the variants all time... and.. that's it. good luck, man.

c ya
10-07-2004, 01:31 AM#3
Kishe
Okay I'm pretty sure that'll work for me. Thanks!