View Single Post
  #7403    
Old November 2nd, 2012 (7:50 AM).
itman itman is offline
Back to ROM hacking. :D
     
    Join Date: May 2007
    Age: 23
    Nature: Adamant
    Posts: 100
    Quote:
    Originally Posted by Ash493 View Post

    That's not really it xD As he means in-game ;)

    As for the answer.

    Assign a special flag to each starter that you will be checking in rival's scripts ;)

    I'll give you an example.

    Let's have 3 starters: Treecko, Torchic, Mudkip.
    In Treecko's giving script you put setflag 0x701
    In Torchic's script you put setflag 0x702
    And in Mudkip's you put setflag 0x703

    And then, once battle with rival is about to happen you use this:

    checkflag 0x701
    compare 0x800D 0x1
    if 0x1 goto @battle1

    checkflag 0x702
    compare 0x800D 0x1
    if 0x1 goto @battle2

    checkflag 0x702
    compare 0x800D 0x1
    if 0x1 goto @battle3

    Those @battle will have trainerbattle with the starter that will be strong against player's one.
    Of course, rival always need to have 3 versions of one battle.
    The "compare 0x800D 0x1" lines are unnecessary and just take up more room, it's best to take them out.