Page 1 of 1

Hard core Monster on Monster action

Posted: Sat May 03, 2008 5:36 pm
by ian_scho
Euuu, it is not spam, but me again... So it is worse.

Got a monster that can attack not only champions, but other monsters, similar to your monster_wisdomattack function.

I need a way to differentiate between if Im hitting a monster or a champion, and realise that its trickier than I thought. Any suggestions?

Incidentally, is I believe that dsb_add_champion and dsb_spawn("mummy"....) can create two identifiers of the same number (e.g. "4"), so that if I ran dsb_find_arch(who) in the aforementioned attack function I could get a set of stairs for example or even a Invalid instance 4 error.

Thanks :wink:

Posted: Sat May 03, 2008 7:47 pm
by Sophia
ian_scho wrote:I need a way to differentiate between if Im hitting a monster or a champion
I don't really understand what you mean, because they're handled completely differently. About the only thing you can do is use a flag of some sort... and that does make the code a good deal messier.