Quick Reference
Actions 4
| startDistance() | The map's start distance, in tiles: how far round the party the rule reaches. |
| startHeld() | Why the map does not start a battle of mode now, or "" when nothing holds it: a battle runs here, the scene i… |
| startOwn() | The battle the map starts by itself: Defeat every enemy, it can be escaped, and a loss is Game Over unless th… |
| playRequest() | Play this battle: playat=<mapId>,<x>,<y>,<direction> on a playtest's launch line asks for a new game with the… |
Events, Commands & Input 1
| triggerRange() | The distance at which a map starts its battle when the party comes near; 0 for a map that does not start one… |
Updating & Drawing 1
| updateTrigger() | One active map frame. |
Other 11
| mapHasStarter() | Whether an event of a map has a Start Battle on Map command, on any of its pages. |
| mapStart() | When a map starts its battle by itself: kind is "near" (the leader within tiles of an enemy unit it sees), "o… |
| unitEvents() | The events of this map that are units now (F.eventSide), in id order: { count, events, teams }, the side each… |
| sees() | Whether one character has a line of sight to another: the line battles use (the Tactical grid's: tiles that h… |
| takenNear() | The unit events a battle takes round the party now, of any side: those the rule takes, in id order, then whoe… |
| bringNear() | Looks at the map's units outside the battle running here and brings in whoever the rule takes, and whoever st… |
| holdAgainst() | Unit events of this map (their ids) come under the hold: none of them starts a battle until the leader has be… |
| holdRows() | The enemy rows a battle screen made from rows fights (the screen's own take: those handed over, who stands wi… |
| lastDevice() | The device the player used last ("keys", "pad" or "touch"), where the game's controls say; "" where they do n… |
| judgeStart() | Judges the map's own start. |
| bootRequest() | A scripted Test battle on a playtest's launch line (fight, fightat=<mapId>,<x>,<y>, fightmode=<mode>): { at:… |
Actions
startDistance
static sourceF.startDistance()
The map's start distance, in tiles: how far round the party the rule reaches.
startHeld
static sourceF.startHeld(mode)
Why the map does not start a battle of mode now, or "" when nothing holds it: a battle runs here, the scene is changing or still fading in (the player sees the map before a battle begins on it), an event runs or is about to, a message is open, a transfer, the party in a vehicle, in the air, swimming or moved by a route, encounters switched off, the tester walking through walls; and, for an Action…
Details
Why the map does not start a battle of mode now, or "" when nothing holds it: a battle runs here, the scene is
changing or still fading in (the player sees the map before a battle begins on it), an event runs or is
about to, a message is open, a transfer, the party in a vehicle, in the air, swimming or moved by a route,
encounters switched off, the tester walking through walls; and, for an Action or First Person battle, a
player whose last input was a touch.
startOwn
static sourceF.startOwn(fight, start, mode, who, rows)
The battle the map starts by itself: Defeat every enemy, it can be escaped, and a loss is Game Over unless the Note says <battle lose: continue>.
Details
The battle the map starts by itself: Defeat every enemy, it can be escaped, and a loss is Game Over unless
the Note says <battle lose: continue>. rows: on a Classic map, the enemy rows that fight (null: of the
whole map); who: on the map, "near" (the units the rule takes round the party) or "map". With no enemy
to take nothing starts: such a battle would be won the moment it began. A next-battle mode a command set
is left for the battle it was set for. Returns whether a battle started.
playRequest
static sourceF.playRequest()
Play this battle: playat=<mapId>,<x>,<y>,<direction> on a playtest's launch line asks for a new game with the title skipped and the party on that tile, facing that way (2, 4, 6 or 8).
Details
Play this battle: playat=<mapId>,<x>,<y>,<direction> on a playtest's launch line asks for a new game with
the title skipped and the party on that tile, facing that way (2, 4, 6 or 8). No battle is started for it:
the map's own start does that, as in the game. { mapId, x, y, direction }, or null.
Events, Commands & Input
triggerRange
static sourceF.triggerRange(mapData)
The distance at which a map starts its battle when the party comes near; 0 for a map that does not start one that way.
Updating & Drawing
updateTrigger
static sourceF.updateTrigger()
One active map frame.
Details
One active map frame. While a battle runs here the units outside it are looked at, on its first frame and on the beat (as it ends its units come under the hold). Else a hold made on another map, or on a map that starts no battle, is let go, and the start is judged on the beat and on the frame the leader stands on a new tile.
Other
mapHasStarter
static sourceF.mapHasStarter(mapData)
Whether an event of a map has a Start Battle on Map command, on any of its pages.
mapStart
static sourceF.mapStart(mapData)
When a map starts its battle by itself: kind is "near" (the leader within tiles of an enemy unit it sees), "open" (the map opens) or "event" (never: its events do).
Details
When a map starts its battle by itself: kind is "near" (the leader within tiles of an enemy unit it
sees), "open" (the map opens) or "event" (never: its events do). tiles is also how far round the party
a battle takes units (F.START_DISTANCE where the map names no distance). lose: "continue" where the Note
says <battle lose: continue>, else "gameover". from: "tag", "sidecar", "events" (no tag, and an event
has Start Battle on Map) or "default". Shared and kept: read it, never write it.
unitEvents
static sourceF.unitEvents(fresh)
The events of this map that are units now (F.eventSide), in id order: { count, events, teams }, the side each fights on beside it.
Details
The events of this map that are units now (F.eventSide), in id order: { count, events, teams }, the
side each fights on beside it. Counted on the beat and when the map changes; fresh counts now (a battle
about to start, an outcome about to be judged). Shared: read it, never keep or write it.
sees
static sourceF.sees(from, to)
Whether one character has a line of sight to another: the line battles use (the Tactical grid's: tiles that hide, the ground, what is built, a shut door, a model in the way), except that a unit event's model stops nothing.
Details
Whether one character has a line of sight to another: the line battles use (the Tactical grid's: tiles that hide, the ground, what is built, a shut door, a model in the way), except that a unit event's model stops nothing. In a battle's own lines a model that is no unit of the battle stands in the way; here that would be the unit looked at itself, and whoever stands in front of it in its group. Nothing is seen where no grid is loaded.
takenNear
static sourceF.takenNear()
The unit events a battle takes round the party now, of any side: those the rule takes, in id order, then whoever stands with one of them (F.GROUP).
Details
The unit events a battle takes round the party now, of any side: those the rule takes, in id order, then whoever stands with one of them (F.GROUP). A new list, for a battle about to start.
bringNear
static sourceF.bringNear(fight, now)
Looks at the map's units outside the battle running here and brings in whoever the rule takes, and whoever stands with one of those (F.GROUP); returns how many joined.
Details
Looks at the map's units outside the battle running here and brings in whoever the rule takes, and whoever
stands with one of those (F.GROUP); returns how many joined. On the beat a look asks for F.BEAT_LINES sight
lines at most and goes on from there on the next; now counts the map again and asks for every line (a
battle about to be judged won).
holdAgainst
static sourceF.holdAgainst(fight, ids)
Unit events of this map (their ids) come under the hold: none of them starts a battle until the leader has been out of its reach once.
Details
Unit events of this map (their ids) come under the hold: none of them starts a battle until the leader has
been out of its reach once. Those already under it stay. Saved with the game (_triggerHeldIds).
holdRows
static sourceF.holdRows(fight, rows)
The enemy rows a battle screen made from rows fights (the screen's own take: those handed over, who stands with them, the nearest ones) come under the hold.
lastDevice
static sourceF.lastDevice()
The device the player used last ("keys", "pad" or "touch"), where the game's controls say; "" where they do not.
judgeStart
static sourceF.judgeStart(fight, start)
Judges the map's own start.
Details
Judges the map's own start. First the hold: each unit it is against is let go once the leader is out of its
reach, a group's width beyond the start distance (F.GROUP; on a Classic map the battle screen's own,
Classic.GROUP), or it is no enemy unit any more. Then the start, where nothing holds it (F.startHeld):
the leader sees an enemy unit within the start distance that is not under the hold (an "open" map: an
enemy unit stands on it and nobody is under the hold, once per visit). On a Classic map only enemy rows
count. Returns whether a battle started.
bootRequest
static sourceF.bootRequest()
A scripted Test battle on a playtest's launch line (fight, fightat=<mapId>,<x>,<y>, fightmode=<mode>): { at: { mapId, x, y } | null, mode }, or null.
Details
A scripted Test battle on a playtest's launch line (fight, fightat=<mapId>,<x>,<y>, fightmode=<mode>): { at: { mapId, x, y } | null, mode }, or null.