Modding
Discord Wishlist on Steam

Library›Money

Pay or refuse

fn/game.PayOrRefuse

Takes a price from somebody's purse, change given back, and shows them a note either way: one when they paid, another when they had too little and nothing was taken. Paid tells which.

Pay or refuseallwhoprice24paid textPaidrefused textYou have too li…paid
Does
An action: done when the run reaches it
Runs
On every machine
Listed under
Library › Money
In a file
fn/game.PayOrRefuse

Pins

  • inwhoa character

    The person.

  • inpricea whole number

    Denars.

    Starts as 24

  • inpaidTexttext

    The note when they pay.

    Starts as Paid

  • inrefusedTexttext

    The note when they can't.

    Starts as You have too little

  • outpaidyes or no

    Yes when they paid.

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

Startallwhopricepaid textrefused textTake moneywhodenarspaidBranchconditiontruefalseShow note to playerstextlinestyleSlipplayerShow note to playerstextlinestyleSlipplayerReturnallpaidReturnallpaid
Pay or refuse

Built from