Users browsing this thread: 2 Guest(s)
Streamlined Battling? (2x rewards, 1/2 encounters)

#12
Posts: 3,970
Threads: 279
Thanks Received: 236
Thanks Given: 58
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
(02-07-2018, 03:54 PM)PowerPanda Wrote: What causes the overflow error? When the amount of AP exceeds 255 or something like that?

I think this is right. Like in the above example, 13AP x 20 (learning rate) in one battle will give you 260 AP, so it will give you only 4AP (260 - 256). You just gotta make sure it does not exceed 255 each battle. The other solution is putting the AP on two bytes instead of one but this is a ASM hack.

Edit: On one byte with the learning rate of 20, the most AP you ca give is 12.
  Find
Quote  
[-] The following 1 user says Thank You to madsiur for this post:
  • PowerPanda (02-07-2018)



Messages In This Thread
RE: Streamlined Battling? (2x rewards, 1/2 encounters) - by madsiur - 02-07-2018, 06:27 PM

Forum Jump:

Users browsing this thread: 2 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite