Vǫrðr Forge Steam page

Rûn Language

Rûn Objects: The World

The objects for what happens in the world: World (flags, events and enemies), Zone, RandomEvents, Faction, Notes, Fear, Tension and Steam. Their full method lists are on Rûn Programs.

World: flags and events

World.FlagSet(name), World.FlagClear(name) and World.Flag(name) are the story flags, the same flags flag set and flag(<name>) use in event scripts, kept in the save. World.Fire(event [, section]) runs another script's section, an event script or a program.

print(World.Flag("world_gate_open"))
World.FlagSet("world_gate_open")
print(World.Flag("world_gate_open"))
World.FlagClear("world_gate_open")
print(World.Flag("world_gate_open"))
off
on
off

World: enemies

World.SpawnEnemy(type, x, y) puts an enemy of a type at a place; World.Enemies([type]) counts the living; World.Slay(type) kills every living one of a type, or "all". World.EnemyCount() is how many foes World.Enemy(i) can read, living or dead, and World.Enemy(i) hands one out as an object with .x, .y, .hp, .maxHp, .type and .alive. World.Hit(shape, x, y, size, amount) strikes foes as her attack does. See Rûn Cookbook: The World for a loop over the enemies.

Zone

Inside a zone's enter or exit section, Zone.Who(), Zone.Type() and Zone.Name() say who went in or out, and Zone.Entered() which way. Zone.SetFires(zone, who) changes who sets a zone off. See Events and Triggers.

RandomEvents

Every random event, table and trigger of randomevents.vfa: RandomEvents.Run(event) runs one now, RandomEvents.Count(event) says how often it has run, RandomEvents.Enable(id) and RandomEvents.Disable(id) switch them. See Events and Triggers.

Faction

What each party thinks of her: Faction.Standing(party), Faction.Join(party), Faction.Witness(deed, party). See Factions and Reputation.

Notes, Fear, Tension, Steam

Notes.Open(item) opens the reader on a note. Fear.Value() and Fear.Add(amount) read and move the fear meter, and Tension.Now() reads the tension director, when the project has them on. Steam.Unlock(achievement) unlocks an achievement; without Steam every Steam method answers false, 0 or empty and does no harm.