Jump to content

Photo

Problem With Newbie Boss Script


  • Please log in to reply
4 replies to this topic

#1 Korben

Korben

    Junior

  • Members
  • Location:USA

Posted 09 August 2021 - 12:34 AM

When I have a "newbie boss" enemy on a screen and use a warp that takes me to the same screen, any enemy that is using the script disappears. This may be exclusive to sideview screens. I'm using 2.55 Alpha 92. Any one know why this is happening?



#2 Moosh

Moosh

    Tiny Little Questmaker

  • ZC Developers

Posted 10 August 2021 - 04:11 AM

Does the screen happen to have the Sprites Carry Over In Warps screen flag set? Ghost depends on maintaining a link between the FFC and NPC used for a scripted enemy, and that screen flag only applies to the NPC, so it's incompatible. This is one of the limitations of ghost.zh.



#3 Korben

Korben

    Junior

  • Members
  • Location:USA

Posted 10 August 2021 - 09:42 AM

Does the screen happen to have the Sprites Carry Over In Warps screen flag set? Ghost depends on maintaining a link between the FFC and NPC used for a scripted enemy, and that screen flag only applies to the NPC, so it's incompatible. This is one of the limitations of ghost.zh.

 

Oh okay. Yeah, it does have the Sprites Carry Over in Warps flag set. Thanks for informing me.



#4 Saffith

Saffith

    IPv7 user

  • ZC Developers

Posted 10 August 2021 - 09:51 AM

There's a carry-over FFC flag, too. I never tried it with enemies, but it's worth a shot.

After this line:

npc ghost = Ghost_InitAutoGhost(this, enemyid);

Try adding this:

this->Flags[FFCF_CARRYOVER]=true;

And make sure the next screen you go to has the "No FFC Carryover" screen flag set.



#5 Korben

Korben

    Junior

  • Members
  • Location:USA

Posted 10 August 2021 - 09:23 PM

There's a carry-over FFC flag, too. I never tried it with enemies, but it's worth a shot.

After this line:

npc ghost = Ghost_InitAutoGhost(this, enemyid);

Try adding this:

this->Flags[FFCF_CARRYOVER]=true;

And make sure the next screen you go to has the "No FFC Carryover" screen flag set.

 

Yup, that makes it work. Thank you!




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users