HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trigger does everything but attach

07-13-2004, 07:29 PM#1
Redesh
This trigger won't attach the weapons. It replaces the unit and takes 300 gold but doesn't attach the weapon. Maybe I missed something and someone could tell what is wrong with it?

Events
A unit Begins casting an ability
Conditions
Actions
If (All conditions are True) then do (Then Actions) else do (Else Actions)
If Conditions
And - All conditions are true
Conditions
(Ability being cast) Equal to Light Class 1
(Unit type of (Target Unit of ability being cast)) Equal to Uchra Servant
Owner of (Casting Unit) current gold Equal to or greater than 300
Then do Actions
Replace (Target unit of ability being cast) with a Light Uchra Warrior
Add -300 Gold to owner of (Casting Unit)
Create a special effect attached to hand right of (Target unit of ability being cast) using Dagger
Else
Do Nothing
07-13-2004, 08:27 PM#2
Vexorian
Quote:
Replace (Target unit of ability being cast) with a Light Uchra Warrior

Replace unit, removes unit A and creates unit B at the position of unit A, you should better add a chaos based spell that makes the unit a light Uchra Warrior or use last replaced unit to attach the special effect

And use starts the effect of an ability for event
07-13-2004, 11:33 PM#3
harshateja
You gotta save the new unit as a variable and call it when doing the special effect because what you are doing is telling it to do a special efect on the right hand of a non-existant unit. o_O If you wanted it on the original target of unit being cast, move the special effect up and add a delay between the replace and the speciall effect like for 1.5 seconds.

~HarshaTeja~
07-13-2004, 11:36 PM#4
Vexorian
Quote:
Originally Posted by Vexorian
Replace unit, removes unit A and creates unit B at the position of unit A, you should better add a chaos based spell that makes the unit a light Uchra Warrior or use last replaced unit to attach the special effect

And use starts the effect of an ability for event
The stuff you say, harshateja , the first one won't show a special effect either, and the second one will show a weapon attachment in the ground that will be independant of the replaced unit
07-13-2004, 11:38 PM#5
harshateja
Quote:
Originally Posted by Lord Vexorian
The stuff you say, harshateja , the first one won't show a special effect either, and the second one will show a weapon attachment in the ground that will be independant of the replaced unit

Heh i editted i thought he was adding the special effect into the ground. Oh well its changed alls well.

Should i delete this post?
07-13-2004, 11:39 PM#6
Vexorian
no, it is not flaming , spamming,
07-13-2004, 11:54 PM#7
th15
Also, if the spell is a non-targeted spell, your condition checking the target unit of ability being cast may return null. If this is indeed how you do it, you might want to change that condition to a unit-type comparison.