HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

A little trigger problem :S

03-24-2004, 12:26 PM#1
chemo
okay i have this trigger, but i wont work correctly.. plz help me:

E:
Unit - A unit Spawns a summoned unit

C:
(Unit-type of (Summoned unit)) Equal to Storm Bolt lvl 1

A:
Custom script: local unit stormboltlvl1

Unit - Create 1 Storm Bolt lvl 1 for (Owner of (Summoned unit)) at (Position of (Summoned unit)) facing (Position of (Triggering unit))

Custom script: set stormboltlvl1 = GetLastCreatedUnit()

Custom script: call UnitAddAbilityBJ( 'Aloc', stormboltlvl1 )

Custom script: call UnitAddAbilityBJ( 'S005', stormboltlvl1 )

Unit - Remove (Summoned unit) from the game


the problem is that the other units arent able to attack the 'LastCreatedUnit'..

the Custom script: call UnitAddAbilityBJ( 'S005', stormboltlvl1 ) should have add the chaos ability to the last created unit, so the other units should be able to attack it, but no response from that action...

does anyone knows how to make this trigger work ?

thx in advance

~chemo
03-25-2004, 05:41 AM#2
Ligature
Hey so why are you using a local variable? Last Created Unit should work for that trigger...

Also, why create a new SBL1 when one has already been created? Why not just give Aloc and chaos to the summoned unit?

Other than that I have no ideas... I'm going to sleep now. Good luck!