Methods
PartyMember:canEquip(item: any, slot_type: any, slot_index: any)
Arguments:
item: any | |
slot_type: any | |
slot_index: any |
Returns:
1: boolean|unknown |
PartyMember:drawPowerStat(index: any, x: any, y: any, menu: any)
Arguments:
index: any | |
x: any | |
y: any | |
menu: any |
PartyMember:getBaseStat(name: any, default: any, light: any)
Arguments:
name: any | |
default: any | |
light: any |
Returns:
1: integer |
PartyMember:getStat(name: any, default: any, light: any)
Arguments:
name: any | |
default: any | |
light: any |
Returns:
1: unknown |
Fields
Undocumented
PartyMember.actor: nil
Actor (handles overworld/battle sprites)
PartyMember.attack_bar_color: nil
Attack bar color (for the target bar used in attack mode) (defaults to the main color)
PartyMember.attack_box_color: nil
Attack box color (for the attack area in attack mode) (defaults to darkened main color)
PartyMember.attack_pitch: integer
Pitch of the attack sound
PartyMember.attack_sound: string
Sound played when this character attacks
PartyMember.attack_sprite: string
Effect shown above enemy after attacking it
PartyMember.battle_offset: nil
Battle position offset (optional)
PartyMember.color: table
Character color (for action box outline and hp bar)
PartyMember.dmg_color: nil
Damage color (for the number when attacking enemies) (defaults to the main color)
PartyMember.equipped: table
Equipment (saved to the save file)
PartyMember.flags: table
Character flags (saved to the save file)
PartyMember.gameover_message: nil
Message shown on gameover (optional)
PartyMember.has_act: boolean
Whether the party member can act / use spells
PartyMember.has_xact: boolean
Whether the party member can use their X-Action
PartyMember.head_icon_offset: nil
Head icon position offset (optional)
PartyMember.head_icons: string
Path to head icons used in battle
PartyMember.health: integer
Current health (saved to the save file)
PartyMember.level: integer
Display level (saved to the save file)
PartyMember.lw_actor: nil
Light World Actor (handles overworld/battle sprites in light world maps) (optional)
PartyMember.lw_exp: integer
Light world EXP (saved to the save file)
PartyMember.lw_exp_needed: table
Light world EXP requirements
PartyMember.lw_health: integer
Current light world health (saved to the save file)
PartyMember.lw_health: unknown|nil
For deltarune accuracy, you heal here, bc health conversion code is broken
PartyMember.lw_lv: integer
Light world LV (saved to the save file)
PartyMember.lw_stats: table
Light world stats (saved to the save file)
PartyMember.lw_weapon_default: string
Default light world equipment item IDs (saves current equipment)
PartyMember.max_stats: table
Max stats from level-ups
PartyMember.name: string
Display name
PartyMember.name_sprite: nil
Name sprite (optional)
PartyMember.soul_color: table
The color of this character's soul (optional, defaults to red)
PartyMember.soul_priority: integer
Determines which character the soul comes from (higher number = higher priority)
PartyMember.spells: table
Spells
PartyMember.stat_buffs: table
Temporary stat buffs in battles
PartyMember.stats: table
Base stats (saved to the save file)
PartyMember.title: string
Default title / class (saved to the save file)
PartyMember.weapon_icon: string
Weapon icon in equip menu
PartyMember.xact_color: nil
X-Action color (for the color of X-Action menu items) (defaults to the main color)
PartyMember.xact_name: string
X-Action name (displayed in this character's spell menu)