Paste #66737: Edit of P#66736 - Untitled Paste

Date: 2020/03/31 13:55:21 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19


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!"