HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Help with ability

12-08-2004, 04:59 PM#1
Guest
I'm making a dbz map, and I have an ability "Power up" made from Berserk. I'm trying to make it to where When they use the ability, a shockwave appears on the foot. I have done it with triggers, but if many people used it at once, then the trigger would mess up and the special effect would not go away. I need help. How can I make it on the ability where it will add the effect. And please, be specific, I'm not an expert at custom abilities.
12-08-2004, 05:28 PM#2
th15
First of all you don't need to use triggers, you could just edit the berserk buff (or whatever custom buff you made for the ability).

Secondly, why bother writing your own SFX system when you could just download WEU and use it's "create timed SFX on unit" functions...
12-08-2004, 05:30 PM#3
AFB-DieHard
You can convert your trigger to custom and save the special effect in a local variable(write "local effect temp" in the first line of the function YOURTRIGGERNAME_actions, then after it's added "set temp = GetLastCreatedEffect()" or something like that), then destroy it(I don't know the function name by heart, sorry, might be something like "DestroyEffect(temp)")
12-08-2004, 07:37 PM#4
Guest
I used the Timed Effect thing, but whenever I was about to test it, this error that the ability won't work popped up

call AddSpecialEffectTargetUnitWithTimer( "foot", GetTriggerUnit(), "Abilities\\Spells\\Orc\\Shockwave\\ShockwaveMissile.mdl", 12.00 )

I have no idea what it means or how to fix it.
12-08-2004, 07:41 PM#5
Guest
By the way, I can't just make a variable for it, because it is a choose your own character game, and it is gonna take a while to make variables and triggers to recongnize each player
12-08-2004, 09:04 PM#6
Guest
I've been trying a while now, and it keeps bringing up that error every time I use an advanced trigger. Somebody give me a specific tutorial of how to make this work.
12-09-2004, 04:50 AM#7
th15
The timed effect triggers are custom functions that you have to enable in your map. Open up WC3 Enhancer that comes with WEU and click "edit map". Open up your map, check the checkbox marked "Advanced Triggers" and save your map. After that, you'll be able to use the WEU advanced triggers.

You also should add the WEU action "Initilize advanced triggers" to your map init trigger.
12-09-2004, 07:31 PM#8
Guest
Alright, thanks for the help, I've got it up and working, and while I wa messing with it all, I've learned a lot more about triggers.