http://rpg.hamsterrepublic.com/bugzilla/show_bug.cgi?id=998
--- Comment #3 from Ralph Versteegen <[email protected]> 2014-07-09 10:16:57 PDT --- (In reply to comment #2) > My plan is to call this frequently in battle, but that comment makes me think > there is some reason why it would be bad to call it more than once. TMC, do > you > remember any reason for that that I might be forgetting? The reason that currently writestats must not be called a second time from battle_cleanup is that trigger_victory calls writestats, then distributes experience, which causes updatestatslevelup to be called to change OOB stats. A second writestats call would erase those changes. (In reply to comment #1) > Eventually, I do plan to make it so that battles can be non-blocking of > scripts, just like how menus gained the ability to be non-blocking of scripts. > > This would pave the way for battlescripting, but it also means that things > could be happening on the map at the same time as battle. > > So perhaps a better plan would be to update the hero's out-of-battle HP each > time an attack completes, rather than just once at the end of the battle. > > This should not result in any change to existing games, but it makes it very > easy to run evalherotags() inside battle. > > In general, synchronization of heroes in-battle and out-of-battle is going to > be a very important part of the transition to supporting battlescripting, so I > want to solve this bug in a way that works in that direction. I don't agree that making battles and map logic run simultaneously has much to do with implementing battlescripting, but I guess it'll be useful long-term for things like Zelda or Chrono Trigger on-map battles. Anyway, keeping in and out of battle stats separate and doing frequent synchronisation is probably going to be much simpler than trying to unify them. -- Configure bugmail: http://rpg.hamsterrepublic.com/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ Ohrrpgce mailing list [email protected] http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
