• 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 Conquest 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.

Trainer Battle help

  • 21
    Posts
    13
    Years
    • Seen Aug 7, 2012
    I need help on how to make a event of a trainer battle after selecting a choice.
    I want to have a yes or no choice that both choices will turn into a trainer battle. Then after the battle the trainer walks away and disappear. I tried doing it myself but no luck is given and its really giving me a pain in the head on what is wrong. Can somebody help me out here?
     
    First use
    Code:
    pbTrainerBattle
    for your battle but put this line of code in a conditional branch that way we can see if they won or not:

    Upper part of conditional branch is where you win the else part is if you lose.
     
    First use
    Code:
    pbTrainerBattle
    for your battle but put this line of code in a conditional branch that way we can see if they won or not:

    Upper part of conditional branch is where you win the else part is if you lose.

    Can you explain this step by step, because this is what I have for the event
     
    What Ho-Oh 112 means to say is...

    Code:
    pbTrainerBattle(PBTrainers::trainertype,"trainername",false,0,true)

    trainertype = BUGCATCHER or HIKER or LONELYMAN
    whatever trainer you are using at that point.

    trainername = "Jill" or "Alan" or "Smelly"
    whatever name you are giving this trainer

    false = double battle (otherwise true)

    0 = If you have so many trainers with same name and type,
    I.E. 3 HIKER Bobs, this number would = 0, 1 or 2...

    true = whether a player can lose, end the line of code at 0 unless you want the player to lose, in your case, it's sounds as if you can allow the player to lose, so this would be true.

    Use a conditional branch and make sure the box is ticked, set handling when conditions do not apply.

    As Ho-oh said, the higher part is for if you win, the lower would be if you lost... At the end of this event, use Set Move Route, located on page 2 of the event commands, this is where you will move the character, just remember to change to that character in the drop box... Just underneath set move route is, Wait For Move's Completion, this will ensure that character does all steps, but, make sure that character goes out the screen by 1 square max, I would say, so the game doesn't cause a silly crash (or in this case will just stop playing, not the same as a crash!), then Control Self Switch: A=On, create a new page with condition Self Switch A being On, with no graphic!

    Da da daaaa! Congratulations! A working battle with NPC moving plus the event disappearing and you can use this for every NPC if you like.

    Maybe you should play around with RPGMaker a while before you begin to get serious, play around with the different options... Check here

    (broken link removed)

    This explains almost everything with Essentials, but not scripting, that you will have to learn yourself, hope this helps!
     
    I actually Have a question regarding this topic. I have my second page set up with a custom move route, but he doesn't move. Ive tried with both autorun and parallel process checked still nothing. The way I have it set up though is he moves out of view then it waits for move completion then it erases the event. But the problem is after the battle he just stands there... I will try a 3rd page with control self switch B to see if it works and then just use no graphic to see. But any thoughts as to why my event doesn't work?
     
    I actually Have a question regarding this topic. I have my second page set up with a custom move route, but he doesn't move. Ive tried with both autorun and parallel process checked still nothing. The way I have it set up though is he moves out of view then it waits for move completion then it erases the event. But the problem is after the battle he just stands there... I will try a 3rd page with control self switch B to see if it works and then just use no graphic to see. But any thoughts as to why my event doesn't work?
    Yes, I was noticed this before and I am also using the third page. I think that is something about phone rematches.
     
    Back
    Top