Library›Places
Spawn a band
fn/game.SpawnBand
Makes so many people of a kit (brigand, peasant, militia, knight...) on a side, at places picked by chance round a place, and gives them back as a list. At most 64 made by graphs live at once.
- Does
- An action: done when the run reaches it
- Runs
- On every machine
- Listed under
- Library › Places
- In a file
fn/game.SpawnBand
Pins
- inkittext
The kit: brigand, peasant, militia, knight...
Starts as
brigand - insidea choice
Bandit, Soldier, Civilian, Player or Neutral.
Starts as
Bandit - incounta whole number
How many.
Starts as
4 - inata position
The place.
- inmetresa number
How far round it, in metres.
Starts as
4 - outbanda list
The people made.
How it is made
Its body, as the bench opens it read-only. Copy into my mod on the bench makes a copy to change. The library's file is places.graph.json.
Built from
- For
flow/ForDoes Body for every whole number from First to Last, both counting, then Done. - Random point near
fn/game.RandomPointNearA place picked by chance within so many metres of another, any way round it. - Make a person
call/Game.SpawnPersonMakes a person of the world at a place, dressed and armed as a kit says, on a side. - Add to list
list/AddPuts an item at the end of a list.
Modding