| 05-02-2004, 08:36 PM | #1 |
Hi all, I'm making a map where when you use one ability you have a caster that is invisible cast a custom spell at the target. Ive done it all with triggers and have put in an 'issue order' action that takes ability codes and have put the ability code in the action. The problem is in the map when i test it the caster does not cast the spell. I got the correct code and everything but it wont cast the spell, it goes like this. Events Unit begins casting a spell Conditions Ability being cast equal to my ability Actions Create 1 caster for player 1 red at location of casting unit. Order last created unit to Order(A007) target point of ability being cast. The A007 bit is the code of my custom ability and that part isnt using a custom script. Can anyone help? |
| 05-02-2004, 10:27 PM | #2 |
you dont use the ability code, you use the orderstring. its one of the fields on the ability. |
| 05-02-2004, 10:48 PM | #3 |
Also note that with custim abilities, you use the order string that the ability was based off of. For example, if you created a Dark Portal that summoned peons, it would still use the same order string as the regular Dark Portal. |
| 05-02-2004, 11:29 PM | #4 |
Yea, so just make a Shockwave Dummy Spell, then when you go to order him to do it, just say, Unit - Order Unit to Orc - Tauren Chieftain - Shockwave The_Target. :) |
| 05-03-2004, 03:08 PM | #5 |
Hmm, I'll explain what my spell is. It's called Beast Fury and when you cast it a whole range of animals explode into your enemy. There are 5 variations of animal which means there is the main spell which summons bears and there are 4 other spells which use different models of animal. There are 4 different casters each with a variation of animal. Now when I do this in a trigger i set it so that when you cast beast fury it creates 4 differnt casters which cast a different variation of animal, so that it looks like a whole jungle is stampeding. So, when I order my casters to cast their spell I order them to Neutral-Beastmaster-Stampede the target of the spell. Now I get the bears exploding because thats from the initial part of the spell, but the other 4 dont show up at all. You can 'hear'' the rat stampede exploding but you don't see them or the other animals. :( So what the hell am I doing wrong? P.S: I appreciate any help you guys can give me. By the way linkmaster your lightning whirl spell looks awesome, I'd say that I like the larger one of the two. |
