| 03-13-2005, 12:35 AM | #1 |
My map is similar to Acrhery Tactics in short, but in detail a completely different game. But anyway this ability is called Explosive Arrow, and it's missle isn't homing, and it goes to a certain spot and blows up. But the explosive effect is done through the trigger editor. And although it was working fine before, one moment it..stopped working and I don't know why. I was wondering if anyone sees any problems, or if they know a better way to approach the situation. Code:
Explosive Arrow
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Explosive Arrow
Actions
Custom script: local location udg_EACasterPoint
Custom script: local location udg_EACastingPoint
Custom script: local real udg_EAWaitSec
Custom script: local effect udg_EAsfx
Set EACasterPoint = (Position of (Casting unit))
Set EACastingPoint = ((Target point of ability being cast) offset by (0.00, 0.00))
Set EAWaitSec = ((Distance between EACastingPoint and EACasterPoint) / 1100.00)
Wait EAWaitSec seconds
Special Effect - Create a special effect at EACastingPoint using Abilities\Weapons\SteamTank\SteamTankImpact.mdl
Set EAsfx = (Last created special effect)
Wait 1.00 seconds
Special Effect - Destroy EAsfx
Custom script: call RemoveLocation( udg_EACastingPoint )
Custom script: call RemoveLocation( udg_EACasterPoint ) |
| 03-13-2005, 05:47 AM | #2 |
Guest | All I see there (maybe I'm wrong) is the creation of a special effect (steam tank attack) but absolutely no damage inflicted (maybe it comes from the fact that the ability does the damage). Also, the special effect you use (in my opinion, not sure though) has no birth-death animation, so you need to wait more before you remove it (no loop animation), because yet it only has the time to start appearing before it gets destroyed |
| 03-13-2005, 06:50 AM | #3 |
If it works, it is great :) |
| 03-13-2005, 10:59 AM | #4 |
I don't really know much about JASS, (hardly anything, in fact) but I think BFD is right... You could try using a different SFX, perhaps the goblin frag boom from the "spawned effects" menu, and you don't have anything in the TRIGGER which does the damage. Did you edit any other triggers between it working and it ceasing to work? |
| 03-13-2005, 01:25 PM | #5 |
No, the damage is done through the ability. And I'll try what BadFurDar said, because he is right about the animations. It's been about 2-3 months since I've mapped and I'm trying to recall the best I can, you forget about somethings. ;) Thanks, I'm going to try it right now, and I'll edit this post with the results. Edit: It still isn't working, I've changed, the delay amount from 1 second to 30, even up to 2 minutes. I've taken out the delay and removed the 'Remove SE' action. I'm not really sure why it isn't working. I'll post up the map if you want to see it. Most of the initialization triggers are there just for testing purposes. The final version will be alot cleaner. |
| 03-13-2005, 03:24 PM | #6 |
Guest | I'm sorry I won't look at the map because I don't have much time :( At least I'll try saying something that can help.... You could use the effect of the phoenix attack for the ability, it makes a fire trace with an explosion in the end |
| 03-13-2005, 11:58 PM | #7 |
Oh well, thanks anyway. Anyone else see a problem? |
