| 09-09-2003, 04:50 PM | #1 |
How could I make it to when my hero casts shockwave, he will blink or move instantly to the end of the shockwave's range. Sorry I read this and it doesn't make much sense. diagram... O ------------------- X O = my hero ---- = shockwave X = the point shockwave stops, hero should ideally be there. Thanks |
| 09-10-2003, 04:43 AM | #2 |
well i may not be able to answer your question in a good way, but ill take a whack at it. you can first of all try to make a trigger that instantly moves you to where you clicked to cast the spell, hence where about the shockwave ends. hre goes... Color Sheme: Grey- trigger parts; Red- Action, Event, or Condition text; Blue- Event, condition, action type; Green- event, condition, action type info (kinda like an adverb or preposition), orange- function group Events (Unit (Specific)) (Unit with ability) Finishes casting an ability Conditions NONE Actions Move (Triggering Unit) instantly to (Event Response) (Target Point of Issued Order) Hope thats not too complicated....... NOTE: this will only work if this spell is the only spell that unit has that requires to to click a target or area to carry out. if you have other ones, then you will also teleport to the area you click for them too. If this doesnt work or if you have other spells that you click somewhere for, you can always view both the spells blink and shockwave in W3M Map Utilities', copy their data field values for fields 11, 12 ,13, and 14, then make your own custom spell with the effects of both spells (as long as there are 4 or less individual field values between the two of them). of course you will need to know where the .slk files are to edit the existing two spells. me? ive never done it before, but i wanted to. my problem was finding the .slk files so i could find out what to put in data fields 11, 12, 13, and 14. maybe someone else can step in and help the both of us here. |
| 09-11-2003, 03:25 AM | #3 |
Thank you, you have been very helpfull. |
| 09-22-2003, 06:54 AM | #4 |
Ok what about this... Basically the point of this spell is for the hero to teleport to a location and everyhting between gets hurt. The problem with the triggger above is the spell keeps going even if you teleport inside the max range. Any thoughts? |
| 09-22-2003, 10:15 PM | #5 |
well if that doesnt work, i dont know, check out the tutorials. ill do a little research myself if i get bored... |
| 09-24-2003, 07:35 PM | #6 |
if the range is same on all levels you may do: unit - move (casting unit) instantly to {point with polar offset} (position of (casting unit)) with offset <range of shockwave angle (facing of(casting unit)) |
| 09-24-2003, 09:32 PM | #7 |
OK, basically you must do this.] A variable of type point. Trigger: Event: Unit issues an order targeting a point Condition: Order comparion: Order matches the base spell of the shockwave Action: Set Variable (ShockwavePoint) = Target point of issued order Trigger 2: Event: Unit Finishes Casting a Spell, or Unit Begins Casting a Spell, whatever is convenient to you. Condition: Spell = the one you're casting Action: Move Unit (instantly) where target point = Shockwave Point. If you want you can also add Effects as Actions in this trigger. This will work, and it won't "go off" if you're not in range or anything like that. PM me if you have any questions past this. |
