Yeah, thinking more about this, I should make two commands: sync_battle_hero_out() which would take the appropriate parts of temporary hero battle state and copy them out to the permanent out-of-battle hero state
and sync_battle_hero_in() which right now is not needed, but in the future would be used to make out-of-battle stat changes and party add/remove/swap changes propagate into battle. --- James On Mon, Jul 7, 2014 at 11:00 AM, < [email protected]> wrote: > http://rpg.hamsterrepublic.com/bugzilla/show_bug.cgi?id=998 > > --- Comment #1 from Bob the Hamster <[email protected]> 2014-07-07 > 11:00:54 PDT --- > So I was thinking about how to fix this one. > > My first instinct was to implement a battle_evalherotags() sub that just > checks > the alive/dead tag based on the temporary in-battle stats > > It would be fairly simple, and it would work... > > But as I thought more about it, I think that approach would cause problems > in > the future. > > 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. > > -- > 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 >
_______________________________________________ Ohrrpgce mailing list [email protected] http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
