Jump to content

Photo

Moldorm,Gleeok and related bosses


  • Please log in to reply
6 replies to this topic

#1 SpacemanDan

SpacemanDan

  • Members
  • Location:Ontario, Canada

Posted 30 March 2009 - 07:07 PM

Is there any way to find out how many parts/heads a boss has and when one part/head is defeated?

#2 Joe123

Joe123

    Retired

  • Members

Posted 31 March 2009 - 11:51 AM

CODE
int moldormcount;
for(int i=1;i<=Screen->NumNPCs();i++){
    npc e = Screen->LoadNPC(i);
    if(e->ID == NPC_MOLDORM) moldormcount++;
}


Assuming each piece of the boss is a seperate npc.
Which I think it is.

#3 Gleeok

Gleeok

    It's dangerous to dough alone, bake this.

  • Members
  • Real Name:Pillsbury
  • Location:Magical Land of Dough

Posted 31 March 2009 - 10:43 PM

Good luck figuring that out. What I would do is probably use a
CODE
Trace(Screen->NumNPCs());


You could probably crash the engine or some other odd behavior by modifying the various attributes of "dead" enemies like gleeok heads. ...well maybe the new builds are better about that stuff.

#4 Joe123

Joe123

    Retired

  • Members

Posted 01 April 2009 - 09:49 AM

What's wrong with it?
Returns the number of moldorm pieces left on the screen...

I'll make it into an integer if you want.
Look.

CODE
int moldormcount();
    int a;
    for(int i=1;i<=Screen->NumNPCs();i++){
        npc e = Screen->LoadNPC(i);
        if(e->ID == NPC_MOLDORM) a++;
    }
    return a;
}


Happy now?

#5 Gleeok

Gleeok

    It's dangerous to dough alone, bake this.

  • Members
  • Real Name:Pillsbury
  • Location:Magical Land of Dough

Posted 01 April 2009 - 04:24 PM

Huh? I was mainly talking aboutr gleeoks. They're handled different I believe.

#6 SpacemanDan

SpacemanDan

  • Members
  • Location:Ontario, Canada

Posted 01 April 2009 - 06:11 PM

Thank you! icon_biggrin.gif I appreciate the help! This'll help a great deal!

But I wasn't aware that Gleeoks might be handled differently.

#7 Joe123

Joe123

    Retired

  • Members

Posted 02 April 2009 - 02:22 AM

Oh sorry, I thought you meant my code was very complicated or something.


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users