HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

whats the event for...

08-05-2003, 11:40 PM#1
badomen
a unit attacked by a spell?

eg

--Event--
unit is attacked by spell

--cond--
spell = to heal

--action--
add unit to unit group "1"


whats the correct event?
08-05-2003, 11:54 PM#2
Draco
I think you may have to use Player Specific unit event. Begins casting an ability. Use a condition to check wat the ability is, then add the targeted unit to the variable/ unit group you want.
08-06-2003, 12:49 AM#3
badomen
nope dosnt seem to work....

here what i got can someone fix it..

--Event--
Unit- potofgravey<gen> Begins casting an ability

--Condition--
Thicken Equal to (ablility being cast)

--Actions--
unit group - add (targeted unit) to table*

----------------------------------------------------------
* "table" would be the variable

Variable name: table
Varialbe type : unit group
initial value : Empty unit group (defult)
-----------------------------------------------------------

then i have this trigger:

--Event--
unit -potofgravy finnishes casting ability

--condition--
ability being cast equal to Pour

--Action--
unit group- pick every unit in table and do (unit-kill (picked unit) )

and when i cast unit dont die???

Edit: 2nd condition ability meant to be pour
08-06-2003, 12:57 AM#4
Draco
Pehaps you can't do it. If you want the spell to kill them, why don't you just make it do ultimate damage?
08-06-2003, 12:59 AM#5
badomen
i dont want it to kill them at point of cast i want to be able to kill at will :)
08-06-2003, 01:13 AM#6
badomen
ok i found what the prolem is, its this trigger

--Event--
Unit- potofgravey<gen> Begins casting an ability

--Condition--
Thicken Equal to (ablility being cast)

--Actions--
unit group - add (targeted unit) to table*

its not adding the unit to the unit group/.....

any ideas anyone?
08-06-2003, 01:38 AM#7
35263526
thats because you have to use the 'unit is issued with an order targeting an object' trigger for the 'targeted unit' syntax to work.

Your trigger would be

EVENTS:
A generic unit is issued with an order targeting an object

CONDITIONS:
Issued order = (Base ability for Thicken)
Ordered unit = potofgravey

ACTIONS:
unit group - add (targeted unit) to table
08-06-2003, 02:03 AM#8
badomen
wouldnt that add the castor to the unit group not the target enemy?

35263526: can i send you the map via e-mail and you have a look what im trying to do and see if its possible?
08-06-2003, 02:16 AM#9
35263526
yeah, but do it soon cause i wont be able to within 2 days time

Edit: Ill PM u my email
08-06-2003, 02:33 AM#10
badomen
ok i sent the e-mail i check back here so if you got any q's post here or e-mail back

again thanks

EDIT: it wont send?!?! i just upload in here ok
08-06-2003, 02:38 AM#11
badomen
here it is

i turned the spell i need fixed off so u know what one it is
08-06-2003, 06:21 AM#12
badomen
what do you think 35263526?

anyone else have any ideas i could try while im waiting
08-06-2003, 07:04 AM#13
zotax
I need a trigger like this to, someone help plz
08-06-2003, 07:16 AM#14
badomen
all i need is the "event" that tells trigger a unit has had a spell cast on him....
08-06-2003, 08:01 AM#15
zotax
No this works:
Event: A unit is issued and order targetting an object

Condition: Issued order equal to (order(the name of the base ability here, with no spaces inbetween words)

Action: Add (target unit of issued order) to unit froup X