Skip to content

rq.MonsterCreateCtx ​

What rq.monster.on_create callbacks get. Fields marked writable change the enemy in its slot.

Fields ​

NameTypeDescription
iicintegerThe slot: 1 to 5 for an enemy, 10 for the familiar.
nointegerThe monster number.
id (optional)stringThe text id, for a monster a mod defined. Since 2.40.0.
rankintegerThe fight rank the enemy stands in, 1 to 5; 0 for the familiar.
familiarbooleanThe familiar of the party's held item, not an enemy.
worldintegerThe world, 1 to 3.
bossbooleanThe monster is a boss (its own flag, not the fight's).
fight_rankintegerThe fight's kind (◆戦闘ランク): 0 a scripted fight, 1 an enemy on the map, 2 a boss fight.
groupintegerThe fight group (◆戦闘グループ).
strengthintegerThe game's strength rate (◆敵強化率): 130 in a boss fight with strong, else 0.
baserq.MonsterThe monster's data before the world's rules, as rq.monster.get gives it (a copy).
namestringWritable. The name, not empty.
levelintegerWritable. The level.
hpintegerWritable. The most HP; the current HP is set to it.
spdintegerWritable. Speed.
atkintegerWritable. Attack.
defintegerWritable. Defense.
magintegerWritable. Magic.
mdefintegerWritable. Magic defense.
hitintegerWritable. Accuracy.
evaintegerWritable. Evasion.
critintegerWritable. Critical rate.
impactintegerWritable. Impact rate.
resistintegerWritable. Resistance.
weak_elementintegerWritable. The weak element.
fire_resintegerWritable. Fire resistance.
ice_resintegerWritable. Ice resistance.
thunder_resintegerWritable. Thunder resistance.
light_resintegerWritable. Light resistance.
dark_resintegerWritable. Dark resistance.

Used by ​

rq.monster.on_create