HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Handle Var Trouble

07-07-2007, 07:10 PM#1
TheSecretArts
Im using handle vars in my spell but when one fireball spawns before the other one dies and the other fireball just sits there... i need to fix this because the system needs to handle up to 20 fireballs at a time. Plz help me fix this.
Attached Files
File type: w3xContest Spell #9.w3x (22.4 KB)
07-07-2007, 07:32 PM#2
Captain Griffen
By and large we cannot be bothered to open maps to fix things.

Especially not with handle variables, which are outdated and buggy.
07-07-2007, 07:38 PM#3
TheSecretArts
im trying not to use any large systems... could you at least tell me a system that could work?
07-07-2007, 07:43 PM#4
Captain Griffen
If you don't tell me what you need, no.
07-07-2007, 07:47 PM#5
TheSecretArts
to be able to shoot a fireball every .1 seconds and move all fireballs spontaneously
07-07-2007, 08:25 PM#6
Captain Griffen
Without detailed info on what you actually want it to do it cannot be made...

...oh sod it, I can't be bothered if you can't be bothered to tell me what you want.
07-07-2007, 10:43 PM#7
TheSecretArts
i need a way to move several objects spontaneously using their respective speeds using my movemen system im using inside, and since it uses timers it needs to use A. globals or B. handle vars to control the data, but i cant seem to find away that moves ALL the objects and distinguishes their respective speeds...
07-08-2007, 10:13 AM#8
Captain Griffen
This is where structs + TimerAttach really comes into its own. Use TimerAttach to 'attach' a struct to a timer. Do a search for the TimerAttach function.
07-08-2007, 10:16 AM#9
Anitarf
Use parallel arrays.
07-08-2007, 11:29 AM#10
xombie
You should all consider that even though there are more efficient systems, it is probably useful for TheSecretArts to learn about the older methods, and so forth why the newer ones are better.

Perhaps TheSecretArts really wants to use HandleVars.. then why not ask him what he's having trouble with instead of referring him. Now -- what exactly do you need help with, TheSecretArts?
07-08-2007, 11:48 AM#11
TheSecretArts
im just trying to find ways to move multiple units each with their own speed with a function that handles all of them and it needs to use normal JASS. I could have several move functions that each handle each possible object seperately, but thats highly innefficient.
07-08-2007, 12:09 PM#12
Captain Griffen
I'd use one timer looping through a linked list of parallel arrays, or TimerAttach + parallel arrays with multiple timers.