Date: 2020/03/31 13:55:21 UTC-07:00
Type: Denizen Script
signpls:
type: world
events:
on right click sign:
- if !<server.has_flag[MySign_<context.location>]>:
- flag server MySign_<context.location>
- narrate "Name Sign Set!"
- stop
- if !<server.flag[MySign_<context.location>].contains[<player>]>:
- if <server.flag[MySign_<context.location>].size> == 4:
- narrate "Sign is too full."
- stop
- flag server MySign_<context.location>:->:<player>
- adjust <context.location> sign_contents:<[MySign_<context.location>].parse[display_name]>
- narrate "Added your name!"
- else:
- flag server MySign_<context.location>:<-:<player>
- adjust <context.location> sign_contents:<[MySign_<context.location>].parse[display_name]>
- narrate "Removed your name!"