Is there any way to find out how many parts/heads a boss has and when one part/head is defeated?
Moldorm,Gleeok and related bosses
Started by
SpacemanDan
, Mar 30 2009 07:07 PM
6 replies to this topic
#1
Posted 30 March 2009 - 07:07 PM
#2
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++;
}
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
Posted 31 March 2009 - 10:43 PM
Good luck figuring that out. What I would do is probably use a
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.
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
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.
Happy now?
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;
}
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
Posted 01 April 2009 - 04:24 PM
Huh? I was mainly talking aboutr gleeoks. They're handled different I believe.
#6
Posted 01 April 2009 - 06:11 PM
Thank you! I appreciate the help! This'll help a great deal!
But I wasn't aware that Gleeoks might be handled differently.
But I wasn't aware that Gleeoks might be handled differently.
#7
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