Modding
Discord Wishlist on Steam

Library›Gear

Give a full kit

fn/game.GiveFullKit

Puts a weapon in somebody's hand, a shield or second weapon in the off hand if one is given, and every piece of a list on them.

Give a full kitallwhoweaponFalchionoff handpieces
Does
An action: done when the run reaches it
Runs
On every machine
Listed under
Library › Gear
In a file
fn/game.GiveFullKit

Pins

  • inwhoa character

    The person.

  • inweapona game object

    The catalog weapon, "thing/Falchion".

    Starts as thing/Falchion

  • inoffHanda game object

    A shield or one-handed weapon for the off hand; empty for none.

  • inpiecesa list

    A list of catalog pieces to wear.

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 gear.graph.json.

Startallwhoweaponoff handpiecesGive weaponwhoweapongivenIs nothingvalueresultBranchconditiontruefalsePut in off handWhoprefabFor eachlistLoop bodyDoneitemindexPut onwhopiecewornReturnall
Give a full kit

Built from