Announcement

Collapse
No announcement yet.

GameCube codes — how to multiply?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • GameCube codes — how to multiply?

    I’m new to Gecko / AR / etc but I’m trying to modify the following code to multiply the value x2 instead of overwriting it.

    Quick level up [Paper Mario TTYD]
    2EB07BF6 00000063
    02B07BF6 00000063

    The two lines say if the value at B07BF6 is less than 0x63 (99), then write two bytes (0x63) to set it to 99, correct? Not sure if I understood that right. In this context, 0x63 refers to 99 star points, which essentially levels you up quickly.

    What I want to do is multiply whatever the value is by 2, instead of overwriting it with 0x63. Any advice is appreciated. Thanks!

  • #2
    I need a better explanation of what you are trying to do. This code makes you level every time you gain more experience? Are you only wanting to only double the EXP received from each kill?
    Help me earn space. https://db.tt/2H7prurb2d www.mediafire.com/?renl53g

    Comment


    • #3
      Yes, exactly, I am just trying to double the exp instead of setting it to that number. So say I earn 3 points defeating an enemy, then with the code I’d earn 6.
      Last edited by nrao32; 04-13-2020, 11:17:47 PM.

      Comment


      • #4
        Anyone? I think multiplication should be a simple task... copy to an unused assess and add the same value to that address and copy back, or perhaps copy to a register and mult op, but I can’t seem to figure out how to do it with Gecko because it has its own opcodes and the “insert assembly” feature isn’t explained well

        Comment


        • #5
          You don't seem to fully understand what this code does. This is changing the experience you have currently, this doesn't affect what experience each different monster might give. What you are asking for is actually a different code entirely. I will look into it.
          Last edited by Welohabi; 04-16-2020, 09:48:47 PM.
          Help me earn space. https://db.tt/2H7prurb2d www.mediafire.com/?renl53g

          Comment

          Working...
          X