(19.05.2019 22:22)Berserker Wrote: Could you explain, what does
!!EAy2:F0/?y3; [Check for next available bonus line: y3]
mean?
0 is not a valid number for ability.
Even if it works, it seems that you search for the first empty line (ability 0 will never be found). Ok, but ability number to set up is generated randomly (y10) and thus can be non-unique. So instead of overwriting the same line for the same ability in case of random number collision, you always allocate the new one, right?
Apart from possible duplicated exp line, I see no errors in code.
Yes that is how I understood it, I took from ERM manual
Quote: F$1/$2; If you set $1 to 0, you will find the first free bonus line.
So for every iteration, it searches the stack for free lines and sets a new random ability (always) which comes with y10(x1) in this case. Admittingly it misses some checks for double abilities or no free space but I don't think that is the core of the problem.
The question is how can the HP/Att/Def from one stack be transferred to another stack in the next battle, or how can I avoid it? And why does it only happen if I retreat? If the combat finishes normally there are no problems.
By the way, thanks for the hint with the local label names

, though they would be global and started to enumerate.