HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How impossible is this spell?

06-25-2004, 02:16 AM#1
Neoreo
Hello! Im trying to make a spell thats quite similar to diablo 2's Twister. I want to spawn 3 tornados (I got that working :D) and then make each of them go on a path tahts not straight, but jaggedy (if thats a word). Anyway, i wanted them to do something ALONG the lines of this not exactly.



Red dot=point to move to..

Something in the general idea of that, it dosent even have to go to those specific points as long as they dont go completely striaght and zig-zag to the target.

And heres what the spell really looks like



Im horrible with angle triggers and stuff, i just started making spells, and i have alot of trouble :< is this possible? Or is it possible just near impossible?
06-25-2004, 02:36 AM#2
-={tWiStÄr}=-
well its not too bad but it would be a set jaggedness, like no randomness. Im too lazy to make triggers so next guy who comes along heres what to do:
Set Tornados one location to a variable. then have another variable(pointdist that = GetDistanceBetweenPoints(caster, target)/3. now order the tornado to move to GetPointwithPolarOffset(Casterpoint, pointdist, getanglebetweenpoints(caster, target)+45) all of that creates the first jagged point. now we do the exact same thing but with pointdist which = point[1] and we do -90 for the angle instead of +45. on the last one we do +90 then we order it to move to the actual unit. Maybe tomorrow ill write up the actual trigger right now im seepy :(
06-25-2004, 11:13 AM#3
iNfraNe
You actually can do it random. It should involve the angle between the tornado and the target unit and do the angle + a random number between -30 and 30 or something. then use a periodic timer, and use a variable for the plus or minus angle

so...

set angle1 = 30

events:
time periodic
conditions:

actions:
unit targetting point with polar offset 200 towards angle between tornade of target unit + (math random number between -angle1 and angle1)
set angle1 = angle1 - 5

I think this will make the tornado move through the unit... however I didnt test

P.S. The periodic timer should have something 2do with distance between caster and target unit
06-25-2004, 12:49 PM#4
johnfn
Set angle = random number between 90 and 120 - (a random number between -1 and 0) * 120

and later on...

set angle = angle - (angle/NrOfTurns)

Just for the randomness you mentioned.


Edit: Oooh, love the sig :D
06-25-2004, 05:04 PM#5
Neoreo
Im lost :D, i tried somthing along those lines. I know its completely wrong...im really confused sorry o_O

Anyway heres the crappy trigger i made for it, just to try from what i got out of that:



They did zig zag though, just not to the target
Heres what happened...



I couldnt find a few of the triggers you said and i was completly lost on the timer thing, how do you make it adjust itself depending on the length between them??

And i also couldn't find away to make this trigger exactly:

Quote:
Set angle = random number between 90 and 120 - (a random number between -1 and 0) * 120

Idunno im completly lost :( This is about the 3rd trigger enhanced spell ive tried so far, so Im not familiar with all the editors functions yet.
Thanks for the help again though, i really appreicate it! ^_^
06-25-2004, 05:38 PM#6
johnfn
Ok, two things.

1) you can copy triggers to text by pressing the top of the trigger (where it says the trigger name) and then copy to text.

2) It wont go near the target of spell because the tornado is offset by 200 degrees which will really throw it off. Try lessening 200 and then maybe it will go more unchaoticly.