| 05-01-2004, 01:45 AM | #1 |
Ok, im making a custom spell/trigger for my map. And I have this trigger thats annoying the hell out of me. Its supose to create a worm and also do damage to the units around the worm when used and this will be most commonly used on water, but it can also be on land. and No this trigger cant be fixed by using the infernal spell, so dont post a message that says to use it. I have the worm spell as blizzard as the base spell. it does its damage and stuff and so here comes the worm. I have it so it says this Event: A unit finishes casting an ability Condition: Ability being cast is equal to "Worm" Action: Create 1 worm for triggering player at target point of ability being cast facing random angle "Worm" is the spell blizzard The unit worm is amphibious, so it can go on land and water, and it is also unable to move, its kinda like a ward. Now, when your hero casts the spell it creates the worm, BUT, it creates the worm in the center of the map, which is really lame. anyways, this seems to be the correct triggers, but it doesnt work, please help me out, and NO this cannot be fixed by infernal! |
| 05-01-2004, 02:19 AM | #2 |
Well it took me two test tries and i figured it out. The problem with you code is you have the unit appear at the point of the spells target. However you have it appear after the spell is done so there is no longer a target. Switch you action to unit begins casting ability instead of finishes and it will work fine. |
| 05-01-2004, 05:39 AM | #3 |
Trigger No. 1 Events: Unit issues an order targeting a point Conditions: Order equal to (string(blizzard)) Unit type of ((Ordered unit) equal to (Your unit here) Actions: Set Worm_Point equal to target point of issued order Trigger No. 2 Events: Unit Finishes casting an ability Conditions: Ability equal to Worm Events: Create 1 Worm for (Owner of (Triggering Unit) at Worm_Point facing random angle degrees Variable(s) Needed: Worm_Point = Point |
| 05-01-2004, 02:59 PM | #4 | |
Quote:
Ok, thank you! |
| 05-01-2004, 11:54 PM | #5 | |
Quote:
|
