API reference
Loader version 2.67.0.
Namespaces
| Namespace | Summary |
|---|---|
rq | The global table every mod uses to reach the game. |
rq.agent | Lets the test pipe (rqmod-ctl) see and press a mod's controls. |
rq.ain | Reaches into the game's own code (the AIN): call, hook and patch its functions, and read and write its globals. |
rq.battle | Hooks into fights: events, ally skill select, marks and buffs on the cards, faces, states, drops, and scripted fights. |
rq.castle | Reads the castle: whether it is open, its rooms and who is in them. |
rq.chara | Reads and changes characters: their skills, stats, the skill buy list, and the roster. |
rq.chest | The chance of opening a red chest. |
rq.combat | Changes physical damage, accuracy and criticals. |
rq.config | A Mods tab in the game's Config screen. |
rq.counter | Lets the Counter skill (259) work after Ally Guard. |
rq.debug | Adds rows to the engine's F3 debug menu. |
rq.dungeon | Reads and changes the dungeon: the map, the player's place, objects on it, and the camera. |
rq.encounters | Random fights on a quest's map. |
rq.game | The player's money and charisma, as the system bar shows them. |
rq.gamebutton | Buttons of mods in the game's own menus, made by the game itself. |
rq.hud | Draws text, boxes and CGs over the game, and reads clicks on them. |
rq.ids | The 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.image | Images from a mod's folder, shown by the game as CGs. |
rq.input | Reads the mouse and keyboard, and drives them for the game. |
rq.item | Defines, gives and changes items. |
rq.items | Lists the item instances the player owns. |
rq.knownskills | More known skills than the game's 17, shown 17 at a time on the status page and in the skill window. |
rq.loot | Chest loot: what the pools roll, and the items the player will find, known in advance. |
rq.mod | Finds out about other mods, and reaches what they share. |
rq.monster | The 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.music | Music from a mod's own file, in place of one of the game's tracks. |
rq.orb | The blue Recovery Spring on the map (回復の泉, object 203). |
rq.party | Reads and changes who is in the party. |
rq.quests | Lists the quests and follows them: clears, endings, quest moments and state. |
rq.random | Controls the random number generator the game and the loader share. |
rq.savedata | Each mod's data that follows the game's save. |
rq.saves | Save profiles: whole save folders the player can switch between. |
rq.scene | Plays scenes with the game's own commands, so a mod can do anything a game scene does. |
rq.shop | Adds stock to Frostbuy, the item shop, and reports purchases. |
rq.skill | Reads, defines and patches skills, and rewrites their hover text. |
rq.skilllist | Pages the Potential Skills grid, 36 skills a page. |
rq.sound | Plays sounds: a game sound number, a file in the mod folder, or a sound inside a game Flash file. |
rq.speed | Runs the game clock faster or slower than real time. |
rq.sprite | Sprites a mod makes once and changes later, drawn among the game's own in z order. |
rq.status | Battle 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.statuspage | A character's status page, for mods. |
rq.store | Small key and value storage for each mod and each save profile. |
rq.store.global | The same calls as rq.store, in one file for every save profile. |
rq.ui | Reads what is on the screen and saves screenshots. |
rq.uikit | Widgets in the look of the game's Config screen and, since 2.6.0, of its hub. |
rq.units | Lists the recruited characters. |
rq.world | The world and the game's world transfer. |
Types
| Type | Summary |
|---|---|
rq.AccuracyCtx | What rq.combat.on_accuracy gets for one accuracy check. |
rq.AgentOpts | How rq.agent.control finds a control: a game button, or a rectangle a mod draws. |
rq.AgentWidget | A control a mod drew on this update, for rqmod-ctl ui. |
rq.AinHookCtx | What an rq.ain.hook callback gets. |
rq.AinHookOpts | What rq.ain.hook takes. |
rq.AreaCtx | What rq.dungeon.on_area gets. |
rq.BagInfo | One enemy in rq.battle.bags. |
rq.BattleActor | The ally whose turn it is, from rq.battle.actor. |
rq.BattleDownCtx | What rq.battle.on_down gets. |
rq.BattleEndCtx | What rq.battle.on_end gets. |
rq.BattleFamiliar | The familiar of a fight, as rq.battle.familiar returns it. |
rq.BattleForecastCtx | What rq.battle.on_forecast gets for one forecast line. |
rq.BattleHitCtx | What rq.battle.on_hit gets for one hit. |
rq.BattleLogCtx | What rq.battle.on_log gets for one line of the battle log. |
rq.BattleOrderAfterCtx | What rq.battle.on_order_after gets after the game built the turn list. |
rq.BattleOrderCtx | What rq.battle.on_order gets before the game builds the turn list. |
rq.BattleSelectKeyCtx | What rq.battle.on_select_key gets. |
rq.BattleSnap | What rq.battle.snapshot returns: a copy of the fight screen. |
rq.BattleStartCtx | What rq.battle.on_start gets. |
rq.BattleStates | Every state of a character, from rq.battle.states. |
rq.BattleSupportCtx | What rq.battle.on_support gets. |
rq.BattleSwitchCtx | What rq.battle.on_switch gets for one rank. |
rq.BattleTurnCtx | What rq.battle.on_turn gets: the character whose turn starts, and what can change it. |
rq.BattleUseEvent | What rq.battle.on_use gets. |
rq.BoostRow | One Boost, from rq.chara.boosts. |
rq.BuffDef | A mod's buff on a card, for rq.battle.set_buff and set_rank_buff. |
rq.BuffInfo | One mark a card shows, from rq.battle.buffs. |
rq.BuyCtx | What an rq.shop.on_buy callback gets. |
rq.CanBuyCtx | What an rq.shop.on_can_buy callback gets. |
rq.CanEquipCtx | What rq.item.on_can_equip gets for one item and one character. |
rq.CapCtx | What rq.combat.on_cap gets for one hit. |
rq.Castle | The castle's state, from rq.castle(). |
rq.CastleRoom | A castle room, from rq.castle(). |
rq.CastleRoomHandle | A mod's room, from rq.castle.room. |
rq.CastleRoomInfo | A mod's room, as rq.castle.rooms lists it. |
rq.CastleRoomPlace | Where a mod's room is this time, from a room's where(). |
rq.CastleRoomSpec | A mod's room in Rance Castle, for rq.castle.room. |
rq.CharaDef | A character template for rq.chara.define. |
rq.CharaEdit | A patch for rq.chara.edit. level, level_max, skills and lines do not apply. |
rq.CharaFields | The fields rq.chara.define and rq.chara.edit share. |
rq.CharaInit | Stat bonuses that each recalculation adds, in rq.CharaFields.init. |
rq.CharaSkillGrant | A skill a character gets, in rq.CharaFields.skills and rq.CharaEdit.learn. |
rq.CharaSlot | One row of a character's skill list, from rq.chara.slots. |
rq.CharaState | Everything rq.chara.get returns about a character. rq.chara.set takes the same names. |
rq.ChestAttemptResult | What rq.chest.on_attempt may return instead of a number. |
rq.ChestInfo | What rq.chest.on_attempt and on_result get for a red chest. |
rq.ChooseCtx | What rq.battle.on_choose gets on an enemy's or the familiar's turn. |
rq.ChooseSkill | A skill in rq.ChooseCtx.skills: one slot of the actor's list as it is now. |
rq.CombatRules | What a skill can do in a fight, from rq.combat.rules. |
rq.ConfigPage | A page in the Mods tab of the game's Config screen. |
rq.CounterCtx | What rq.combat.on_counter gets after a hit. |
rq.CounterGuardCtx | What rq.counter.on_guard_counter gets. |
rq.CreateCtx | What rq.chara.on_create gets. |
rq.CritCtx | What rq.combat.on_crit gets where the game rolls a critical. |
rq.DebugAction | A row on the F3 debug menu. |
rq.DungeonArea | One area of rq.dungeon.areas(). |
rq.DungeonCamera | The camera range rq.dungeon.camera patches. |
rq.DungeonInfo | Where the party is in a dungeon, from rq.dungeon.info(). |
rq.ElementCtx | What rq.combat.on_element gets for one physical hit. |
rq.EncounterCtx | What rq.encounters.on_encounter callbacks get. |
rq.EncounterInfo | What rq.encounters.info returns. |
rq.EquipCtx | What rq.item.on_equip gets. |
rq.EscapeCtx | What rq.combat.on_escape gets. |
rq.FightBackground | One of the game's fight backgrounds. |
rq.FightOpts | What rq.battle.start takes. Only enemies is needed. |
rq.FightResult | How a fight from rq.battle.start ended, its second value. |
rq.FlashBitmap | One bitmap of a game Flash file, as rq.image.flash_bitmaps lists it. |
rq.FlashBitmapOpts | Options for rq.image.flash_bitmap. |
rq.FlashInfo | What rq.image.flash_info returns. |
rq.FlashSound | A sound inside a Flash file, from rq.sound.flash_info. |
rq.ForgetCtx | What rq.chara.on_forget gets. |
rq.GameButtonGroup | A group, from rq.gamebutton.groups. |
rq.GameButtonHandle | An entry, from rq.gamebutton.add. |
rq.GameButtonInfo | An entry, as rq.gamebutton.groups lists it. |
rq.GameButtonList | The status page's MODS button and its list, as rq.gamebutton.groups gives them. |
rq.GameButtonSpec | An entry for rq.gamebutton.add. |
rq.GifInfo | What rq.image.gif_info returns. |
rq.GifOpts | Options for rq.image.add_gif. |
rq.GoHomeCtx | What an rq.party.on_go_home callback gets. |
rq.HasSkillCtx | What rq.chara.on_has_skill gets for one check. |
rq.HealCtx | What rq.combat.on_heal gets for one heal; amount is writable. |
rq.HpEvent | What rq.battle.on_hp gets. |
rq.HudCgOpts | How rq.hud.cg draws a CG. |
rq.HudTextStyle | How rq.hud.text draws text. |
rq.ImageInfo | What rq.image.info returns. |
rq.ImageLayer | One layer of rq.image.compose: a part of a CG, a fill, or text. |
rq.ImageOpts | Options for rq.image.add and rq.image.replace. |
rq.Item | An owned item instance, from rq.items(). |
rq.ItemDef | An item template for rq.item.define. |
rq.ItemEffect | One of an item's effects: the game's own code and amount. |
rq.ItemFindOpts | What rq.item.find and rq.item.count take. |
rq.ItemInfo | What 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.LearnableRow | One row of the skill buy list, from rq.chara.learnable. |
rq.LearnCtx | What rq.chara.on_learn gets for one purchase. |
rq.LevelUpCtx | What rq.chara.on_level_up callbacks get. |
rq.LootAdd | An item for rq.loot.add. |
rq.LootItem | An item the player will find, from rq.loot.list. |
rq.MagicCtx | What rq.combat.on_magic gets for one spell. |
rq.MapCtx | What rq.dungeon.on_map gets. |
rq.MapObject | An object on the current map, from rq.dungeon.objects(). |
rq.MarkDef | How rq.battle.set_mark shows one of the game's marks. |
rq.ModelDef | What rq.monster.model takes. |
rq.ModelInfo | A model in the game's model table, as rq.monster.models lists it. |
rq.Monster | A monster's data, as rq.monster.get returns it. The names are rq.chara.get's. |
rq.MonsterCapture | A 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.MonsterCreateCtx | What rq.monster.on_create callbacks get. Fields marked writable change the enemy in its slot. |
rq.MonsterDef | What rq.monster.define takes: a game monster to start from, then any field of rq.MonsterEdit for the mod's monster. |
rq.MonsterDrop | An item a monster may leave after a won fight (rq.MonsterEdit.drops). |
rq.MonsterEdit | What rq.monster.edit changes. Every field is optional; the numbers are whole and 0 or more. |
rq.MonsterGroup | A mod's enemy group, as rq.monster.group takes it. |
rq.MonsterSkill | A skill in a monster's list (rq.Monster.skills). |
rq.MonsterSkillEdit | A skill's fields in rq.MonsterEdit.skills: the ones given replace the list's. |
rq.MusicInfo | What rq.music.info tells about a track. |
rq.MusicListOpts | What rq.uikit.music_list takes. |
rq.MusicMoment | A moment a pack names on its Config page, with a switch the player turns on and off. |
rq.MusicNow | What rq.music.current gives: the track that plays now. |
rq.MusicOpts | How rq.music.replace and ctx:file play a file. |
rq.MusicPageOpts | What rq.music.page takes. |
rq.MusicPlayCtx | What rq.music.on_play gets: a track the game is about to play. |
rq.NewThisRun | What rq.quests.new_this_run returns. |
rq.ObjectCtx | What an rq.dungeon.on_object function gets. |
rq.Offer | A row rq.chara.on_offer adds to the skill buy list. |
rq.OfferCtx | What rq.chara.on_offer gets for the character whose buy list the game just filled. |
rq.OfferRow | A row of the skill buy list, from rq.chara.offers. |
rq.OrbMember | A roster member, from rq.orb.roster. rq.party.roster gives the same with hp_max and status. |
rq.OrderUnit | One unit of a fight, as rq.battle.on_order lists it. |
rq.PartyMember | A recruited character, from rq.party.roster. |
rq.PhysicalCtx | What rq.combat.on_physical gets for one physical hit. |
rq.PlayFlashOpts | Options for rq.image.play_flash: the sprite's (rq.SpriteOpts, such as x, y, z, scale, attach and sound) and the play's. |
rq.PoisonCtx | What rq.combat.on_poison gets where the game works out a poison. |
rq.Quest | A quest, from rq.quests(). |
rq.QuestArea | An area of a mod's quest's map, in rq.QuestMap.areas. |
rq.QuestAreaCtx | What an area's setup gets (rq.QuestArea.setup). |
rq.QuestBonus | A quest bonus in rq.QuestRun.bonuses. |
rq.QuestClearCtx | What an rq.quests.on_clear callback gets. |
rq.QuestCondition | A condition to take part in a quest, from rq.QuestData.conditions and for rq.quests.edit. |
rq.QuestData | A quest's data as the quest list shows it, from rq.quests.get. |
rq.QuestDef | What rq.quests.define takes: a quest of the mod's own, with a map or with none. |
rq.QuestEdit | A patch for rq.quests.edit: the fields to change; one left out keeps the game's. |
rq.QuestEndCtx | What an rq.quests.on_end callback gets. |
rq.QuestEvent | What rq.quests.on_event and on_event_after callbacks get. |
rq.QuestMap | A mod's quest's map, in rq.QuestDef.map. |
rq.QuestMapShape | The shape of a mod's quest's map, in rq.QuestData.map. |
rq.QuestObject | An object of a mod's quest's area, in rq.QuestArea.objects. |
rq.QuestRun | The quest being played, from rq.quests.run. |
rq.QuestRunCtx | What a quest's run gets (rq.QuestDef.run). |
rq.QuestRunEdit | What rq.quests.set_run writes; a field left out stays. |
rq.RecruitOpts | Options for rq.chara.recruit. |
rq.RevealOpts | Options for rq.battle.reveal_weakness. |
rq.RewardAlly | One ally in rq.battle.on_reward's ctx.allies. |
rq.RewardCtx | What rq.battle.on_reward callbacks get. Fields marked writable change what the game gives. |
rq.SaveCtx | What rq.saves.on_save and on_load callbacks get. |
rq.SaveFaces | What rq.saves.faces returns: the folders of the character creator's faces. |
rq.SaveMod | A mod, as a profile records it. |
rq.SaveProfile | A save profile, from rq.saves.list. |
rq.SaveSummary | What a profile's save holds, read from its file. |
rq.SceneChoice | One row of rq.scene.choice. |
rq.SceneCtx | What a scene file's function gets first (rq.scene.functions). |
rq.SceneFile | A 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.SceneFileOpts | How rq.scene.file starts a file. |
rq.SceneRow | One row of rq.sprite.scene. |
rq.SceneTextOpts | How rq.scene.say, think and narrate show a line. |
rq.Settings | A settings page's values, from rq.config.settings. |
rq.SettingsOpts | What rq.config.settings takes. |
rq.SettingsRow | One row of a settings page, for rq.config.settings. |
rq.ShopCopy | What rq.shop.next gives for each copy: rq.item.info's row data and the copy's shop level. |
rq.SkillBrief | A skill as rq.units() lists it. |
rq.SkillInfo | What rq.skill.get returns. |
rq.SkillLevel | A skill and its level, as rq.chara.base_skills lists them and edit's learn takes them. |
rq.SkillListCtx | What rq.skilllist.on_page gets. |
rq.SkillPatch | Fields for rq.skill.patch, named after the game's. |
rq.SkillResetCtx | What rq.chara.on_skill_reset gets. |
rq.SkillSpec | A new skill for rq.skill.define. |
rq.SkillStep | A step for rq.chara.learnable's after: a skill set to a level. |
rq.SoundOpts | How rq.sound.play and play_flash play a sound. |
rq.SpawnHandle | What rq.spawn returns, to follow or stop the job. |
rq.Sprite | A mod sprite among the game's own, made by rq.sprite.new. |
rq.SpriteAttach | What an attached sprite follows. Give one of these. |
rq.SpriteMotion | The values Sprite:to moves to, and how. |
rq.SpriteOpts | Options for rq.sprite.new and Sprite:set. |
rq.StatusDef | What rq.status.define takes. |
rq.StatusImmune | Who cannot take a state, for rq.StatusDef.immune. Any one field that matches is enough. |
rq.StatusInfo | What rq.status.info gives about a definition. |
rq.StatusInstance | A state on one character, from rq.status.add, get and list. |
rq.StepsCtx | What rq.encounters.on_steps callbacks get. |
rq.StudyCtx | What rq.battle.on_study gets for one Study that fired. |
rq.StunCtx | What rq.combat.on_stun gets where the game works out a stun. |
rq.TakeContext | What an rq.quests.on_take callback gets. |
rq.TextureColors | Colors by numbers on a texture, as rq.image.texture takes them. At least one field. |
rq.TextureInfo | One texture of a game model, as rq.image.textures lists it. |
rq.TransferContext | What rq.world.on_transfer and on_transfer_after callbacks get. |
rq.TrapCtx | What an rq.dungeon.on_trap callback gets. |
rq.TrapWeights | The weights of the trap kinds, from rq.dungeon.traps(): each 0 to 10. |
rq.TryEquipCtx | What rq.item.on_try_equip gets. |
rq.UiAskRow | One row of rq.ui.ask. |
rq.UiBarOpts | What rq.uikit.bar takes. |
rq.UiBox | A row or column for rq.uikit.row and col. |
rq.UiButtonStyle | A button style of the hub theme: two states of a grey button and its text. |
rq.UiChoice | One row of rq.ui.choose. |
rq.UiCommentOpts | What rq.uikit.comment takes besides the text. |
rq.UiFilterState | A 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.UiInputOpts | What rq.uikit.input takes. |
rq.UiItemIconOpts | What rq.uikit.item_icon takes. |
rq.UiItemRow | An 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.UiItemWindowEntry | An entry of rq.uikit.item_window's list, when a tile needs more than the item. |
rq.UiItemWindowOpts | Options for rq.uikit.item_window. |
rq.UiMenuItem | One entry of rq.uikit.menu. |
rq.UiOptionRow | One row of rq.uikit.options. |
rq.UiPiece | A part of a CG drawn at any size: the edges stay as they are, the middle stretches. |
rq.UiPlace | Where a widget goes. |
rq.UiQuestStorage | What rq.ui.quest_storage returns. |
rq.UiQuestStorageTile | A tile of the game's Quest Storage window, from rq.ui.quest_storage. |
rq.UiScrollPieces | The pieces of the game's scroll bar. |
rq.UiShotOpts | Options of rq.ui.shot. |
rq.UiSkillOpts | What rq.uikit.skill_button takes. |
rq.UiStepperOpts | What rq.uikit.stepper takes. |
rq.UiTabsStyle | A tabs style of the hub theme. |
rq.UiTheme | A look for the kit: pieces, text styles, colors and sounds. |
rq.UiTip | A widget's tip: what rq.uikit.comment shows, and where. |
rq.UiWindow | What rq.ui.window returns. |
rq.UnequipCtx | What rq.item.on_unequip gets. |
rq.Unit | A recruited character, from rq.units(). |
rq.VanillaSave | What rq.saves.vanilla returns. |
Aliases
| Alias | Type |
|---|---|
rq.ImageFit | "stretch"|"contain"|"cover"|"none" |
rq.GameButtonState | "button"|"row"|"aside"|"hidden" |
rq.StatusPageMode | "party"|"party-edit"|"party-store"|"battle-result" |
