Posted June 13, 2021 by Another RPG Enthusiast
Actor
properties:position
: When invoked, it returns the character's cell in the grid; when set, it adjusts their row
and col
values and swaps the contents of the destination cell.loadBearing
: Boolean. If a load-bearing character is defeated, the battle ends regardless of the state of their team members.uncounted
: Boolean. Uncounted characters are not counted towards the victory and defeat counters, and do not need to be defeated to end an encounter.hasEffect
: Returns Boolean based on if the character has the named effect. Can also test for multiple effects by passing an array (but will return true
if the actor has any of the named effects).position
property._destinationQueue
variable. After all the code is done, the player will be forwarded to the first element in _destinationQueue
if one exists. This should avoid issues with goto
pileups.pushAttack
should now work with the new battle grid code.Actor Box Container
, if customization without changing the surrounding actor box code is desired.xp
and gp
properties.Bestiary
class has been split into a separate file.Battle Setup.tw
.healCalc
to make use of an action's formula
property, if it has one, as well as compartmentalizing the default healing formula into a separate passage.effects
property). This parameter is present for both ally and enemy targeting.addEffect
now records whether the effect was applied (and what blocked it, if not) as a property, effectApplied
, of the calling Actor
object. effectApplied
is an object with effect names as keys and return values from testEffect
as values.:puppet-selected
: triggered on puppet selection:act-selected
, :rest-selected
, :item-selected
, and :move-selected
: triggered on selection of the respective command:action-selected
: triggered on action selected (also works if selected via hotkey):action-performed
: triggered when action performed by puppet:target-selected
: triggered on target selection:endturn-run
: triggered upon execution of end-turn code.