Node book›Items and gear
Give or take
Puts items into a bag or takes them out.
One node on the bench: its dropdown switches between the choices below, keeping the wires that still fit. In a file each choice has its own id.
| Choice | Id | What it does |
|---|---|---|
| Give | call/Game.GiveItem | Puts so many of an item into somebody's bag. |
| Take | call/Game.TakeItem | Takes so many of an item from somebody's bag, if they have that many. |
Give
Puts so many of an item into somebody's bag.
- Does
- An action: done when the run reaches it
- Runs
- Where the game is decided: single player, the host, the server
- In a file
call/Game.GiveItem
- inwhoa character
Whose bag.
- initeman item data
Which item.
Starts as
item/BreadSlice - inamounta whole number
How many.
Starts as
1 - outokyes or no
Yes when it went in.
Take
Takes so many of an item from somebody's bag, if they have that many.
- Does
- An action: done when the run reaches it
- Runs
- Where the game is decided: single player, the host, the server
- In a file
call/Game.TakeItem
- inwhoa character
Whose bag.
- initeman item data
Which item.
Starts as
item/BreadSlice - inamounta whole number
How many.
Starts as
1 - outokyes or no
Yes when they had enough and it was taken.
Modding