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.
- 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.
Built from
- Give weapon
call/Game.GiveWeaponPuts a catalog weapon in somebody's hand, in a free slot of theirs, the one in hand put away. - Is nothing
math/IsNothingWhether a value is empty - Branch
flow/BranchGoes one way when the condition holds, the other way when it doesn't. - Put in off hand
call/CharacterInventory.EquipOffHandMakes a catalog thing in somebody's off hand - For each
flow/ForEachDoes Body once for every item of a list, then Done. - Put on
call/Game.WearPuts a catalog piece on somebody as when they put it on themselves
Modding