Skip to content

rq.ChooseSkill ​

since 2.38.0

A skill in rq.ChooseCtx.skills: one slot of the actor's list as it is now.

Fields ​

NameTypeDescription
slotintegerIts position in the list, 1 to 20 (a monster's own skills first).
idintegerThe skill number (rq.skill.get).
textstringThe text the fight shows when the actor uses it.
motionintegerThe motion an enemy plays for it.
chanceintegerThe game's draw threshold: the draw (0 to 99) takes the first slot whose chance is at least the number, so 50 then 100 is half each. 0 for a once-only skill already used; below 5 on an ability, its rank.
addedbooleantrue for a skill a mod's on_choose put in the list in this fight.

Used by ​

rq.ChooseCtx