HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trigger Enhanced Spells...

08-10-2003, 08:26 PM#1
slain.death
This is KIND OF embarrasing, but I can't seem to get stupid Dark Conversion to change ownership of the unit that transforms fromt he unit Dark Conversion was casted on... I don't know why the triggers I've done don't work. Any Ideas?emote_confused
08-10-2003, 08:35 PM#2
FyreDaug
Post the triggers.
08-10-2003, 08:47 PM#3
slain.death
Well I have tried two ways, the first way is more reasonable in my opinion but yea. The second way is kind of incomplete cause I wasn't sure what to put as an action.

Event - A Unit is issued and order targetting an object.

Condition - Issued Order Equal To darkconversion

Action - Wait 10.00 Seconds. (I just put any old random time to see if it would cast the spell, finish casting hte spell, change the unit and then give control the unit to me)
Action - Change Ownership of Target Unit of Issued Order to Owner of Malganis and Change Color.

Second way: Erm... I don't really know much about the ability sections of the triggers so I wasn't sure what to put.

Event - A Unit finishes casting an ability.

Condition - Ability Being cast equal to Dark Conversion

Action - ???

... Any Ideas? emote_sweat emote_confused emote_sweat emote_confused emote_sweat emote_confused
08-11-2003, 09:55 PM#4
FF_Behemoth
create a unit varible named darkconvertTarget

E- a unit issue order to object
C- issue order = ((order(shadowstrike)) <---- this is important.. since I've based my spell off shadowstrike, that would be the orderstring, Im not sure what the orderstring for darkconversion is, check the ability editor (look at what the orderstring is)
A- set darkconvertTarget = targetunit of last issued order

E - a unit begins casting an ability
C- ability being cast = () <----- your custom spell here
A - change ownership of darkconvertTarget to casting unit and change color

There you have it.... Note that you can edit the Charm spell to get the smilar effect...........


***Heres a way to revert control back to orginal owner
create a unit varible named darkconvertTarget
create a player variable named preivousOwner

E- a unit issue order to object
C- issue order = ((order(shadowstrike)) <---- this is important.. since I've based my spell off shadowstrike, that would be the orderstring, Im not sure what the orderstring for darkconversion is, check the ability editor (look at what the orderstring is)
A- set darkconvertTarget = targetunit of last issued order
A- set preivousOwner = target unit of last issued order

E - a unit begins casting an ability
C- ability being cast = () <----- your custom spell here
A - change ownership of darkconvertTarget to casting unit and change color
A - wait xxxx gametime secs
A- Change ownership of darkconvertTarget to previousOwner and change color
08-12-2003, 09:26 AM#5
slain.death
Ooo thanks! I shoulda thought about using variables... Oh well. Thanks again!:ggani:
08-12-2003, 10:13 AM#6
Zoi
That wait command probably killed your event response, so setting a variable is necessary.