HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Triggered abilities, help out!

09-27-2006, 06:34 PM#1
refl3ction
Part 1:
Trigger:
Lotus Slash
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
(Ability being cast) Equal to Lotus Slash (8)
Collapse Actions
Set LotusCaster = (Casting unit)
Set LotusTarget = (Target unit of ability being cast)
Unit - Move LotusCaster instantly to (Position of LotusTarget)
Wait 1.00 game-time seconds
Unit - Add Lotus Image to LotusCaster
Wait 1.00 game-time seconds
Unit - Order LotusCaster to Orc Blademaster - Mirror Image
Wait 1.00 game-time seconds
Unit - Remove Lotus Image from LotusCaster
Set LotusGroup = (Units within 500.00 of (Position of LotusCaster) matching (((Matching unit) is an illusion) Equal to True))
Collapse Unit Group - Pick every unit in LotusGroup and do (Actions)
Collapse Loop - Actions
Unit Group - Add (Matching unit) to LotusGroup
Unit Group - Add LotusCaster to LotusGroup
Wait 1.00 seconds
Unit Group - Order LotusGroup to Attack LotusTarget
Custom script: call DestroyGroup (udg_LotusGroup)

the prinicipal of this ability is that when the target is selected the caster moves behind the target and then casts mirror image... then the images attack the target of the spell

what actually happens is the caster moves behind the unit and then waits for about 3 seconds then casts mirror image then the images are removed imediatley
09-27-2006, 07:00 PM#2
Captain Griffen
Unit Group - Add (Matching unit) to LotusGroup

What is this supposed to do..?

Also you leak the location.
09-27-2006, 07:08 PM#3
refl3ction
whoops i over looked that part (when i changed the pick every units action)

but that doesnt explain the long pause
09-27-2006, 07:35 PM#4
Captain Griffen
3 seconds is about right. Waits are inaccurate (PolledWait always a bit on the high side).

And how the heck am I supposed to know why they are removed?
09-27-2006, 07:55 PM#5
Mystic Prophet
Ok the pause is because of the waits. you have two 1 second game time waits before you order the unit to cast mirror image which as griffen said, can be a little inaccurate. as for the removing of the units, you're removing them immediately after they are ordered to attack, so they never actually get a chance to. You might want to have a seperate trigger that detects when those images attack and then removes them afterwards.
09-27-2006, 08:23 PM#6
refl3ction
ok.. i think i got the idea

ill have to try it out

thanks