| 06-11-2006, 04:38 AM | #1 |
Basically, I want to when a Sea Elemental attacks another unit, the Sea Elemental auto-casts Chain Lightning to that unit which bounces to nearby other units. Trigger: Chain Lightning
![]() Conditions
The problem has 2 things. 1: It doesn't work. 2: If I wanted for a custom-Chain Lightning spell, do I still use this command and edit normal Chain Lightning or else? Please help! |
| 06-11-2006, 07:02 AM | #2 |
Yes, you use normal Chain lightning as order... its because Farseer - Chain Lightning converted to JASS results in "chainlightning" order string. You can see that normal Chain Lightning and your custom one have same order string ("chainlightning") |
| 06-11-2006, 04:41 PM | #3 |
Um, okay...but why doesn't it work? Should I create a dummy unit instead? |
| 06-11-2006, 04:49 PM | #4 |
I guess it would be because every time a unit attacks it set to be the Unit_1 and there are likely to be many units attacking at the same time and so forth. Put some condition in there like "Attacking unit is (Type of Sea Elemental) = True". |
| 06-11-2006, 04:52 PM | #5 |
Yeah, I think you should check if the attacking unit is the one you want. |
| 06-11-2006, 05:18 PM | #6 |
Two the last two posters: that is exactly what he does. There is no wait, so there couldn't be a problem with multiple triggers running simultaneously. Are you sure: The attacking unit is of the correct type The attacking unit has the spell The attacking unit has enough mana to cast the spell The attacked unit is a viable target of the spell |
| 06-11-2006, 05:29 PM | #7 |
Thanks everybody for the replies. The trigger won't be screwed because I'm making sure there is ONLY one Sea Elemental on the map (it's a type-of-boss). I don't get why it should be "Attacking unit is (Type of Sea-Elemental) = True". Or should the trigger be something like this: Trigger: Chain Lightning
![]() Conditions
EDIT: And yes, I checked that list of the attacking unit. |
| 06-11-2006, 05:38 PM | #8 |
Yeah, I just re-created your trigger on my Editor and it worked. I'll I can say is check those things blu da noob mentioned. Edit: Oh just noticed you checked those. Damn, perplexing. |
| 06-11-2006, 05:55 PM | #9 |
As long as you checked the stuff I posted above, I can't see a problem. |
| 06-11-2006, 08:48 PM | #10 |
No no no, I meant that I was ASKING if the trigger in my post would work. In this case, it will. Thanks everybody :) P.S. Is there someway you can copy + paste triggers posted here into World Editor? That would be so cool if you could and much more convenient. |
| 06-11-2006, 08:49 PM | #11 |
No, you can't :/ |
| 06-11-2006, 09:20 PM | #12 |
You can copy paste JASS. |
| 06-11-2006, 09:22 PM | #13 |
Have 2 attacks, one normal, the other with the cooldown you want for Chain lightning, a bouncing path with the specified max bounces and a lighning projectile. Have both of them targetable on the same thing or atleast the same ground. Looks the same, can damage the same, just no actual spell. |
| 06-11-2006, 11:16 PM | #14 |
Ok, thanks for the reply bout the copy/paste thing. @orc_dork: 2 attacks? I get what you mean but...alright I'll give that a try, thanks! |
| 06-12-2006, 09:55 AM | #15 |
You can't use lightning as a projectile, all the units with lightning attacks have some special lightning ability which adds the actual effect. I'm not sure if those abilities work with bounvy attacks. |
