Skip to content

rq.CharaState ​

Everything rq.chara.get returns about a character. rq.chara.set takes the same names.

Derived stats are rebuilt by each recalculation. init_* are the bonuses the recalculation adds; for the game's own characters it writes them again first, so use rq.chara.edit to keep a change.

Fields ​

NameTypeDescription
iicintegerThe roster slot.
id (optional)stringThe text id, for a character a mod defined.
namestringThe full name.
shortstringThe short name.
face_namestringThe face CG text.
nointegerThe character number.
stateintegerWhere the character is (登録状態, rq.ids.party_state): 0 not recruited, 1 in the party, 2 the first army, 3 the first army used in this quest (switched out: not placed again until it ends), 4 the second army. rq.party.set_state moves a character between 2, 3 and 4.
guestintegerNon-zero for a guest.
lockedintegerNon-zero when the character cannot be removed.
faceintegerThe face CG number.
portraitintegerThe standing-picture CG number.
classintegerThe class (see rq.CharaFields.class).
sexintegerThe sex.
levelintegerThe level.
level_maxintegerThe highest level, the talent limit (CLV最大). It is kept in the save, and items and events raise it; rq.chara.set(iic, { level_max = n }) changes it for good. The game ignores it for a character with uncapped.
uncappedbooleanThe game sets no level cap for this character (Rance, Reset Kalar and Dark Rance). Since 2.33.0.
expintegerExperience.
exp_maxintegerExperience for the next level. The game's recalculation sets it from the level; below the highest level the character has reached, it is at most 4980, so lost levels come back quickly.
rebirthsintegerTimes reborn.
hpintegerHP.
hp_maxintegerMost HP.
spdintegerSpeed.
atkintegerAttack.
defintegerDefense.
hitintegerAccuracy.
evaintegerEvasion.
critintegerCritical rate.
impactintegerImpact rate.
resistintegerResistance.
magintegerMagic.
mdefintegerMagic defense.
fire_resintegerFire resistance.
ice_resintegerIce resistance.
thunder_resintegerThunder resistance.
light_resintegerLight resistance.
dark_resintegerDark resistance.
weak_elementintegerThe weak element (rq.ids.element).
weaponintegerThe equipped weapon's item instance.
armorintegerThe equipped armor's item instance.
itemintegerThe held item's instance.
specialintegerThe option slot's item instance.
skill_pointsintegerFree skill points.
raceintegerThe race (rq.ids.race).
typeintegerThe type value (rq.ids.chara_type).
modelintegerThe 3D model.
bossintegerNon-zero for a boss.
weakness_knownbooleanThe player knows the weakness.
statusintegerThe status change (状態変化, rq.ids.state): 0 none, 1 poison, 2 stun, 3 downed. It lasts past a fight: the game's heals leave a downed character as it is. Since 0.5.0.
guardintegerBattle state: guard rate. Since 0.5.0.
stealthintegerBattle state: stealth rate. Since 0.5.0.
berserkintegerBattle state: berserk. Since 0.5.0.
bless_allintegerBattle state: blessing on the whole party. Since 0.5.0.
barrierintegerBattle state: barrier. Since 0.5.0.
atk_buffintegerBattle state: attack buff. Since 0.5.0.
def_buffintegerBattle state: defense buff. Since 0.5.0.
chargeintegerBattle state: charge. Since 0.5.0.
init_hpintegerBonus to most HP, in percent.
init_spdintegerBonus to speed, in points.
init_atkintegerBonus to attack, in percent.
init_defintegerBonus to defense, in percent.
init_hitintegerBonus to accuracy, in points.
init_evaintegerBonus to evasion, in points.
init_critintegerBonus to critical rate, in points.
init_impactintegerBonus to impact rate, in points.
init_resistintegerBonus to resistance, in points.
init_magintegerBonus to magic, in percent.
init_mdefintegerBonus to magic defense, in percent.
init_spintegerStarting skill points.

Used by ​

rq.chara.get