| 10-23-2003, 03:18 PM | #1 |
hi i need a spell which, when cast the spell on the enemy unit it will be teleported to the casting unit, i know i have to use triggers, but how do i make such spell ? plz help me :) |
| 10-23-2003, 03:46 PM | #2 |
First, base the new spell of a targetted, non-autocast spell that can be changed to do nothing. I'd recommend a 0-duration 0-damage frost nova for this. Make the casting range as high as possible (999999-ish) and set the duration and all damage values to 0. Also make it use the effect you want the spell to have when it hits an enemy. Blink is a good one, as is the Dark Summoning target. Next, make a trigger that looks like: Code:
A unit is issued an order targetting an object Issued Order equals frostnova (Or whatever you based it on) Unit-type of ordered unit = the unit with the ability (Not required, but might be safe if you have a lot of frost novas flying about.) Set Variable: TeleportedUnit = Target unit of issued order and one that looks like: Code:
A unit finishes casting an ability Casted ability equals (Your summoning spell) Move TeleportedUnit instantly to Position of (Casting Unit). Create a special effect for when the unit arrives. That should do it. |
| 10-23-2003, 04:38 PM | #3 |
sry it dosnt work it have to be at tower that are forced to cast the ability through triggers and then the targeted unit has to be teleported right next to the tower (blink dosnt as it is made to transport the caster and not the targeted unit) |
| 10-23-2003, 05:05 PM | #4 |
So basically a tower targets a unit, and that unit is to be moved to the location of an enemy target? You're probably out of luck; you can't get an ability to pick both the teleporter and the target enemy unit. You might have the tower teleport the nearest allied unit to the location of whatever unit you have the tower target, I guess. |
| 10-23-2003, 05:23 PM | #5 |
just make a 0 cost blink unit abiility, give it to the unit when the tower attacks and make it teleport using blink to the tower, then take blink away. |
| 10-23-2003, 06:05 PM | #6 |
k, i try to explain this one more time tower: Ability: Teleportation Enemy: Ability: None the tower cast an ability on the enemy. the enemy have to moved instantly to the casting unit (which is the tower). i need a trigger to do that :/ |
| 10-23-2003, 06:12 PM | #7 |
jeez, I just told you how, Oh well Il post the trigger... Make the tower just have a 2-2 dmg attack Make a modified blink that costs 0 mana a unit varable that is, say xUNITx Trigger 1 EVENTS Unit is issued order CONDITIONS issued order = to attack target of issued order is within (range of tower) of (err is it called issuing unit or somthing?) Unit issued order to = to Tele Tower ACTIONS give target of order "blink" order target of order to Night Elf- Warden Blink to position of Unit issued order(thingie...) disable "blink" for target of order. There you go, Have fun and GL on ur map.:D |
| 10-23-2003, 06:12 PM | #8 |
This is particularly simple, I'm surprised you're asking for help on this. Have a trigger watch for whatever dummy spell the Tower is casting. BulletCatcher's Frost Nova suggestion's a good one. Just like his suggestion, set a target variable when a tower starts casting the dummy ability. Trigger: Event: Generic unit starts the effect of an ability Condition: Ability = FrostNovaDummy Actions: Move Instantly TargetUnit to Position of Casting Unit You can create some special effects if you wanna be fancy. |
| 10-23-2003, 06:44 PM | #9 |
np i made my own version and it work, almost---- when the unit is teleported, the unit starts to attack my tower... how can cancel that ? |
| 10-23-2003, 07:40 PM | #10 |
Um, perhaps you could learn to experiment a bit? That way, you'd learn how to set units to not be able to attack buildings. |
| 10-23-2003, 08:07 PM | #11 |
lol i know how to set it so they wont attack structures in the unit object editor, but i dont know how to do it in triggers... is AI - Ignore Guard position ? |
