Modding
Discord Wishlist on Steam

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.

ChoiceIdWhat it does
Givecall/Game.GiveItemPuts so many of an item into somebody's bag.
Takecall/Game.TakeItemTakes 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.

Give itemwhoitemBreadSliceamount1ok
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.

Take itemwhoitemBreadSliceamount1ok
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.