Rûn Verb Index
Every verb Rûn knows, read from the engine's own verb table, so nothing is left out; Line Scripts explains how a script is put together.
180 verbs, 2026-11-25.
Reading a signature
- <thing>
- Required.
- [thing]
- Optional.
- a|b
- One of these words.
- ...
- The rest of the line is taken whole.
Telling the story
Speech, deeds, conversations and shops.
deed <words>- Write a deed into the Saga journal. Example:
deed Lit the beacon dialog <npc>- Open a villager's dialogue window. Example:
dialog elder_runa quest <id> <stage>- Finish a stage of a quest by name (quests.vfa), the stage named by its flag or its number from 1; the same flag a hand-written flag set would raise. Example:
quest lost_lamb 2 say <words>- Show a line of speech at the bottom of the screen. Example:
say Cold night, traveler. shop <npc>- Open a villager's shop counter. Example:
shop smith_bryn speak <speaker> [portrait=<picture>] : <words>- Open the chat box with a speaker's name and words, no villager needed. Example:
speak Old Sign : Keep out.
The shape of a script
Flags, variables, branches, loops, waits and other scripts.
add <var> <expr>- Add to a numeric variable (negative subtracts). Example:
add torches 1 else- The other branch of the if above it.
end- Stop this section now.
engine <command>- Run one of the engine's own commands, the ones its test tools send. Example:
engine terraingen alpine 777 every <seconds>- Re-run this whole section on a heartbeat (this map). Example:
every 2.5 flag <set|clear> <name>- Raise or lower a story flag (rides the save). Example:
flag set elder_arc if <condition>- Run the indented block when the condition holds. Example:
if gold >= 50 lock- Take the player's reins (cutscene start).
repeat <count>- Run the indented block count times. Example:
repeat 3 require <stat|flag> <dc|name> : <fail-section>- Gate the section: failed check jumps away. Example:
require might 12 : too_weak run <event> [section]- Call another script; this one resumes after. With no section, [use] runs. Calls nest 16 deep; a section already running is not called again, and a missing event or section is named in the console. Example:
run heartbeat pulse set <var> <expr or words>- Make or change a variable (numbers or text): "words in quotes" are text, a variable's name copies its value, and anything else is a number or a reading, else the words as written. name = value on its own line does the same. Example:
set torches 0 unlock- Hand the reins back early (scripts always return them).
wait <seconds>- Hold the script here; the world keeps breathing. Example:
wait 1.5 while <condition>- Repeat the indented block while the condition holds. Example:
while torches < 3
The world
What is in the world, what it looks like and what it does.
anim <npc> <name> [secs]- Play a villager animation: idle walk talk attack roll hit death. Example:
anim smith_bryn attack 1.5 chan <prop> <who> <how>- Who a prop stops and who walks through it. Example:
chan gate enemy ignore checkpoint [<x> <y> | <tag> | clear]- Move where Respawn and a death put her back on this map: bare, where she stands now; or a place, or a prop's tag; clear gives the map's Player Start back. Leaving the map clears it too. Example:
checkpoint clearname <party>- One party stops believing what it heard about you. Example:
clearname marsh controller [<name> [key value]]- The map's controllers: placed objects with no picture that run an event while the game plays. Bare it lists each with its settings and how many times it has run; a name lists one; a key sets it: on, off, run <event|none>, when start|condition|timer (when the map starts, when its condition is true, or after its seconds), if <a reading, as an if takes> (the condition), every <seconds>, repeat on|off, times <n> (0 = no limit). The event's [run] section runs, or with none its first section. Make one with object create controller <name> <x> <y>, or Add > Controller in the editor. Example:
controller Controller when timer damage <prop> <n>- Hit a breakable; at zero it breaks, drops its table and runs its [destroy]. Example:
damage crate 1 death [rekindle|reload|end|delay|dim|dimtime|message] [value]- What the player's death does and looks like: rekindle, reload or end (the mode), delay <s> before the respawn, dim <0..1> how dark the world goes, dimtime <s> the fade, message <text> the line shown while dead (- clears it). Bare it reads them all back. The same values as Project Settings > Consequences > Death; in the editor a change is saved to the project. Example:
death delay 1.5 demote <party>- She falls one rank, never below the first. Example:
demote ironoak face <npc> <0-7|player>- Turn a villager (or aim them at the player). Example:
face elder_runa player faction <who> [party|none]- Whose party a placed character (tag or kind) or an enemy kind belongs to; bare, it reads. Example:
faction elder marsh flashlight [on|off|toggle|carry|battery|...]- The character's flashlight: a cone of light from her, aimed by the first person view or by her facing. flashlight reads it back; on, off, toggle; carry gives her one for this session (carry off takes it); battery <0-100> sets the charge; life <minutes|endless>, low <percent>, range <short|medium|long|far|n>, cone <narrow|medium|wide|flood|degrees>, edge <hard|soft|softer|0-1>, colour <RRGGBB>, intensity <n>, flicker <speed> [regularity]. A script answers its changes with after flashlight(text state, number battery): state on, off, low or empty. Example:
flashlight battery 100 fpbody [<setting> <word>|crouched on|off|stamina <0-100>]- The first person body: head bob, lean, crouch and stamina. fpbody reads every setting and the live body back; headbob off|subtle|normal|strong, lean off|short|medium|long, crouch off|high|middle|low, crouchkey hold|toggle, stamina off|on, staminapool short|medium|long, staminarefill slow|medium|fast, staminadelay short|medium|long, staminathreshold low|middle|high, staminajump off|light|heavy; crouched on|off crouches her; stamina <0-100> sets the pool. A script answers the pool with after stamina(text state, number stamina): state empty or full. Example:
fpbody stamina 50 fx <name> [x y | npc | player]- A named particle burst (particles.vfa), here or at someone. Example:
fx sparks elder_runa fxlight <tag> <field> [value]- An effect that IS a light: on, off, radius, w, h, height (world px up), intensity, feather, flicker, regularity, group <name|none>: the same dials a prop's light has, on every PLACED effect wearing this tag. A muzzle flash or a spell burst does not light anything. Example:
fxlight hall_braziers radius 200 fxmove <tag> <x y | npc | player>- Move every placed effect wearing this tag. Example:
fxmove wisp elder_runa fxoff <tag>- Put out every placed effect wearing this tag. Example:
fxoff hall_braziers fxon <tag>- Light every PLACED effect wearing this tag. Example:
fxon hall_braziers fxplace <burst> <x> <y> <every> [dir] [tag]- Put a breathing effect into the map: fxon, fxoff and fxmove could work one, nothing could make one. Example:
fxplace embers 900 500 2.5 join <party>- Join a guild, if your standing is high enough. Example:
join ironoak leave [party]- Leave a guild (bare: the first she belongs to). Example:
leave ironoak light player|<image> <radius>- Light a piece of art or the character. light <who> reads it back and names its shape; light <who> <radius> as before; light <who> <field> <value> shapes it: type <round|square|vertical|horizontal|rect>, size <n|w h>, feather <px> (the softened edge; 0 derives it), height <0..1> (where up the sprite it sits), intensity, flicker <speed> [regularity 0..1] or strobe <speed>, beams <n [dir] [fan]|off>, color <RRGGBB>, beamint, group <name|none>. Her own light takes radius, height, intensity, colour <RRGGBB|none>, flicker <speed> [regularity] or strobe, regularity. light group <name> on|off|dim <0-1>|flicker <speed> [regularity]|fade <0-1> <seconds> moves every light in a group at once. Runtime only: lights.vfa is the author file. What a script sets of her own light in play holds for the rest of that play, over her character's Light component. Example:
light player 180 map <key> [value]- The map's own settings, key for key with its manifest: ground, spawn, gamemode, ambient, indoor, bounds, camera, music, weather, weathersound, soundscape, killz, sky, fog. With no value it reads one back. Example:
map ambient 60 material <name>|none <image>- Bind art to a material for this session; none strips it (the image is a BASENAME, as in materials.vfa). Example:
material torch Lantern1_1.png move <npc> <x> <y>- Send a villager walking somewhere. Example:
move elder_runa 950 700 note [open|find|close|archive] [item]- An item that is a note (its note, notetext and notepic fields): note lists the notes found, in order, read or unread; open <item> opens the reader page on it, files it and marks it read; find <item> files it unread; close shuts the reader; archive opens the Notes archive. Read them in an if with noteread(<item>) and notefound(<item>). A script answers a reading with after note(text item, text title, toggle first). Example:
note open torn_letter npc place|move|del|tag|talk|control|provoke|calm|onhit|type ...- Populate the world: place <kind> <x> <y> (a kind is a character in assets/characters), move <npc> <x> <y>, del <npc>, tag <npc> <name>, talk <npc> <event>|none, control <npc> ai|none|p1|p2|p3|p4, provoke <npc> and calm <npc> in play (a Creature never calms), onhit <npc> calm|fight|flee|project (what a calm one does when she attacks it; onhit project calm|fight|flee is the project's choice for this run), type <kind> npc|animal|creature. Example:
npc place npc_1 900 500 object create|destroy|show|hide|list ...- Make things while the game runs, and take them out: create <kind> ... <name> <x> <y>, or ... <name> at <place> (player, death for where the last On death event's enemy fell, or anything named), where the kind is controller (see controller), prop <art or cube sphere cylinder cone plane capsule torus> [scale] [rot], barrier [wide deep tall] (a solid box, 64 each way unless given), wall [wide deep] (the same with no picture), light [radius], effect <burst> [seconds between], enemy <type>, npc <kind>; destroy <name|self> takes out everything wearing the name (an enemy leaves with no spoils); hide <name> stops a prop, barrier, wall, light or effect being drawn and blocking, and show <name> gives both back where it stood; list names what is here. Several things may share a name. Made in play they are gone when the map is read again; made in the editor they are saved with the map. Example:
object create barrier gate 900 500 128 32 physball <x> <y> [r]- Drop a physics ball. Example:
physball 500 200 26 physbox <x> <y> [hw hh]- Drop a physics crate (physics mode). Example:
physbox 500 200 promote <party>- She rises one rank in a party she belongs to. Example:
promote ironoak prop place|move|scale|rot|del|destroy|tag|script|self|door|breakable|cam|stepup|visible|tint|opacity|material|interact|pickup|touch|mirror|way|mover|prefab|copy|zbias|tilt|size|lift|flat|height|group|set|get|unset|add ...- Put things into the world, move them, dress them, take them out: place <art> <x> <y> [scale] [rot] (quote art whose path has a space), move, scale, rot, del (no ceremony), destroy (runs its [destroy] first), tag, and every field its layout line carries: zbias, tilt <pitch> <roll>, size <x> <up> <z> (a stretch per axis in its own axes, times its scale), lift, flat on|off, height <px>, group <folder>, script <event>|- (its own script; bare reads it back, and with none it still falls back to its tag), self <A-D> [on|off] (per-object memory that survives a save; read it in an if with self(<prop>,A)), the dev's own facts: set <key> <value> (the value is the rest of the line), get <key>, unset <key>, add <key> <number> (added to the number it holds; an if reads one with prop(<prop>,<key>)), and what the thing IS: door <ref> on|off|open|shut|key <item>|art <open art>|sound <wav>|close <secs>|swing left|right|off [degrees] [seconds] (it turns on its hinge instead of changing its art), breakable <ref> on|off|hp <n>|art <broken art>|drop <table>|fx <burst>|sound <wav>|rubble <px> (how tall the wreck stands: 0 walks through it, more walks over it)|respawn <secs> (0 = gone for good), cam <ref> on|off|live|standby|follow|fixed|<field> <value>: a camera on the placed thing. fore, yaw, zoom, arm, offx, offy, lag and lagmax set its view: lag is how quickly it glides after what it follows, and lagmax how far the glide may fall behind. blend, near and far are saved but change nothing in this version. A field left at its starting value leaves the view's own alone (yaw starts at -999, which keeps the view's heading); lens 1 looks through the Perspective lens when a 3D project's title stage holds this camera (0, the start, the Isometric-Style one), stepup <ref> auto|yes|no (whether a walker may step up onto it: auto is a wall from below, yes lets a grounded walker step onto a top only a step high, no refuses even from above). And what it LOOKS like, per placed thing: visible <ref> on|off (hidden, but still blocking whatever its chan says: an invisible wall is this alone, a ghost is this plus chan overlap, a thing that is gone is prop del), tint <ref> <RRGGBB>|- (multiplied into the art, so one barrel picture makes a red, a blue and a green one), opacity <ref> <0-255>, material <ref> <material>|none|- (the material it wears over its art's), interact <ref> auto|use|pickup|rest|container|hide|none (what the interact key does to it; rest opens the rest screen; hide hides her in it until she uses it again), pickup <ref> <item> [count]|- (a pickup puts that into the pockets, then hides and stops blocking, remembered by its tag; on a rest prop the word is its place, a bed or a camp), touch <ref> on|off (a pickup taken when her body reaches it, without the interact key), mirror <ref> on|off [res <0.1-1>] [tint <RRGGBB>] [strength <0-1>] (a model prop whose face shows the world reflected in it: res is the reflection's detail as a share of the screen's pixels over the face, tint is multiplied into it, strength is how much of it covers the surface; tuning mirror_max caps how many reflections are drawn again a frame). Read them in an if with open(<prop>), broken(<prop>), stepup(<prop>) and visible(<prop>); a door that should still stop arrows when open is a chan line, not a field. Example:
prop place Tree1.png 900 500 randomevents [list|why|sim|fire|draw|run|try|on|off|seed|pacing|save|test] ...- The random events (randomevents.vfa): bare lists every trigger and event with its state; why <event|trigger|table> says why it did or did not happen; sim <table> <draws> draws with no outcomes and prints the shares; fire <trigger>, draw <table>, run <event> (past its conditions), try <event> (only if it can happen); on|off <id>; seed [n]; pacing [n]; save writes the document and reads it back; test runs the self-test. Example:
randomevents why wolves renown [amount]- Add to her renown, the deed written as a kill's renown is (a negative takes, never below 0); the amount is a number or a reading. Bare it says what she has. Example:
renown 10 respawn- Send her back to the map's Player Start, standing, with her health, items and conditions kept and no death's consequences.
rest [way] [hours] | more | less | next | start | cancel | choose <n> | clock | list | test- Resting and waiting (resting.vfa): bare opens the rest screen; rest <way> <hours> rests now; more, less, next, start and cancel drive the open screen; choose <n> answers an event's choice box; clock says the day, the hour and her HP; list says which ways can be used here. Example:
rest sleep 8 rumour <deed> <party>- A party believes you did it. It is not true. Example:
rumour robbed_caravan marsh savemap- Write the map as it now stands; what a script built is kept (refused in an exported game).
sched <npc> [hour x y ...]- The villagers' day: sched smith reads it, sched smith 8 900 500 [anim] [shop|noshop] adds a stop, sched clear smith drops it. Example:
sched smith 8 900 500 setrank <party> <n>- Set her rank outright, no gate; 0 leaves. Example:
setrank ironoak 3 sky [on|off|type|haze|stars|spin] [value]- Sky on | off | type <name> | haze <0..1> | stars <n> | spin <days>. Example:
sky type overcast solid <prop> <on|off>- Make a prop block movement, or stop blocking. Example:
solid barn_door off sprite <img> [where] [secs] [scale]- Show art in the world for a moment (at x y, an entity, or the player). Example:
sprite fx/rune_circle.png elder_runa 4 1.5 standing <party> [esteem grievance]- Set a party's opinion of the player outright; bare, read it with her membership. Example:
standing ironoak 40 0 swapimg <prop> <file>- Swap a prop's art (bare name = same folder). Example:
swapimg barn_door door_open.png teleport <x> <y>- Move the player instantly. Example:
teleport 320 320 terrain <preset|off|dial> [v]- The floor itself: a preset (overworld alpine archipelago mesa_steps tundra ice_sheet cratered, or random; a retired name answers as the kept world it went to), a dial (size <texels>, sea <0..0.95>, height <0.05..12>, cuts [recut|hold], off), or a manifest line: use, top, groundzero, climate, paint, lake, walk, waves, world, mesh (terrain mesh smooth|blocky <texelsPerCell> <chunkCells> <heightSpan> sets the dials, off clears them, build builds it NOW and reports chunks/verts/tris/ms/dup/open, refit <tx0> <tz0> <tx1> <tz1> rebuilds only what a brush touched, free lets it go, draw on|wire|off puts it on the glass and is OFF by default. The mesh is the field as real triangles, which is what 3D worlds stand on and what a ray trace has to hit. Nothing builds automatically: a full build was measured at 885 ms.). Example:
terrain archipelago time <hour>- Set the sun: 0-24. Example:
time 21 travel <map> [x y]- Load another map (zones become gates). Example:
travel beacon 400 900 tune <key> <value>- Set any tuning number live: walk_speed run_mult sneak_mult roll_speed jump_speed... (every key tuning.vfa speaks; game load reads the file back). Example:
tune walk_speed 450 tween <prop> <property> [to|by] <value> <secs> [curve] [from <v>] [delay <s>] [loop|pingpong [n]] [name <w>] [done <event>]- Ease a placed thing's rotation, pitch, roll, height, x, y, scale, tint, opacity or light over seconds, along a standard ease (OutCubic, InOutSine, OutBounce...) or a curves.vfa curve; a tag eases every prop wearing it. tween then <prop> ... runs after the chain so far, tween with <prop> ... alongside its last step, tween done <event> [section] runs when the chain ends, tween stop <prop|name|all> [end], tween play <prop> runs the tweens it carries, tween add <prop> <property> <amount> <secs> [curve] [once|loop|pingpong] [cue|play|with|after] [then <event>] gives it one to carry, tween clear <prop>, tween list, and tween <prop> reads it back. Read one in an if with tweening(<prop>). Example:
tween painting height by -120 0.8 OutBounce vehicle enter|exit|spawn|speed|stop|health|fuel|destroy|list ...- The map's vehicles, placed objects that name a vehicle type: enter <name> seats the player in it wherever she is, exit puts her out at the first clear place beside it, spawn <type> <name> <x> <y> [heading] or ... <name> at <place> makes one, speed <name|self> <n> sets its speed now (held to its limits), stop <name|self> stops it, health and fuel <name|self> [n] read or set them, destroy <name|self> takes it out, list names each with its type, place, speed and driver. In an On enter, On exit, On crash or On destroyed event, self is the vehicle the event is about. Example:
vehicle enter Car water place|depth|color|waves|del ...- Pools: place <x> <y> <w> <h>, depth <n> shallow|deep, color <n> RRGGBB, waves <n> <h> [i] [chop], del <n>. Example:
water place 900 500 400 300 weather [type] [density] [seconds]- Command the sky, not the map file: clear rain snow embers fog glitch clouds hail sand fair overcast, or a project's own weather.vfa pattern. A third number is how many seconds the change takes. Bare it reads the sky. Example:
weather rain 220 witness <deed> <party>- A party SEES you do a deed, and judges you for it. Example:
witness robbed_caravan marsh worldhere [party]- Whose ground this is: that party's opinion sets prices. Example:
worldhere marsh worldnews <on|off>- Let news travel between parties on its own. Example:
worldnews on xp <amount>- Grant experience the way a slain monster does: the learning stat, the difficulty, the class grants at each new level, and the heal. Bare it says her level and what is banked. It only grants: experience is never taken away. Example:
xp 250 zone place|event|walk|who|fog|del ...- Make the world act: place <x> <y> <w> <h>, event <zone> <event> (this RENAMES it), walk <zone> block|allow|none, who <zone> her|enemy|type <type>|tag <tag>|companion|anybody (who fires it; bare reads it back), fog <zone> <preset>|none [seconds], del <zone>. Example:
zone place 900 500 300 200
Danger
Enemies, companions, spells and the broods that keep coming.
behave <type> <profile>- Swap how an enemy type fights, live (behaviors.vfa: coward kiter ambusher guard berserk pack, or your own; none = plain). Example:
behave goblin_1 coward bestiary [type]- How many of an enemy type she has defeated; bare, every type in the Bestiary with its count. A condition reads the same number as defeated(<type>). Example:
bestiary Wolf cast <spell>- Cast a spell: the live battle if there is one, else the world. Example:
cast firebolt cooldown <who> [timer] [set|extend|reset|start|length] [secs]- A body's cooldowns: who is me, a companion's id (or party:<n>) or enemy:<n>; the timer is attack, global, dash, any word of a script's own, or item|spell|skill|group <id>. Bare it lists every running timer; with a timer it reads the seconds left; set and extend start it at or add to it, reset makes it ready, start runs it for the length a use would, length <secs> gives this body its own length for it (- removes it). cooldown def <item|spell|skill> <id> [secs <s> | formula <expression> | group <id>] changes what an entry's cooldown is, in memory, and bare reads it. Example:
cooldown me spell firebolt reset cure <condition|kind|all> [...]- Take conditions off the character: one by id, every one of a kind (dot, stun ...), or all. A need's condition stays until the need is met. Example:
cure poisoned dismiss <companion>- A companion leaves the party, their gear into the pockets. Example:
dismiss bryn effect <id> <rounds> [secs]- Apply a status effect to the character (effects.vfa). Example:
effect poisoned 3 enemydef <type> [key] [value]- An enemy type's stat block: hp, dice (NdM+K), attack (percent added to the damage of each blow it lands), defense (taken off each blow it takes, never below 1), ondeath (an event run where one dies, or none), onspawn (an event run each time one is made in play, or none), onhit (what a calm one does when the player attacks it: calm, fight, flee, or project for the project's choice), onnotice (an event run when one notices her, or none), noticewords (the line it says then in the dialog box, Speaker : words or words alone, or none), noticestyle (dialog, or say for the say line that does not stop play), noticepic (a picture beside them, or none), death (how one leaves when it dies: fall, vanish or burst), deathfx (the burst's effect from particles.vfa, or none for death_burst), desc (what the Bestiary says of the type, the rest of the line, or none), fame, xp, tier (regular elite legendary mythical boss), behavior, and how it fights at range: gun, gunspeed, weapon (items.vfa), melee, lead, mp, mpregen, skill / unskill (magic.vfa), and faction (a party id or none). Its senses: sight (px in full light), cone (degrees it sees the way it faces), darkness (percent of its sight the dark takes), hearing (px it hears a noise of loudness 1, through the nav), notice (seconds of plain sight before it gives chase), search (seconds it searches after losing her); off unsets one, and a type with none set senses as before. The next spawn wears it; savedata enemies keeps it. Bare it reads the row. Example:
enemydef goblin_1 hp 45 hide [on|off|<prop>]- Her hiding: hide reads it back; on hides her in the nearest hiding place in reach (a prop whose interact is hide), or where she stands; <prop> hides her in that prop; off lets her out. Hidden she is not drawn and does not move; an enemy that had her in sight as she went in comes and finds her, the others pass by. Example:
hide locker1 learnskill <skill>- Give the character a skill the way a class grant does: no point is spent and no prerequisite is asked. Learning one on the character sheet checks both. It says which of the three happened: bestowed, already had, or no such skill. Example:
learnskill power_strike learnspell <spell>- The character learns a spell (magic.vfa). Example:
learnspell firebolt need <need> <n|+n|-n>- Set or move one of the character's needs (hunger, thirst, tiredness, cold, heat), 0 to 100: +n adds, -n takes, n sets. Example:
need hunger +40 noise <x> <y> [loudness] | noise <prop|player> [loudness]- A noise the enemies with hearing can hear: at a place, or where a prop or she stands. Loudness 1 carries as far as an enemy's hearing reaches through the nav, 2 twice as far. Heard, it makes an unaware enemy go and look there. Every sound played at a place makes one too. Example:
noise 640 320 1.5 patrol <enemy> [add <dx> <dy> [wait]|wait <n> <secs>|point <n> <dx> <dy>|clear]- A placed enemy's patrol: a loop of up to eight points, each an offset from its post with a wait in seconds, walked while it suspects nothing. The enemy is a living one's index, a placed enemy's tag, or spawn<n> for the map's row n (its map row keeps the route). Bare it reads the route. Example:
patrol guard1 add 300 0 2 player hurt <n> [raw] | player kill | player respawn- Hurt her by an enemy blow's road, through her armour and her save (raw: straight off her health); fell her as a normal death; or send her back to the map's Player Start with her health and items kept. Example:
player hurt 20 race <id>- What the character was born as; its attribute gifts apply at once (races.vfa). Example:
race duergar recruit <companion>- A companion joins the party, or the reserve when the party is full (the Companions page). Example:
recruit bryn senses [<enemy>]- What the enemies sense: the light on her, whether she is hidden, and for each enemy its state (patrol, investigate, chase, search, return), suspicion 0..1, sight range in this light, which way it looks, and what it last sensed (sight, noise, told, touch), how long ago and where. An enemy by its index or its placed tag shows that one. A type senses this way once it has any of the enemydef keys sight, cone, darkness, hearing, notice or search. Scripts answer its changes with after suspicious, noticed, lost, searching, gaveup and found(text enemy, number index, number x, number y). Example:
senses slay <type|all>- Every living enemy of a type (or all) dies the whole death: spoils, experience, the [killed] event. Example:
slay goblin_1 spawn <type> <x> <y>- Spawn an enemy at a spot. Example:
spawn goblin_1 900 500 spawner place|rate|elite|flag|del ...- Broods that keep a map dangerous: place <x> <y> <w> <h> <types>, rate <n> <secs> [atonce], elite <n> <pct>, flag <n> <name>|- (breeds only while that flag is set), if <n> <reading>|- (only while the reading is true), inside <n> on|off (only while the player is inside it), killable <n> on|off (whether its brood can be hurt), stats <n> hp|attack|defense|xp <number>|- (its brood's own Health, Attack, Defense or Experience, - for the type's), del <n>. Example:
spawner place 900 500 400 400 goblin_1 spawnpoint place|del ...- The map's painted spawn points: place <type> <x> <y> [party], del <n>. 'spawn' puts one there now; this is where they come back. Example:
spawnpoint place goblin_1 900 500 stat <attribute> <n|+n|-n>- Set or adjust one of the character's attributes (attributes.vfa). Example:
stat might +2 tension [add <amount>|backstage [enemy|-] [seconds]|nudge [enemy]|set <setting> <value>]- The tension director, once Project Settings > Project > Tension has it on: one tension value 0 to 1 from the hunters (enemies whose type has senses keys), by how near each is, whether it sees her, how far its path to her is and its state (chase most, then search, investigate, return), plus scares. Bare it reads the value, its parts, the director's state (build, peak, relax, quiet) and each hunter. add <amount> is a scare that fades at the fall rate; backstage sends a hunter away (the pressing one, or an enemy by index, placed tag or type) for its seconds; nudge sends a hunter on its route to look about a place near her. set <setting> <value> changes on rise fall reach high highfor away low lowfor hint music pacing (and the weights near sight path state) for this game, or the project's in the editor. Scripts answer with before and after backstage and nudge(text enemy, number index, number x, number y, number tension, toggle forced). Example:
tension add 0.3
Things
What she carries, finds, forges, crafts and saves.
chest [rarity|<table>]- Once-ever treasure; remembers being opened. Example:
chest chest container <id>- Open a container (assets/data/containers/<id>.vfa) in its Take and Store window: the contents every script opening that id shares. Example:
container town_stash craft [station]- Open the crafting bench, filtered to a station. Example:
craft forge currency <id> [amount]- Add to a currency from Project Settings > Currencies; a negative takes it, never below 0 or past its cap. Bare it says how much she holds. Example:
currency tokens 5 equip <item>- Wear an item she is carrying on its own slot; what was worn goes back into the pockets. Bare it lists what is worn. Example:
equip iron_sword give <item> [count]- Put an item in the player's pockets; the count is a number, a variable or a reading such as defeated(wolf). Example:
give iron_sword 1 gold <amount>- Grant coin; a negative takes it, and taking more than she has is refused and takes nothing. Example:
gold 25 heal <amount or percent%>- Mend the player by a number, or by a percent of her full health: heal 100% mends her whole (never kills outright). Example:
heal 20 loot [normal|magic|rare|<table>]- Forge a reward, or roll a loot.vfa table. Example:
loot magic make <recipe>- Craft a recipe instantly, no window. Example:
make torch market <region|here> <item|type> [percent|-]- A region's price rate for an item or an item type, in place of the Economy page's (100 = the item's own price); - puts the page's back. Rides the save. Example:
market highlands weapon 140 price <region|here> <item> [amount|-]- Hold an item's market price in a region of the Economy page at amount (the main currency), before each merchant's markup and her haggling; - lets the region work it out again. Bare it reads the price there. Rides the save. Example:
price harbour wolf_pelt 30 repair- Mend every worn and carried piece (the smith's verb).
route <id> [on|off|send]- A trade route of the Economy page: off cuts it (a caravan on the road never arrives, and the goods it brought run short), on opens it again with a caravan leaving now, send starts a caravan now. Bare it reads the route. Example:
route north_furs off savepoint- Save the game here (the shrine's verb; the only way to save when saving is At Save Points).
supply <region|here> <item> [n|+n|-n]- A region's supply of an item, a percent of normal: a bare number sets it, a sign moves it. Low supply raises the price, high supply lowers it, and it returns to its rest supply with the days. Bare it reads it. Example:
supply harbour wolf_pelt -40 take <item> [count]- Take items out of the player's pockets: all or nothing, and it says so when she is short. Example:
take iron_key 1 unequip <slot|item>- Take off what is worn on weapon head chest legs feet or trinket (or name the item) and pocket it. Example:
unequip head useitem <item>- She uses one of an item from her pockets, as a click on it does: its heal and its use list run (a key item is not used up), and its cooldown (its own, its group's, the global one) must be ready. Example:
useitem health_tonic
Who she is
Attributes, skills, classes and levels.
class <id>|none- Set the character's class; it gates which spell books she may cast. Example:
class warden level [n]- Carry the character up to level n through the same level-up a slain monster gives (points, class grants, the heal). Levels only climb. Bare it reads level and xp. Example:
level 5 mp [n|+n|-n]- The character's spell points: a sign adjusts, a bare number sets, never past the pool. Bare it reads them. Example:
mp +10 partyhp <who> [n|+n|-n]- A companion's health, 0 to their maximum: a sign adjusts, a bare number sets, 0 downs them. Bare it reads it. Example:
partyhp mira 0 partylevel <who> [n]- Carry a companion up to level n through the same level-up path (points, class grants, bar growth, the heal). Levels only climb. Bare it reads their level and xp. Example:
partylevel mira 4 partypoints <who> [n|+n|-n]- A companion's unspent points: a sign adjusts, a bare number sets. Bare it reads them. Example:
partypoints mira +2 partyxp [who|all] [amount | set <n>]- A companion's experience (who = a party.vfa id or an index from 0): an amount grants it through the level-up path hers takes (their learning score, the difficulty, points per level, their class's grants, bar growth); set <n> sets what is banked. Bare it reads every companion's level, xp and points. Example:
partyxp mira 200 points [n|+n|-n]- Unspent skill points: a sign adjusts, a bare number sets. Bare it reads them. Example:
points +2
The machine
Keys, the interface, assets and the end of the story.
achievement <name>- Unlock a Steam achievement by its API name (a Steam game; nothing without Steam). Example:
achievement ACH_WIN_ONE_GAME action [add|anim|event|label|del] <word> ...- The game's actions, custom ones included: action add dance Dance G - pad_y makes one (it appears in the Controls screens at once), action anim dance wave 1.2 plays a clip on the player when it is pressed, action event dance emotes use runs a Run section, action sound dance cheer.wav plays a sound (or a moment of the player's sound set: action sound dance select), action label, action del; action <word> reads it back. Read one in an if with held(<word>) or pressed(<word>). savedata binds writes them to input.vdt. Example:
action add dance Dance G asset <types|new|list|prop|comp|collide|use|open> ...- The asset documents: 'asset types' lists what the registry knows, 'asset new <type> <path>' makes one, 'asset list <path>' prints its component tree, 'asset prop <path> <key> [value]' and 'asset comp <path> set <n> <field> <value>' name any field on it, 'asset comp <path> add|del|parent|attach|name' shape the tree, 'asset collide <path> box|sphere|capsule|hull|parts [n]|remove' fits collision to its model, 'asset use <path>' makes it the player, 'asset open <path>' opens it in the asset manager. Example:
asset comp assets/characters/hero.vfa set 1 arm 420 bind <action> [key|pad] [slot]- The game's default keys: bind attack F, bind attack SPACE 1, bind jump pad_a 2 (slots 0 and 1 are keys, 2 and 3 the pad), bind reset. With no key it reads the binding back; savedata binds writes them. Example:
bind attack F classdef <id> [name|<key> <v>]- AUTHOR a class: classdef <id> <Name> makes one, then name, blurb, book <Book>, nobook <Book>, at <level> spell|skill|flag|points|attr|item <key> [n]. Every line is idempotent, because a run file is re-run by definition. In memory; savedata classes writes it. Example:
classdef warden Warden credits- Roll the credits (no completion mark).
dxr [terrain]- What this card can do about ray tracing: creates a D3D12 device on the SAME adapter the game draws with (matched by LUID), asks its raytracing tier, releases it, and says so. 'dxr terrain' goes further and builds a real BLAS and TLAS over the triangles 'terrain mesh build' made from the heightfield, reports the prebuild bytes and the build time, and releases every object before it returns. Nothing is kept either way, and a card that cannot trace is a correct answer, not a failure. Example:
dxr terrain effectdef <id> <type> <amount>- AUTHOR a condition: effectdef <id> <type> <amount> makes one. The types are dot, hot, stat, armor, stun, tohit, speed, shield, dmgmul, takemul, silence, mp, thorns, confuse. Then amount, type, stat <attr|none>, period <secs>, label <words>. In memory; savedata effects writes it. Example:
effectdef hollowrot dot 4 endgame- End the game: the project's ending plays (Project Settings > Ending): its scene, the credits, then the title, play or quit.
gamedone- The saga ends: the same ending as endgame.
itemdef <id> [name|<key> <v>]- AUTHOR an item: itemdef <id> <Name> makes one, then itemdef <id> <key> <value> for name, price, heal and every key items.vfa takes: slot, type, dmg, armor, damage <lo-hi>, dice, icon, spd, range, sound, muzzlefx, trailfx, impactfx, pellets, spread, dura, unique, tier, grade, and any attribute or bar by its own key. In memory; savedata items writes it. Example:
itemdef emberblade Ember_Blade lootdef <table> [roll...]- AUTHOR a treasure table: lootdef <table> makes or finds one, then gear <weight> [rarity] [slot], item <weight> <id> [min-max], gold <weight> <min-max>, or clear to empty it for a rebuild. An identical roll twice is one roll. In memory; savedata loot writes it. Example:
lootdef hollow_chest gold 10 5-40 materialdef <name> [key v]...- AUTHOR a material, the shelf a game's look hangs on: emissive <0-100>, bright <0-200>, tint <RRGGBB>, and the flags unlit, noink, nostyle (lit, ink, style clear one). A second line EDITS rather than resets, unlike the file, where a duplicate is ignored. Bind art to it with the material verb. In memory; savedata materials writes it. Example:
materialdef torch emissive 70 tint FFC080 options [section]- Open the player settings menu over the game: options, or options audio|video|controls|gamepad. Example:
options video playerbind <action> [key|pad|reset] [slot]- The PLAYER's own binding, kept in their settings.cfg over the game's default: playerbind attack G, playerbind jump pad_y 2, playerbind attack reset. A key another action holds swaps onto that action. Example:
playerbind attack G questdef <id> [Name|<key> ...]- AUTHOR a quest: questdef <id> <Name> makes one, then name, start <flag>, stage <flag> <objective>, count <stageflag> <n> <kill|buy|sell|interact> [detail], reward <run verb>, desc <text> (the journal's description), fail <flag> (the flag that fails it). A quest's whole state is its flags, so nothing here is runtime state. Stages are idempotent by flag. In memory; savedata quests writes it. Example:
questdef hollow The_Hollow_Road racedef <id> [Name|<key> <v>]- AUTHOR a people: racedef <id> <Name> makes one, then name, blurb, attr <key> <n> (six), size, vision, speed, lifespan, trait <text> (eight). Absent is EMPTY, never invented: adding to a project that had no races.vfa makes one holding exactly that race. In memory; savedata races writes it. Example:
racedef hollowborn Hollowborn rumble <low> <high> <secs>- Shake the pad: each motor 0 to 1 for a number of seconds, scaled by the player's Vibration. Example:
rumble 0.4 0.8 0.3 runtypes- Re-read the project's own Run types and prefabs (assets/run/*.run) and say what came back.
savedata <table>- Write an authored table to disk: items, itemtypes (only the types that differ from or add to the built-in ones), loot, quests, spells, classes, skills, attributes, effects, materials, races, sounds (the voices), tuning (movement and every gameplay number), binds (the keys, pad buttons and custom actions), factions, curves, particles, enemies (the enemy types' stat blocks) or schedules (the villagers' days). Refuses inside a shipped game, the way savemap does, because a player's copy does not rewrite its author's tables. Saving replaces the whole file, comments included: the table is written from what the game holds, so notes typed into the file by hand are lost. Keep notes elsewhere if a script will save the table. A project that uses the engine's copy of a table gets its own copy the first time it saves one, and from then on the engine's later changes to that table no longer reach it. Example:
savedata spells setting [<key> [value|+|-|reset]]- The player's settings: setting lists every key, setting master reads it, setting master 60 sets it (saved at once), + and - step it, reset gives it back to the game's default; setting reset audio|video|controls|gamepad resets a section; setting apply|keep|revert the menu's pending display rows; setting hide|show <key|section>, setting default <key> <value>|none and setting uiclick <wav>|- are the project's menu. Read one in an if with setting(<key>). Example:
setting master 60 skilldef <id> <tree> <t> <c> <L>- AUTHOR a skill: skilldef <id> <tree> <tier> <cost> <Label>. Then label, cost, tier, requires <id>, attr <key> <n>, bar <key> <n>, dmg <n>, armor <n>, crit <n>. Setting the same effect twice replaces it, and re-making an existing skill updates it, since a run file is re-run by definition. In memory; savedata skills writes it. Example:
skilldef kindling woodcraft 1 1 Kindling skilltree <id> [Label] [cur]- AUTHOR a skill tree: skilltree woodcraft Woodcraft, or skilltree deeds Deeds fame for one spent in fame rather than points. Bare id reads one back. A skill needs its tree planted first. Example:
skilltree woodcraft Woodcraft spelldef <id> [name|<key> <v>]- AUTHOR a spell: spelldef <id> <Name> makes one, then spelldef <id> <key> <value> for any key magic.vfa takes: book, element, cost, range, speed, power, type, target, stat, class, level, skill, reqstat, effect, fx, sound, damage, heal, save, onsave, dc, concentration, area, areahits, actcost. In memory; savedata spells writes it. Example:
spelldef emberbolt Ember_Bolt statdef attr|bar|levelup|companionxp|role ...- AUTHOR the character's own numbers: statdef attr <key> <Label> <start>, statdef bar <key> <Label> <max> <perlevel> <RRGGBB>, statdef levelup <points>, statdef companionxp <present_standing|alongside|fixed|custom> [share%] [script.Function|none] (bare reads it), statdef role <damage|health|speed|crits|learning|prices> <attrkey>. A key that already exists is UPDATED in place, keeping its position. Bar 0 is always health and items index bars by position, so adding never reorders. In memory; savedata attributes writes it. Example:
statdef attr grit Grit 8 steamstat <name> <value>- Set a Steam stat by its API name and store it (a Steam game; nothing without Steam). Example:
steamstat NumGames 3 uiel <screen> [<n|name>] [field] [v]- The UI, one element at a time: uiel <screen> lists them, uiel <screen> <n|name> describes one, and uiel <screen> <n|name> <field> <value> sets text, color, move <ox> <oy>, size <w> <h>, anchor <0-8>, font <px>, link, art, bind <key> [idx], type, name (the handle a script calls it by, - clears it), hide, show or del. uiel <screen> add <type> [anchor] [ox] [oy] [w] [h] MAKES one; uiel <screen> save writes the screen back to its document and refuses in a shipped game. A named element survives an insert; an index does not. Example:
uiel title 0 name start uihide- Take off whatever UI screen is worn, and close the game screens.
uishow <screen>- Wear a painted UI screen over the world; a game screen's word (inventory, character, skills, magic, quests, journal, crafting, party, notes) no screen paints opens that game screen. Example:
uishow inventory uitoggle <screen>- Wear a UI screen, or take it off if it is already on; a game screen's word no screen paints opens or closes that game screen. Example:
uitoggle journal
Sound
audio <play|start|stop|fade|loop|muffle|attach|detach|emitter|track|stem|curve|tension|duck|muffling|reverb|list> ...- Sounds by name or tag: play, start a prop's loop or a tagged emitter, stop, fade and loop any of them; layered music following a tension value; voices ducking the rest; reverb zones; muffling through walls. Example:
audio play radio radio.wav loop on radio1 fade 2 music <file> [vol]- Switch the music (crossfades; bare names in assets/audio). Example:
music storm_theme.wav 0.5 randomsound [add|here|del|clear] ...- The map's random sounds: an emitter plays one of its sounds at random, between min and max seconds apart, while the player is within its range (birds, creaks, distant thunder). add <x> <y> <radius> <min> <max> <vol> <sound> [sound...], here puts it at the player, del <n>, clear; bare lists them. Saved with the map. Example:
randomsound here 600 4 12 0.8 bird1.wav bird2.wav sound <wav> [tag <name>] [once]- Play a one-shot sound (bare names in assets/audio); once skips it while that sound is still playing; tag names it, and soundtag_playing(name) is 1 while any sound of that tag plays. Example:
sound door_creak.wav once soundat <wav> <x y|who> [vol]- Play a sound at a place in the world, louder near the listener and panned to its side: at x y, or on a character by name. Example:
soundat creak.wav elder sounddef <set> [<moment> <wav>..]- AUTHOR a voice: sounddef <set> makes or finds one, then <moment> <wav> [wav]... The moments are notice, attack, hurt, death, step, idle, select, jump (aggro, swing, hit_taken, die, footstep, flavor, preview, hop also parse). Up to twelve variants, one plays at random; setting a moment REPLACES its list, and none silences it. A missing wav plays as silence, so a set can be written before its recordings exist. In memory; savedata sounds writes it. Example:
sounddef hollow_voice hurt hurt1.wav hurt2.wav voice <who> <moment>- A character speaks one moment of its sound set where it stands: a placed NPC's tag or kind, a companion, an enemy's kind, or player. The moments are notice, attack, hurt, death, step, idle, select. Example:
voice elder notice
Scenes
Fades, titles, the camera and time itself.
camera pan <x> <y> [secs] | follow | zoom <mult> [secs]- Move the play view: pan to a place, give it back to the character, or zoom to a multiple of the authored zoom. Example:
camera pan 400 320 1.5 cineclear- Clear all cinematic text and cards.
cinetext <style> <words>- Styled cinematic text: type/scroll/wobble/fade/static. Example:
cinetext type The storm came. eagle <on|off>- Eagle eye: drain the world, mark the living. Example:
eagle on fade <in|out|0-1> [secs]- Fade the screen. Example:
fade out 2 flash <img> [secs]- Cover the screen with art for a moment. Example:
flash scare.png 0.7 followcam [<word> <value>|orbit <heading> [pitch]|behind]- A 3D project's play camera, the player character's camera component: view behind|eyes, height, side, pitch, pitchmin, pitchmax (degrees), look hold|free, turn, collide on|off, probe, fov, turnlag (seconds), arm, lag, lagmax, yaw (her heading at the start). A word set here holds until the character is worn again (- unsets it); the character document's camera component keeps it. orbit points the live camera, behind swings it behind her. Bare it reads every word and the live camera. Example:
followcam pitchmax 60 letterbox <on|off>- Cinema bars on or off. Example:
letterbox on rewind <on|off>- Hold time backwards; off commits to where you let go. Example:
rewind on shake [secs] [amp]- Lurch the screen (hits stack; or 'shake trauma 0..1 [amp]'). Example:
shake 0.6 14 timescale [mult] [rampSecs]- Slow-mo / speed-up: 0 freezes, 1 is normal, 8 is the cap. Example:
timescale 0.25 0.2 title <words>- A big centered title card. Example:
title VAKA video <file> [skip]- Play a clip full screen and hold the script until it ends; skip lets Escape, Enter or a click end it (bare names in assets/video; VP9 or AV1 in WebM). Example:
video intro.webm skip
Engine objects
The methods of the engine's objects, 335 of them on 26 objects, read from the interpreter's own table: a call the table does not hold, or with a count of arguments its signature does not take, is refused by the checker and by the run. Rûn Programs tells how a program calls them.
Terrain
Terrain.Generate()- Build the floor from .preset and .seed.
Terrain.RandomFloor()- A random standable point on the current floor.
Sound
Sound.Play([volume])- Play the clip named by .path.
Water
Water.Place()- Lay water from .x .y .w .h .depth and the wave fields.
Water.Count()- How many lakes and rivers the map holds.
Water.Bodies()- Every lake and river's name, in the Outliner's order.
Water.Find(body)- A lake or river as an object: .name .kind .liquid .speed .intensity .level .texels .litres .course .from .into; false for none.
Water.At(x, y)- The name of the body whose water stands at a world point, "" for none.
Water.Kind(body)- "lake" or "river".
Water.Rename(body, name)- Give a body the name the Outliner shows.
Water.Liquid(body)- The stem of the liquid it holds, "" for the map's own water.
Water.SetLiquid(body, liquid)- Hold a liquid (Liquid.List() names them), "" for the map's own; a river of a carved course takes it downstream.
Water.Direction(body)- Which way a river runs, as its page says it; "" for a lake.
Water.Reverse(body)- The River tool's river carved again the other way; its name after.
Water.Speed(body)- How fast its surface runs downstream, world units a second (its Flow Speed).
Water.SetSpeed(body, speed)- Set its Flow Speed, 0 to 300.
Water.Intensity(body)- Its white water, 0 to 1 (its Foam).
Water.SetIntensity(body, intensity)- Set its Foam, 0 to 1.
Water.Get(body, property)- Any property of a body (Water.Properties() lists them).
Water.Set(body, property, value)- Set a dial (flow waveshare wavedir wavespeed waveheight foam clarity rain evaporation capacity), its liquid or its name.
Water.ClearDials(body)- Every dial of a body back to its liquid's.
Water.Properties()- Every property a body has.
Water.Level(body)- The height of its surface where it stands deepest, as its page measures it.
Water.Texels(body)- How many field texels its water covers, as its page measures it.
Water.Litres(body)- How much water it holds, as its page measures it (a few frames behind the flow).
Water.Course(body)- The carved course a river was made of, 0 for none.
Water.From(body)- The body a river sets out from, "" for none.
Water.Into(body)- The body a river runs into, "" for none.
Water.Census()- Count every body's water now; how many bodies.
Water.Remove(body [, "drain"])- Take a body out of the map; with "drain" its water goes too.
Water.Spring(x, y, litres [, radius])- A spring at a world point, litres a second (under 0 it drains), kept with the map; its number.
Water.Pour(x, y, litres [, rate [, radius]])- Pour litres at a world point, rate litres a second, then stop; its number.
Water.Springs()- How many springs, drains and pours run now.
Water.RainAmount()- The project's Rain Amount: how much water the rain brings, 1 as the weather says, under 0 a drought.
Water.SetRainAmount(amount)- Set the project's Rain Amount, -4 to 10 (0: rain moves no water; under 0: a drought); kept in game.vdc.
Water.Total()- The litres on land in the flow's window now, read from the card; -1 while no water is stepped.
Water.SpringNear(x, y)- The number of the spring nearest a world point, -1 for none.
Water.SpringGet(index, property)- A spring's x, y, litres, radius or left (a pour's litres still to come, -1 for a spring).
Water.SetSpring(index, litres)- Change a spring's litres a second.
Water.RemoveSpring(index)- Stop a spring and take it out of the map; the numbers after it move down one.
Water.AddRapid(body, from, to [, roughness [, speed [, foam]]])- A rapid on a river from and to metres below where its own water starts; roughness 0 to 1 (0.6), speed times its Flow Speed (1.6), foam 0 to 1 (0.5); its number.
Water.RemoveRapid(body, n)- Take a river's rapid n out; the numbers after it move down one.
Water.Rapids(body)- How many rapids a river holds.
Water.RapidGet(body, n, key)- Rapid n's from, to, roughness, speed or foam.
Water.RapidSet(body, n, key, value)- Set rapid n's from, to, roughness, speed or foam.
Liquid
Liquid.List()- Every liquid's name: the engine's, then the project's own.
Liquid.Find(liquid)- A liquid's stem from its name or stem, "" for none.
Liquid.Define(name, shallow, deep [, cloudiness [, thickness [, density]]])- A liquid of the project's own: its colours (RRGGBB) where shallow and deep, cloudiness 0 to 1, thickness (viscosity, 0 to 400), density (water 1); saved as assets/liquids/<stem>.vfa; its stem.
Liquid.Set(liquid, property, value)- Set a property of a liquid of the project's own and save it (Liquid.Properties() lists them).
Liquid.Get(liquid, property)- A liquid's property.
Liquid.Properties()- Every property a liquid has.
Liquid.Engine(liquid)- Is it one of the engine's own, which a script cannot change?
Needs
Needs.On([need])- Does this project have needs, or is this need on? (hunger, thirst, tiredness, cold, heat).
Needs.Value(need)- The need now, 0 to 100 (100 = met).
Needs.Set(need, value)- Set a need, 0 to 100.
Needs.Add(need, amount)- Give back (plus) or take (minus); returns what moved.
Light
Light.Apply()- Push .ambient into the scene.
Light.Group(group, action [, level [, seconds]])- Every light in a group at once: on, off, dim level, flicker speed [regularity], fade level seconds.
Light.GroupLevel(group)- A light group's level now, 0 to 1, its flicker left out.
Light.Player(field [, value])- Her own light: radius height intensity colour flicker regularity; with a value it is set, and in play it holds for the rest of that play over her character's Light component.
Time
Time.Scale(rate [, blend])- Run the clock faster or slower.
Time.Stop([blend])- Hold time still.
Time.Resume([blend])- Let time run again.
Sky
Sky.SetHour(hour)- Move the sun to an hour of the day.
Sky.Set(property, value)- Set a sky or cloud property (Sky.Properties() lists them).
Sky.Get(property)- A sky or cloud property's value.
Sky.Properties()- Every sky and cloud property.
Sky.Bodies()- How many suns and moons the sky holds.
Sky.AddBody("sun"|"moon")- A new body; its index.
Sky.RemoveBody(index)- Take a body out of the sky.
Sky.BodySet(index, property, value)- Set a body's property (Sky.BodyProperties() lists them).
Sky.BodyGet(index, property)- A body's property's value.
Sky.BodyProperties()- Every property a body has.
Sky.Constellations()- How many constellations the sky holds.
Sky.AddConstellation(name)- A new constellation; its index.
Sky.RemoveConstellation(name)- Take a constellation out of the sky.
Sky.AddStar(constellation, az, el [, brightness])- Place a star in a constellation, in degrees.
Sky.Use(sky)- Wear a sky document (a name in assets/skies, or a path).
Sky.Asset()- The sky document being worn.
Sky.Save()- Write the sky as it stands into its document.
Sky.Preset(layer, name)- Give cloud layer 1 or 2 a whole look (Sky.Presets() lists them).
Sky.Presets()- Every cloud preset's name.
Weather
Weather.Set(type [, density])- Clear rain snow embers fog glitch clouds hail sand.
Weather.Clear()- Back to clear sky.
Weather.Change(type, seconds [, density])- Change the weather over that many seconds: the clouds build or clear, the rain follows.
Weather.Progress()- How far through a change of weather the sky is, 0 to 1.
Weather.Now()- The weather the sky is under, or on its way to.
Weather.ChangeTime(seconds)- How long a change of weather takes on this map.
Weather.Cycle("on"|"off"|"restart")- Run, stop or begin again the map's weather cycle.
World
World.Fire(event [, section])- Run a world event by name (a section, or its use).
World.FlagSet(name)- Raise a story flag.
World.FlagClear(name)- Lower a story flag.
World.Flag(name)- Is that flag raised?
World.Hit(shape, x, y, size, amount [, type])- Strike foes through the attack's own road: arc ahead of her from x y, circle round x y, ray ahead; the damage hook hears it; how many. Play only.
World.Enemy(index)- One foe as an object: .x .y .hp .maxHp .type .alive.
World.EnemyCount()- How many foes World.Enemy reads, living or not.
World.SpawnEnemy(type, x, y)- An enemy of a baked type at a place.
World.Enemies([type])- How many enemies are alive (of a type, or all).
World.Slay(type)- Every living enemy of a type (or "all") dies. Play only.
World.EnemyDef(type, key, value)- Set an enemy type's hp dice fame xp tier behavior.
World.Noise(x, y [, loudness])- A noise enemies with hearing hear at a place; 1 carries as far as their hearing. Play only.
World.Tune(key)- A tuning dial's live value: jump_buffer coyote_time hop_buffer walk_speed ...
World.SetTune(key, value)- Set a tuning dial for this session (game load reads the file back).
Camera
Camera.PanTo(x, y [, seconds])- Glide the view to a place. Play only.
Camera.Follow()- Give the view back to the character. Play only.
Camera.Zoom(mult [, seconds])- A multiple of the authored zoom; 1 is home. Play only.
Camera.Shake([hard [, secs]])- Knock the view about. Play only.
Player
Player.Give(item [, count])- Put items in her pockets. Play only.
Player.Take(item [, count])- Take items from her pockets, all or nothing. Play only.
Player.Count(item)- How many of an item she carries.
Player.Equip(item)- Wear an item she carries. Play only.
Player.Unequip(slot)- Take off weapon head chest legs feet trinket. Play only.
Player.GrantXP(amount)- Experience, the road a slain monster uses. Play only.
Player.LevelTo(level)- Level up to a level; levels only climb. Play only.
Player.LearnSpell(spell)- She learns a spell from magic.vfa. Play only.
Player.Knows(spell)- Does she know that spell?
Player.LearnSkill(skill)- Bestow a skill: no point spent, no prerequisite. Play only.
Player.HasSkill(skill)- Has she learned that skill?
Player.Cast(spell)- Cast: the battle if there is one, else the world. Play only.
Player.Stat(attribute)- An attribute's total, everything that adds included.
Player.SetStat(attribute, n)- Set an attribute; "+2" or "-2" adjusts. Play only.
Player.Heal(amount)- Mend her (never kills outright). Play only.
Player.Effect(id, rounds [, secs])- A status effect from effects.vfa. Play only.
Player.SetClass(class)- Her class, or "none". Play only.
Player.SetRace(race)- Her race, or "" for none. Play only.
Player.Quest(quest, stage)- Finish a stage of a quest. Play only.
Player.QuestStage(quest)- How many stages of a quest are done.
Player.Teleport(x, y)- Put her somewhere. Play only.
Player.Currency(currency)- How much of a currency she holds (Project Settings > Currencies).
Player.AddCurrency(currency, amount)- Add to a currency; a negative takes, never below 0 or past its cap. Play only.
Player.Move(dx, dy)- Her walk's step at her next tick, colliding and sliding as her walk does (the side view takes dx). Play only.
Player.Preset(preset [, on])- Walk jump attack dodge interact: is that preset on, or switch it for this play. Play only.
Player.Nearest([what])- What the interact key would take now: its name ("" none), or with "type" its type. Play only.
Input
Input.Held(action)- Is the action's key down? up down left right jump attack roll interact ... or a custom action's word.
Input.Pressed(action)- Did it go down this frame?
Input.Released(action)- Did it come up this frame?
Tiles
Tiles.Get(x, y [, layer])- The tile in a cell, its number in its tileset; -1 = empty.
Tiles.Set(x, y, index [, layer [, tileset]])- Put a tile in a cell, -1 empties it; the tileset is the cell's own, else the map's first. Play only.
Tiles.Break(x, y [, layer])- Break the tile in a cell: the break effect, terrain neighbours re-pick, tilebreak is raised. Play only.
Tiles.Move(x, y, dx, dy [, layer])- Slide the tile to the cell dx dy away when that cell is free; tilepush is raised. Play only.
Tiles.Is(x, y, flag [, layer])- Does the cell's tile carry the flag: solid climbable moveable breakable.
Tiles.Cell(n [, layer])- The column or row a world x or y falls in.
Tiles.Size([layer])- A layer's cell in world units.
Tiles.Layers()- How many tile layers the map has.
Party
Party.Count()- How many companions travel with her.
Party.Id(index)- A companion's id, 0 = the first.
Party.Level(who)- A companion's level.
Party.XP(who)- Experience banked toward their next level.
Party.XPNext(who)- Experience their next level wants.
Party.Points(who)- Their unspent points.
Party.HP(who)- Their health; 0 = downed.
Party.GrantXP(who, amount)- Experience to one companion (or "all"), through the level-up path. Play only.
Party.SetXP(who, amount)- Set what is banked; enough for a level levels them. Play only.
Party.LevelTo(who, level)- Level a companion up to a level; levels only climb. Play only.
Party.SetPoints(who, n)- Set their unspent points; "+2" or "-2" adjusts. Play only.
Party.SetHP(who, n)- Set their health, 0 to their maximum; 0 downs them. Play only.
Party.Control(who)- Who plays their d20 turns: "player" or "ai".
Party.SetControl(who, way)- Who plays their d20 turns from now: "player", "ai" or "project" (the Party control rule). Play only.
Faction
Faction.Count()- How many parties the factions data holds (the player is one).
Faction.Id(index)- A party's id, 0 = the player's own.
Faction.Name(party)- A party's display name.
Faction.Standing(party)- What a party thinks of her: esteem minus grievance.
Faction.Rung(party)- The name of the rung she stands on in that party's ladder, "" = no ladder.
Faction.Esteem(party)- A party's esteem for her.
Faction.Grievance(party)- A party's grievance with her.
Faction.Regard(holder, about)- What one party thinks of another, esteem minus grievance.
Faction.Member(party)- Does she belong to that party?
Faction.Rank(party)- Her rank there, 0 = not a member.
Faction.RankName(party [, n])- The name of her rank there, or of rank n.
Faction.Ranks(party)- How many ranks the party has.
Faction.CanJoin(party)- "" when she may join, else the reason why not.
Faction.Hears(from, to)- How fast word travels from one party to another, 0..100.
Faction.News()- Does word travel between parties on its own?
Faction.Of(who)- The party a placed character (tag or kind) or an enemy kind belongs to, "" = none.
Faction.SetOf(who, party)- Put a placed character or an enemy kind in a party ("none" = none).
Faction.Peaceful(party)- Do its members leave her alone right now (its peace line)?
Faction.Field(party, key)- A party's own field (a component's), "" = unset.
Faction.SetField(party, key, value)- Set a party's own field; "" removes it.
Faction.Word(key)- The project's word for esteem, grievance, standing, rank ...
Faction.Event()- In a component's hook: heard standing joined left rank.
Faction.EventParty()- In a component's hook: the party it is about.
Faction.EventDeed()- In a component's hook: the deed, "" when none.
Faction.EventValue()- In a component's hook: the standing, the rank, or the actor party.
Faction.Witness(deed, party)- A party sees her do a deed and judges it. Play only.
Faction.Rumour(deed, party)- A party believes she did a deed; it is not true. Play only.
Faction.Set(party, esteem, grievance)- Set a party's view of her outright. Play only.
Faction.Join(party)- She joins, if the party takes her. Play only.
Faction.Leave(party)- She leaves a party. Play only.
Faction.Promote(party)- She rises one rank. Play only.
Faction.Demote(party)- She falls one rank, never below the first. Play only.
Faction.SetRank(party, n)- Her rank outright, no gate; 0 leaves. Play only.
RandomEvents
RandomEvents.Fire(trigger)- Ask a trigger now (or every called trigger with that name); the events drawn. Play only.
RandomEvents.Draw(table)- Draw from a table now, obeying every rule; the events drawn. Play only.
RandomEvents.Run(event)- Run an event past its conditions, cooldown and limits. Play only.
RandomEvents.Try(event)- Run an event only if it can happen now. Play only.
RandomEvents.FollowUp(event, delay [, unit])- Try an event later: seconds, minutes, hours or days. Play only.
RandomEvents.Cancel(event)- Drop an event's waiting runs and follow-ups; how many.
RandomEvents.Can(event)- "" when it can happen now, else the reason.
RandomEvents.Why(id)- An event's conditions with their values, or a trigger's or table's last result.
RandomEvents.Count(event)- The times it has run this game.
RandomEvents.Since(event)- Game hours since it last ran, -1 never.
RandomEvents.Last(table)- The last event a table drew.
RandomEvents.On(id)- Is the trigger, table, entry, event or group enabled?
RandomEvents.Enable(id)- Switch a trigger, table, entry, event or group on.
RandomEvents.Disable(id)- Switch it off.
RandomEvents.Get(id, field)- Any field of any row, as text.
RandomEvents.Set(id, field, value)- Change any field of any row for this game (saved).
RandomEvents.SetWeight(table, event, weight)- An event's weight in a table; adds the entry when it has none.
RandomEvents.SetCooldown(event, n [, unit])- An event's cooldown.
RandomEvents.Reset(event)- Its count and last time cleared, its row as authored.
RandomEvents.Create(type, id [, copyOf])- A new trigger, table, entry, event, outcome or group for this game (saved).
RandomEvents.Pacing()- The pacing meter now.
RandomEvents.AddPacing(n)- Raise or lower the pacing meter.
RandomEvents.Pause([on])- Hold every trigger (off lets them ask again).
RandomEvents.Paused()- Are the triggers held?
RandomEvents.Pending()- Events waiting to run plus follow-ups.
RandomEvents.Seed()- The generator's state.
Look
Look.Use(look [, seconds])- Switch to a look, blending over the seconds.
Look.Release([seconds])- Back to the level's own looks.
Look.Set(option, value [, seconds])- Set any component option ("outline.width", "hatch" for its on), easing over the seconds.
Look.Get(option)- An option's value in effect now.
Look.Clear([option])- Drop Look.Set's hold on an option, or on all of them.
Look.Name()- The look with the most weight here.
Look.Key(option, hour, value)- An option follows the time of day: a value at an hour.
Look.ClearKeys([option])- Drop Look.Key's keys.
Look.MapDefault(map, look)- A map's own look, over its Look objects ("level" gives it back).
Look.Enable(object)- Switch a Look object of this level on.
Look.Disable(object)- ...and off.
Look.Objects()- How many Look objects this level holds.
Look.Library()- The looks the engine ships.
Look.Pulse(strength [, seconds])- One throb: the edges darken and redden and the vignette pushes in.
Look.Heartbeat(bpm [, strength [, seconds]])- A steady throb at a rate, easing over the seconds (0 stops it).
Look.Beat()- The throb on screen now, 0 to 1.
Ocean
Ocean.Add([x, y [, level]])- A new ocean: over the terrain at its waterline, or at x, y; its name.
Ocean.Remove(ocean)- Take an ocean out of the level.
Ocean.Set(ocean, property, value)- Set any property (Ocean.Properties() lists them), or "name".
Ocean.Get(ocean, property)- A property's value.
Ocean.Move(ocean, x, y [, level])- Move an ocean, and its surface height.
Ocean.Enable(ocean)- Switch an ocean on.
Ocean.Disable(ocean)- ...and off.
Ocean.Objects()- How many oceans this level holds.
Ocean.Name(index)- The name of the ocean at an index.
Ocean.Find(ocean)- An ocean's index, -1 for none.
Ocean.Properties()- Every property an ocean has.
Ocean.HeightAt(x, y)- The surface height with its waves at a point.
Ocean.Under(x, y, height)- Is a point under an ocean's surface?
Ocean.AddCurrent(ocean, [x1, y1, x2, y2, ...], width [, speed [, strength]])- A current along the line through those points, width world units wide; speed world units a second (72), strength 0 to 1 (1); its number.
Ocean.CurrentSet(ocean, n, key, value)- Set a current's width, speed, strength, edge, mark, name or on.
Ocean.CurrentGet(ocean, n, key)- A current's width, speed, strength, edge, mark, name or on.
Ocean.RemoveCurrent(ocean, n)- Take a current away; the ones after it move down a number.
Ocean.Currents(ocean)- How many currents an ocean holds.
Ocean.CurrentAt(x, y)- The velocity the sea's water moves at a point, world units a second; (0, 0) outside every current.
Ocean.AddFront(ocean, [x1, y1, x2, y2, ...], height, length [, speed [, direction]])- A wave front along that crest line, height and length (crest to crest) in world units; speed world units a second (deep water's for its length), direction 1 toward the line's left or -1 its right; idle until started; its number.
Ocean.FrontSet(ocean, n, key, value)- Set a front's height, length, speed, direction, breaking, life, period, crests, name or on.
Ocean.FrontGet(ocean, n, key)- A front's height, length, speed, direction, breaking, life, period, crests, name, on or moving.
Ocean.RemoveFront(ocean, n)- Take a front away; the ones after it move down a number.
Ocean.StartFront(ocean, n)- Set a front moving out from its line now.
Ocean.Fronts(ocean)- How many wave fronts an ocean holds.
Steam
Steam.Running()- Is Steam up for this game?
Steam.Name()- The player's Steam name, "" without Steam.
Steam.Unlock(achievement)- Unlock an achievement by its API name and store it; did it take?
Steam.Achieved(achievement)- Has the player unlocked it?
Steam.SetStat(stat, value)- Set a stat by its API name (stored by Steam.StoreStats); did it take?
Steam.Stat(stat)- A stat's value, 0 without Steam.
Steam.StoreStats()- Send the stats and achievements to Steam.
Steam.Overlay([page])- Open the Steam overlay: achievements friends stats store, or a web address.
Audio
Audio.Play(name, file [, loop, volume, seconds])- Play a sound by name, fading in over the seconds.
Audio.PlayAt(name, file, x, y [, loop, volume, seconds])- ...at a world point, directional.
Audio.PlayOn(name, file, who [, loop, volume, seconds])- ...on a prop, a character or the player, following it.
Audio.Start(name [, seconds])- Start a prop's sound or a tagged emitter by its tag; how many.
Audio.Stop(name [, seconds])- Stop every sound of that name or tag, fading over the seconds; how many.
Audio.Fade(name, volume, seconds)- Move every sound of that name to a volume; how many.
Audio.Loop(name, on)- Loop a playing sound, or let it end.
Audio.Muffle(name, on)- A directional sound with a wall between is muffled.
Audio.Playing(name)- Is a sound of that name playing?
Audio.Level(name)- Its level now, fades included; -1 = not playing.
Audio.Track(track [, seconds])- Play a layered music track.
Audio.TrackStop([seconds])- Fade the layered track out.
Audio.Stem(track, file, curve)- Add a stem to a track for this game: always rise early late peak fall calm.
Audio.Curve(index, curve)- Change a playing stem's curve.
Audio.Tension(level [, seconds])- The tension the stems follow, 0 to 1, reached over the seconds.
Audio.TensionNow()- The tension now.
Audio.Duck(source, how)- Voices lower the rest while they sound: off light medium strong hush, or dB.
Audio.Sting(name, file, how [, volume])- A one-shot that lowers the rest while it plays.
Audio.Reverb(zone, field, value)- A reverb zone's preset, wet, blend, sizex, sizey, sizez, x, y, z, on or name.
Audio.ReverbHere()- The reverb preset heard at the listener, "" = none.
Audio.Preset(preset, field, value)- A reverb preset's decay, damp, wet, predelay or size.
Audio.Muffling(field, value)- How muffled sounds sound: cut in Hz, or level 0 to 1.
Audio.Attach(prop, file [, volume])- A prop carries a looping sound, saved with the map.
Audio.Detach(prop)- ...and no longer.
Fog
Fog.Use(preset [, seconds])- Blend to a fog preset (off, mist, valley, dense, night) over the seconds.
Fog.Release([seconds])- Back to the map's and the zones' own fog.
Fog.Set(value, to [, seconds])- Set colour (RRGGBB), density, falloff, height, start or opacity, easing over the seconds.
Fog.Get(value)- A fog value in effect now.
Fog.Clear([value])- Drop Fog.Set's hold on a value, or on all of them.
Fog.Preset()- The fog preset in effect, custom while Fog.Set holds a value.
Fog.Presets()- Every fog preset.
Fog.MapPreset()- The map's own fog preset.
Notes
Notes.Open(item)- Open the reader page on a note: it is filed and read.
Notes.Read(item)- Whether a note has been read.
Notes.Found(item)- Whether a note has been found.
Notes.List()- The notes found, in the order found, by item id.
Notes.Title(item)- A note's title.
Notes.Close()- Shut the reader.
Notes.Archive()- Open the Notes archive.
Fear
Fear.Value()- The fear now, 0 to 100.
Fear.Set(level)- Set the fear, 0 to 100; it holds while frozen.
Fear.Add(amount [, source])- Raise or lower the fear by a named source, scaled by its row; nothing while frozen.
Fear.Freeze()- Hold the fear where it is.
Fear.Unfreeze()- Let the sources move it again.
Fear.Frozen()- Is the fear held?
Fear.On()- Does this project have a fear meter?
Fear.Thresholds()- The threshold levels, as the project lists them.
Fear.Level()- The highest threshold the fear stands at or above, 0 = none.
Fear.Light()- How lit she stands, 0 to 100.
Fear.Source(source)- What a source moved the fear by over the last second.
Tension
Tension.Now()- The tension now, 0 to 1 (0 while the director is off).
Tension.Target()- Where it is heading before the rise and fall rates.
Tension.Part(part)- A part of it now: near, sight, path or state of the pressing hunter, or scare.
Tension.State()- The director's state: off, build, peak, relax or quiet.
Tension.Hunter()- The index of the hunter pressing hardest, -1 = none.
Tension.On()- Is the tension director on?
Tension.Add(amount)- A scare: raises the tension, fading at the fall rate. Play only.
Tension.Backstage([enemy [, seconds]])- Send a hunter away now (the pressing one, or by index, placed tag or type); true if it went. Play only.
Tension.Nudge([enemy])- Send a hunter on its route to look about a place near her; true if it went. Play only.
Tension.Get(setting)- A setting now: on rise fall reach high highfor away low lowfor hint music pacing near sight path state.
Tension.Set(setting, value)- Change a setting for this game.
Zone
Zone.Who()- In a zone's enter or exit: the body, player, an enemy's tag or type, a companion's id, a villager's or a prop's tag.
Zone.Type()- ...its type: player, the enemy's type, companion, villager or prop.
Zone.Index()- ...its index among its type's bodies, 0 for her.
Zone.Name()- ...the zone.
Zone.Entered()- ...true going in, false coming out.
Zone.Fires(zone)- Who fires a zone: her, enemy, type <type>, tag <tag>, companion or anybody.
Zone.SetFires(zone, who [, name])- Who fires a zone from now: her, enemy, type, tag, companion or anybody, and the type or tag.
Zone.Last(zone)- The last body that went into a zone, "" = none yet.
The Text Editor completes these as you type, and the checker reads the same table, so a verb on this page is a verb the checker knows.