Templates›Templates
Ambush at a place
When the first player comes near a place, a band of four brigands comes at them from twelve to eighteen metres off. Set the place.
What its notes say
- When the scene starts, wait for a player to come within 10 m
- Four brigands come at them from 12 to 18 m off, with a shout
Its variables
| Name | Kind | Scope | Saved |
|---|---|---|---|
place | a position | the graph's | no |
Nodes it uses
- Scene started
event/Graph.StartedRuns once when a scene has loaded and the mods are in. - Wait for a player
fn/game.WaitForPlayerWaits until any player comes within so many metres of a place, or the seconds are up, and gives back who came. - Branch
flow/BranchGoes one way when the condition holds, the other way when it doesn't. - Position of
get/Game.PositionWhere a person or thing is. - Random point on a ring
fn/game.RandomPointOnRingA place picked by chance between two distances from another - Spawn a band against
fn/game.SpawnBandAgainstMakes a band of a kit on a side round a place and sets every one of them on somebody - an ambush on the player, say. - Bark all
fn/game.BarkAllEvery NPC in a list says a line written for a situation ("greet", "spot_enemy"...), if it has one for its kind.
Modding