📧 Message Board Archive

Spell Help
I still haven't thought of a good way to make a spell that casts on all the monsters on the screen...I just wish there was a get next sprite with brain command....bleh



What I thought of was casting it on one, changing its brain to 0 temporarily, then checking for any sprites of that brain again until all are 0 and some stuff like that...but it didn't work too well.



I could keep messing around with that meathod for a bit more, but if someone else has a better idea i would be absolutely glad to hear it.



I'll keep messing
Re: Spell Help
: I still haven't thought of a good way to make a spell that casts on all the monsters on the screen...I just wish there was a get next sprite with brain command....bleh



: What I thought of was casting it on one, changing its brain to 0 temporarily, then checking for any sprites of that brain again until all are 0 and some stuff like that...but it didn't work too well.



: I could keep messing around with that meathod for a bit more, but if someone else has a better idea i would be absolutely glad to hear it.



I think that's about the best way.



Another method is to make a spell with a range of 600 so it hits everything and then do what ever brain checking you need in the damage() proc. But that would have annoying side effect like breaking barrels and such.



The only other way I know of is to make a loop and check every sprite (2-300) for a. existance and b. brain 9. But that will cause a noticablt delay as it does all that processing.