HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Doodad Cleanup

03-15-2004, 03:04 AM#1
ThyFlame
Basically I'm making a spell that has a large center of fire and the an expanding ring outward.

I can handle the ring fine, but the center of fire I am using the small fire doodad and I want to know how to store them so I can remove them all at once.

f.ex. I cast the spell, it creates 30 fires placed around the location, I want to store the 30 fires and later remove them all at once.

This spell must be able to used by any player, so array's, as far as I've been able to think of them, are not usable.
03-15-2004, 03:38 AM#2
zotax
Sorry, could you elaborate why you cant use arrays? You can always use lots of them if you have many players using the spell
03-15-2004, 03:46 AM#3
ThyFlame
Well I looked at it and if i use an array to store the doodads I wont be able to use it for multiple players [although I just realized I could have the array size very large and separate each player by 50, but if you know a way I can use arrays and keep it usable by multiple players, I'm welcome to suggestions.


I found a way around using doodads for my map this time, but I'd like to know for future reference.
03-15-2004, 04:01 AM#4
Narwanza
Learn JASS. Use local variables. Local variables are the only way triggered spells are able to survive as they have no bearing on anything but the cast.
03-15-2004, 05:04 AM#5
ThyFlame
Maybe someday.