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.
- 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.
Built from
- Take money
call/Game.TakeMoneyTakes so much out of somebody's purse, with change given back in coin. - Branch
flow/BranchGoes one way when the condition holds, the other way when it doesn't. - Show note to players
call/Game.ShowNoteToA note across the top of players' screens, sent from where the game is decided
Modding