• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Eventing Question] Event plays out after black out

Soccersam

Hilbert is Badass
  • 179
    Posts
    8
    Years
    • Seen Feb 26, 2024
    Hey everyone! I was tweaking around with Essentials and ran into a small problem a while back.

    When I create cutscenes (complex events involving camera angle changes, player and secondary character move routes, etc), I generally have trainer battles and/or wild boss battles incorporated in them. The problem is-
    If I lose the battle and black out, the moment I respawn at the centre, the rest of the event plays out in the dialog box as normal. Only after all the remaining text of the event has been successfully carried out, does the nurse at the centre heal my pokemon. Until then, the game is as good as frozen.
    Has anyone come across this problem? How did you solve it? Did you use conditional branches similar to the ones in normal trainer battles?

    As an afterthought, does anyone know how to use an event to hatch an egg? I know the normal method is to use the number of steps as a variable, but is there any way to manipulate when it will hatch according to my convenience?

    Thanks everyone!
     
    Hey,

    As for the first problem you had - you can put the battle script in a conditional branch, and then do something if you win and something else if you lose. Check out the trainers defined at route 3. You can also let the player lose and not return to the Pokemon Center if you wish for the event to continue(In that case your Pokemon will be healed automatically after the loss).

    As for the second question - you can try using pbHatch(pokemon).
     
    Back
    Top