Making a tas of this game seems to be difficult. There are no other RTA. One of the best walkthrough sites the name of which is "阿修羅幻想館" is no longer available. Other walkthrough sites are imperfect. So we have to research a lot of things, especially hidden chests and enemy drop items. There are a lot of hidden chests behind objects in this game. Enemy drop items depend on enemy parties, but there seems to be no address that points enemy parties. We have to check them manually.
Each HP, Str, Def, Agi and Faith has its own exp. So far, it is not clear how many exp you get after a battle, but I finally have clarified it. I am not good at using a debugger, so the result is gotten by just watching WRAM through trial and error.
N: turns taken in the battle
Val: total exp set in each enemy in the battle
exp of HP = Val*(7/24-(1/6-1/(N+5)))
exp of the other stats except when you try to run away = Val*1/(N+5)*(counter+1)
Note: counter starts from zero and is added by one by one action. For example, if you attack, your attack action counter is added by one. Even though your attack misses, the counter is added. If you defend, your defend action counter is added by one. If you use magic, your faith action counter is added by one.
What you can understand from the above formula are:
-If you would like to get higher HP, you should not take many turns in one battle.
-If you would like to get one higher stat, you should not take a different type of actions in one battle.
-If you would like to get more exp in total in one battle, you should take a different type of actions and finish the battle by the slowest character.
Agility action counter is isolated from attack, defend, and faith action counter in the WRAM, and a formula written above is not applied when you try to run away. If you succeed in running away, a quarter of total exp is gotten in the exp of Agi. If you fail in running away, agility action counter is added by five and then if you win the battle, exp of Agi is added by Val*1/(N+5)+counter. If you fail in running away and then succeed in running away, exp of Agi is added by Val*1/4+counter. In that case, exp of the other stats including HP you can get is zero.
Note: For those who do not know this game, not all the party members can run away all at once but each character runs away when you command in this game. The battle system itself is turn-based, but you command when each character's turn comes, which is similar to the battle system of super mario rpg or dragon warrior/quest xi.
You cannot get any exp by using a smoke bomb even though you earn a lot of counter values.
When your stat level goes up, excessive exp are truncated.
The actual value added when your stat level goes up is random. TAStudio or LuaScript are powerful tools to manipulate it.