Skip to content

API reference ​

Loader version 2.67.0.

Namespaces ​

NamespaceSummary
rqThe global table every mod uses to reach the game.
rq.agentLets the test pipe (rqmod-ctl) see and press a mod's controls.
rq.ainReaches into the game's own code (the AIN): call, hook and patch its functions, and read and write its globals.
rq.battleHooks into fights: events, ally skill select, marks and buffs on the cards, faces, states, drops, and scripted fights.
rq.castleReads the castle: whether it is open, its rooms and who is in them.
rq.charaReads and changes characters: their skills, stats, the skill buy list, and the roster.
rq.chestThe chance of opening a red chest.
rq.combatChanges physical damage, accuracy and criticals.
rq.configA Mods tab in the game's Config screen.
rq.counterLets the Counter skill (259) work after Ally Guard.
rq.debugAdds rows to the engine's F3 debug menu.
rq.dungeonReads and changes the dungeon: the map, the player's place, objects on it, and the camera.
rq.encountersRandom fights on a quest's map.
rq.gameThe player's money and charisma, as the system bar shows them.
rq.gamebuttonButtons of mods in the game's own menus, made by the game itself.
rq.hudDraws text, boxes and CGs over the game, and reads clicks on them.
rq.idsThe game's numbers by name: characters, items, monsters, quests, skills, and the small lists the game names (classes, states, races, character types, elements, item kinds, skill targets).
rq.imageImages from a mod's folder, shown by the game as CGs.
rq.inputReads the mouse and keyboard, and drives them for the game.
rq.itemDefines, gives and changes items.
rq.itemsLists the item instances the player owns.
rq.knownskillsMore known skills than the game's 17, shown 17 at a time on the status page and in the skill window.
rq.lootChest loot: what the pools roll, and the items the player will find, known in advance.
rq.modFinds out about other mods, and reaches what they share.
rq.monsterThe game's list of monsters: read a monster's data, change it each time the game builds it, and change each enemy a fight builds. A mod's own monsters, enemy groups and models.
rq.musicMusic from a mod's own file, in place of one of the game's tracks.
rq.orbThe blue Recovery Spring on the map (回復の泉, object 203).
rq.partyReads and changes who is in the party.
rq.questsLists the quests and follows them: clears, endings, quest moments and state.
rq.randomControls the random number generator the game and the loader share.
rq.savedataEach mod's data that follows the game's save.
rq.savesSave profiles: whole save folders the player can switch between.
rq.scenePlays scenes with the game's own commands, so a mod can do anything a game scene does.
rq.shopAdds stock to Frostbuy, the item shop, and reports purchases.
rq.skillReads, defines and patches skills, and rewrites their hover text.
rq.skilllistPages the Potential Skills grid, 36 skills a page.
rq.soundPlays sounds: a game sound number, a file in the mod folder, or a sound inside a game Flash file.
rq.speedRuns the game clock faster or slower than real time.
rq.spriteSprites a mod makes once and changes later, drawn among the game's own in z order.
rq.statusBattle states made by mods, such as a burn, a bleed, a regeneration, a freeze or a weaken, that live beside the game's poison, stun and ▲▼, in one registry every mod shares.
rq.statuspageA character's status page, for mods.
rq.storeSmall key and value storage for each mod and each save profile.
rq.store.globalThe same calls as rq.store, in one file for every save profile.
rq.uiReads what is on the screen and saves screenshots.
rq.uikitWidgets in the look of the game's Config screen and, since 2.6.0, of its hub.
rq.unitsLists the recruited characters.
rq.worldThe world and the game's world transfer.

Types ​

TypeSummary
rq.AccuracyCtxWhat rq.combat.on_accuracy gets for one accuracy check.
rq.AgentOptsHow rq.agent.control finds a control: a game button, or a rectangle a mod draws.
rq.AgentWidgetA control a mod drew on this update, for rqmod-ctl ui.
rq.AinHookCtxWhat an rq.ain.hook callback gets.
rq.AinHookOptsWhat rq.ain.hook takes.
rq.AreaCtxWhat rq.dungeon.on_area gets.
rq.BagInfoOne enemy in rq.battle.bags.
rq.BattleActorThe ally whose turn it is, from rq.battle.actor.
rq.BattleDownCtxWhat rq.battle.on_down gets.
rq.BattleEndCtxWhat rq.battle.on_end gets.
rq.BattleFamiliarThe familiar of a fight, as rq.battle.familiar returns it.
rq.BattleForecastCtxWhat rq.battle.on_forecast gets for one forecast line.
rq.BattleHitCtxWhat rq.battle.on_hit gets for one hit.
rq.BattleLogCtxWhat rq.battle.on_log gets for one line of the battle log.
rq.BattleOrderAfterCtxWhat rq.battle.on_order_after gets after the game built the turn list.
rq.BattleOrderCtxWhat rq.battle.on_order gets before the game builds the turn list.
rq.BattleSelectKeyCtxWhat rq.battle.on_select_key gets.
rq.BattleSnapWhat rq.battle.snapshot returns: a copy of the fight screen.
rq.BattleStartCtxWhat rq.battle.on_start gets.
rq.BattleStatesEvery state of a character, from rq.battle.states.
rq.BattleSupportCtxWhat rq.battle.on_support gets.
rq.BattleSwitchCtxWhat rq.battle.on_switch gets for one rank.
rq.BattleTurnCtxWhat rq.battle.on_turn gets: the character whose turn starts, and what can change it.
rq.BattleUseEventWhat rq.battle.on_use gets.
rq.BoostRowOne Boost, from rq.chara.boosts.
rq.BuffDefA mod's buff on a card, for rq.battle.set_buff and set_rank_buff.
rq.BuffInfoOne mark a card shows, from rq.battle.buffs.
rq.BuyCtxWhat an rq.shop.on_buy callback gets.
rq.CanBuyCtxWhat an rq.shop.on_can_buy callback gets.
rq.CanEquipCtxWhat rq.item.on_can_equip gets for one item and one character.
rq.CapCtxWhat rq.combat.on_cap gets for one hit.
rq.CastleThe castle's state, from rq.castle().
rq.CastleRoomA castle room, from rq.castle().
rq.CastleRoomHandleA mod's room, from rq.castle.room.
rq.CastleRoomInfoA mod's room, as rq.castle.rooms lists it.
rq.CastleRoomPlaceWhere a mod's room is this time, from a room's where().
rq.CastleRoomSpecA mod's room in Rance Castle, for rq.castle.room.
rq.CharaDefA character template for rq.chara.define.
rq.CharaEditA patch for rq.chara.edit. level, level_max, skills and lines do not apply.
rq.CharaFieldsThe fields rq.chara.define and rq.chara.edit share.
rq.CharaInitStat bonuses that each recalculation adds, in rq.CharaFields.init.
rq.CharaSkillGrantA skill a character gets, in rq.CharaFields.skills and rq.CharaEdit.learn.
rq.CharaSlotOne row of a character's skill list, from rq.chara.slots.
rq.CharaStateEverything rq.chara.get returns about a character. rq.chara.set takes the same names.
rq.ChestAttemptResultWhat rq.chest.on_attempt may return instead of a number.
rq.ChestInfoWhat rq.chest.on_attempt and on_result get for a red chest.
rq.ChooseCtxWhat rq.battle.on_choose gets on an enemy's or the familiar's turn.
rq.ChooseSkillA skill in rq.ChooseCtx.skills: one slot of the actor's list as it is now.
rq.CombatRulesWhat a skill can do in a fight, from rq.combat.rules.
rq.ConfigPageA page in the Mods tab of the game's Config screen.
rq.CounterCtxWhat rq.combat.on_counter gets after a hit.
rq.CounterGuardCtxWhat rq.counter.on_guard_counter gets.
rq.CreateCtxWhat rq.chara.on_create gets.
rq.CritCtxWhat rq.combat.on_crit gets where the game rolls a critical.
rq.DebugActionA row on the F3 debug menu.
rq.DungeonAreaOne area of rq.dungeon.areas().
rq.DungeonCameraThe camera range rq.dungeon.camera patches.
rq.DungeonInfoWhere the party is in a dungeon, from rq.dungeon.info().
rq.ElementCtxWhat rq.combat.on_element gets for one physical hit.
rq.EncounterCtxWhat rq.encounters.on_encounter callbacks get.
rq.EncounterInfoWhat rq.encounters.info returns.
rq.EquipCtxWhat rq.item.on_equip gets.
rq.EscapeCtxWhat rq.combat.on_escape gets.
rq.FightBackgroundOne of the game's fight backgrounds.
rq.FightOptsWhat rq.battle.start takes. Only enemies is needed.
rq.FightResultHow a fight from rq.battle.start ended, its second value.
rq.FlashBitmapOne bitmap of a game Flash file, as rq.image.flash_bitmaps lists it.
rq.FlashBitmapOptsOptions for rq.image.flash_bitmap.
rq.FlashInfoWhat rq.image.flash_info returns.
rq.FlashSoundA sound inside a Flash file, from rq.sound.flash_info.
rq.ForgetCtxWhat rq.chara.on_forget gets.
rq.GameButtonGroupA group, from rq.gamebutton.groups.
rq.GameButtonHandleAn entry, from rq.gamebutton.add.
rq.GameButtonInfoAn entry, as rq.gamebutton.groups lists it.
rq.GameButtonListThe status page's MODS button and its list, as rq.gamebutton.groups gives them.
rq.GameButtonSpecAn entry for rq.gamebutton.add.
rq.GifInfoWhat rq.image.gif_info returns.
rq.GifOptsOptions for rq.image.add_gif.
rq.GoHomeCtxWhat an rq.party.on_go_home callback gets.
rq.HasSkillCtxWhat rq.chara.on_has_skill gets for one check.
rq.HealCtxWhat rq.combat.on_heal gets for one heal; amount is writable.
rq.HpEventWhat rq.battle.on_hp gets.
rq.HudCgOptsHow rq.hud.cg draws a CG.
rq.HudTextStyleHow rq.hud.text draws text.
rq.ImageInfoWhat rq.image.info returns.
rq.ImageLayerOne layer of rq.image.compose: a part of a CG, a fill, or text.
rq.ImageOptsOptions for rq.image.add and rq.image.replace.
rq.ItemAn owned item instance, from rq.items().
rq.ItemDefAn item template for rq.item.define.
rq.ItemEffectOne of an item's effects: the game's own code and amount.
rq.ItemFindOptsWhat rq.item.find and rq.item.count take.
rq.ItemInfoWhat rq.item.info returns: an item number's row data, as rq.uikit.item_data gives it for an instance, without the fields that belong to one instance (ii, locked, place). The kit's item lists take it as a row.
rq.LearnableRowOne row of the skill buy list, from rq.chara.learnable.
rq.LearnCtxWhat rq.chara.on_learn gets for one purchase.
rq.LevelUpCtxWhat rq.chara.on_level_up callbacks get.
rq.LootAddAn item for rq.loot.add.
rq.LootItemAn item the player will find, from rq.loot.list.
rq.MagicCtxWhat rq.combat.on_magic gets for one spell.
rq.MapCtxWhat rq.dungeon.on_map gets.
rq.MapObjectAn object on the current map, from rq.dungeon.objects().
rq.MarkDefHow rq.battle.set_mark shows one of the game's marks.
rq.ModelDefWhat rq.monster.model takes.
rq.ModelInfoA model in the game's model table, as rq.monster.models lists it.
rq.MonsterA monster's data, as rq.monster.get returns it. The names are rq.chara.get's.
rq.MonsterCaptureA mod's monster's capture (rq.MonsterDef.capture): what the game's capture skills (the two Capture skills, 166 and 451, and Capture Thread, 531) give when they catch it.
rq.MonsterCreateCtxWhat rq.monster.on_create callbacks get. Fields marked writable change the enemy in its slot.
rq.MonsterDefWhat rq.monster.define takes: a game monster to start from, then any field of rq.MonsterEdit for the mod's monster.
rq.MonsterDropAn item a monster may leave after a won fight (rq.MonsterEdit.drops).
rq.MonsterEditWhat rq.monster.edit changes. Every field is optional; the numbers are whole and 0 or more.
rq.MonsterGroupA mod's enemy group, as rq.monster.group takes it.
rq.MonsterSkillA skill in a monster's list (rq.Monster.skills).
rq.MonsterSkillEditA skill's fields in rq.MonsterEdit.skills: the ones given replace the list's.
rq.MusicInfoWhat rq.music.info tells about a track.
rq.MusicListOptsWhat rq.uikit.music_list takes.
rq.MusicMomentA moment a pack names on its Config page, with a switch the player turns on and off.
rq.MusicNowWhat rq.music.current gives: the track that plays now.
rq.MusicOptsHow rq.music.replace and ctx:file play a file.
rq.MusicPageOptsWhat rq.music.page takes.
rq.MusicPlayCtxWhat rq.music.on_play gets: a track the game is about to play.
rq.NewThisRunWhat rq.quests.new_this_run returns.
rq.ObjectCtxWhat an rq.dungeon.on_object function gets.
rq.OfferA row rq.chara.on_offer adds to the skill buy list.
rq.OfferCtxWhat rq.chara.on_offer gets for the character whose buy list the game just filled.
rq.OfferRowA row of the skill buy list, from rq.chara.offers.
rq.OrbMemberA roster member, from rq.orb.roster. rq.party.roster gives the same with hp_max and status.
rq.OrderUnitOne unit of a fight, as rq.battle.on_order lists it.
rq.PartyMemberA recruited character, from rq.party.roster.
rq.PhysicalCtxWhat rq.combat.on_physical gets for one physical hit.
rq.PlayFlashOptsOptions for rq.image.play_flash: the sprite's (rq.SpriteOpts, such as x, y, z, scale, attach and sound) and the play's.
rq.PoisonCtxWhat rq.combat.on_poison gets where the game works out a poison.
rq.QuestA quest, from rq.quests().
rq.QuestAreaAn area of a mod's quest's map, in rq.QuestMap.areas.
rq.QuestAreaCtxWhat an area's setup gets (rq.QuestArea.setup).
rq.QuestBonusA quest bonus in rq.QuestRun.bonuses.
rq.QuestClearCtxWhat an rq.quests.on_clear callback gets.
rq.QuestConditionA condition to take part in a quest, from rq.QuestData.conditions and for rq.quests.edit.
rq.QuestDataA quest's data as the quest list shows it, from rq.quests.get.
rq.QuestDefWhat rq.quests.define takes: a quest of the mod's own, with a map or with none.
rq.QuestEditA patch for rq.quests.edit: the fields to change; one left out keeps the game's.
rq.QuestEndCtxWhat an rq.quests.on_end callback gets.
rq.QuestEventWhat rq.quests.on_event and on_event_after callbacks get.
rq.QuestMapA mod's quest's map, in rq.QuestDef.map.
rq.QuestMapShapeThe shape of a mod's quest's map, in rq.QuestData.map.
rq.QuestObjectAn object of a mod's quest's area, in rq.QuestArea.objects.
rq.QuestRunThe quest being played, from rq.quests.run.
rq.QuestRunCtxWhat a quest's run gets (rq.QuestDef.run).
rq.QuestRunEditWhat rq.quests.set_run writes; a field left out stays.
rq.RecruitOptsOptions for rq.chara.recruit.
rq.RevealOptsOptions for rq.battle.reveal_weakness.
rq.RewardAllyOne ally in rq.battle.on_reward's ctx.allies.
rq.RewardCtxWhat rq.battle.on_reward callbacks get. Fields marked writable change what the game gives.
rq.SaveCtxWhat rq.saves.on_save and on_load callbacks get.
rq.SaveFacesWhat rq.saves.faces returns: the folders of the character creator's faces.
rq.SaveModA mod, as a profile records it.
rq.SaveProfileA save profile, from rq.saves.list.
rq.SaveSummaryWhat a profile's save holds, read from its file.
rq.SceneChoiceOne row of rq.scene.choice.
rq.SceneCtxWhat a scene file's function gets first (rq.scene.functions).
rq.SceneFileA scene file from rq.scene.file. Pass it to rq.scene.play, once or start, or call it with a scene's s in a scene that plays already.
rq.SceneFileOptsHow rq.scene.file starts a file.
rq.SceneRowOne row of rq.sprite.scene.
rq.SceneTextOptsHow rq.scene.say, think and narrate show a line.
rq.SettingsA settings page's values, from rq.config.settings.
rq.SettingsOptsWhat rq.config.settings takes.
rq.SettingsRowOne row of a settings page, for rq.config.settings.
rq.ShopCopyWhat rq.shop.next gives for each copy: rq.item.info's row data and the copy's shop level.
rq.SkillBriefA skill as rq.units() lists it.
rq.SkillInfoWhat rq.skill.get returns.
rq.SkillLevelA skill and its level, as rq.chara.base_skills lists them and edit's learn takes them.
rq.SkillListCtxWhat rq.skilllist.on_page gets.
rq.SkillPatchFields for rq.skill.patch, named after the game's.
rq.SkillResetCtxWhat rq.chara.on_skill_reset gets.
rq.SkillSpecA new skill for rq.skill.define.
rq.SkillStepA step for rq.chara.learnable's after: a skill set to a level.
rq.SoundOptsHow rq.sound.play and play_flash play a sound.
rq.SpawnHandleWhat rq.spawn returns, to follow or stop the job.
rq.SpriteA mod sprite among the game's own, made by rq.sprite.new.
rq.SpriteAttachWhat an attached sprite follows. Give one of these.
rq.SpriteMotionThe values Sprite:to moves to, and how.
rq.SpriteOptsOptions for rq.sprite.new and Sprite:set.
rq.StatusDefWhat rq.status.define takes.
rq.StatusImmuneWho cannot take a state, for rq.StatusDef.immune. Any one field that matches is enough.
rq.StatusInfoWhat rq.status.info gives about a definition.
rq.StatusInstanceA state on one character, from rq.status.add, get and list.
rq.StepsCtxWhat rq.encounters.on_steps callbacks get.
rq.StudyCtxWhat rq.battle.on_study gets for one Study that fired.
rq.StunCtxWhat rq.combat.on_stun gets where the game works out a stun.
rq.TakeContextWhat an rq.quests.on_take callback gets.
rq.TextureColorsColors by numbers on a texture, as rq.image.texture takes them. At least one field.
rq.TextureInfoOne texture of a game model, as rq.image.textures lists it.
rq.TransferContextWhat rq.world.on_transfer and on_transfer_after callbacks get.
rq.TrapCtxWhat an rq.dungeon.on_trap callback gets.
rq.TrapWeightsThe weights of the trap kinds, from rq.dungeon.traps(): each 0 to 10.
rq.TryEquipCtxWhat rq.item.on_try_equip gets.
rq.UiAskRowOne row of rq.ui.ask.
rq.UiBarOptsWhat rq.uikit.bar takes.
rq.UiBoxA row or column for rq.uikit.row and col.
rq.UiButtonStyleA button style of the hub theme: two states of a grey button and its text.
rq.UiChoiceOne row of rq.ui.choose.
rq.UiCommentOptsWhat rq.uikit.comment takes besides the text.
rq.UiFilterStateA filter state for rq.uikit.filters and rq.uikit.item_filter: what the vault's filter column has picked. 0 or nil is "all".
rq.UiInputOptsWhat rq.uikit.input takes.
rq.UiItemIconOptsWhat rq.uikit.item_icon takes.
rq.UiItemRowAn item row's data, as rq.uikit.item_data reads it from the game. A table of your own with the same fields draws a made-up row.
rq.UiItemWindowEntryAn entry of rq.uikit.item_window's list, when a tile needs more than the item.
rq.UiItemWindowOptsOptions for rq.uikit.item_window.
rq.UiMenuItemOne entry of rq.uikit.menu.
rq.UiOptionRowOne row of rq.uikit.options.
rq.UiPieceA part of a CG drawn at any size: the edges stay as they are, the middle stretches.
rq.UiPlaceWhere a widget goes.
rq.UiQuestStorageWhat rq.ui.quest_storage returns.
rq.UiQuestStorageTileA tile of the game's Quest Storage window, from rq.ui.quest_storage.
rq.UiScrollPiecesThe pieces of the game's scroll bar.
rq.UiShotOptsOptions of rq.ui.shot.
rq.UiSkillOptsWhat rq.uikit.skill_button takes.
rq.UiStepperOptsWhat rq.uikit.stepper takes.
rq.UiTabsStyleA tabs style of the hub theme.
rq.UiThemeA look for the kit: pieces, text styles, colors and sounds.
rq.UiTipA widget's tip: what rq.uikit.comment shows, and where.
rq.UiWindowWhat rq.ui.window returns.
rq.UnequipCtxWhat rq.item.on_unequip gets.
rq.UnitA recruited character, from rq.units().
rq.VanillaSaveWhat rq.saves.vanilla returns.

Aliases ​

AliasType
rq.ImageFit"stretch"|"contain"|"cover"|"none"
rq.GameButtonState"button"|"row"|"aside"|"hidden"
rq.StatusPageMode"party"|"party-edit"|"party-store"|"battle-result"