Resource icon

Sign prompt 1.0

Denizen Version
1740-rel
This script provides a prompt for input to the player using a sign.
this input can then be read and used in other scripts.
only 1 sign prompt can run at the same time and by default times out after 60 seconds

use - ~run sign_prompt def:<[message]> save:sign_prompt_output
to run the task
afterwards the signs contents can be read with <entry[sign_prompt_output].created_queue.determination.get[1]>
if a wrong message is given the output = error
when the prompt has timed out output = timeout

an example of a script using sign_prompt
this script lets the player edit signs by right clicking it.

sign_prompt_example:
type: world
events:
on player right clicks vanilla_tagged:signs:
- ~run sign_prompt def:<list.include_single[<context.location.sign_contents>]> save:sign_prompt_output
- if <entry[sign_prompt_output].created_queue.determination.get[1].size> == 4:
- if <context.location.material.name.contains[sign]>:
- adjust <context.location> sign_contents:<entry[sign_prompt_output].created_queue.determination.get[1]>
Author
Cloudshadow
Downloads
468
Views
716
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from Cloudshadow

Share this resource