On 10 July 2014 05:29, James Paige <[email protected]> wrote:
> On Wed, Jul 9, 2014 at 10:16 AM,
> <[email protected]> wrote:
>>
>> 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.
>
>
> Oh, that makes sense. A second call to writestats in that situation would
> erase level up bonuses.
>
> But repeated calls to writestats *before* victory will be harmless.
>
> Thank you for the clarification! :)
>
>>
>> (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.
>
>
> Hmmm... That is a good point. I will be cautious and re-think that
> functionality when I get closer to it.
>
>>
>> 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.
>
>
> Yeah, and even when battlescripting is implemented, it might be best for
> commands like  "set hero stat" to remain separate from something like "set
> battle stat"

They would have to be separate anyway in order to be able to target
battle slots rather than party slots.

Half a year or so ago I started categorising script commands into
out-of-battle-only vs separate in- and out-of-battle implementations
vs general ones. Never checked it in because it wasn't used yet.

> And it might be appropriate to have some kind of "sync battle party" command
> that would have to be used after scripts add/remove/swap heroes to make
> those changes apply to the currently running battle.

It wouldn't be unreasonable, but it might be a simpler interface to
have the party manipulation commands always update the battle party
immediately, because I can't think of a case in which you wouldn't
want that.

> ---
> James
>
> _______________________________________________
> 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

Reply via email to