Paste #37939: Untitled Paste

Date: 2016/11/24 11:02:49 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


yanina_npc:
    type: assignment
    actions:
        on assignment:
        - trigger name:click state:true
        - trigger name:proximity state:true radius:20
    interact scripts:
    - 10 yanina_npc_interact

portero_npc_interact:
    type: interact
    steps:
        1:    
            proximity trigger:
                entry:
                    script:
                    - if <player.has_flag[saludo_inicial]> queue clear
                    - narrate format:f1 "Buen dia alumnitos"
                    - narrate format:f1 "ya llegaron!!"
                    - flag player saludo_inicial
                    - if <npc.flag[cant_alum]> == <server.num_players> {
                        - narrate "estan todos"
                        }
                move:
                    script:
                    - look <npc> <player.location>
                exit:
                    script:
                    - narrate format:f1 "no corran!!"


cantidad_alumnos:
    type: world
    events:
        on player joins:
        - if <npc.has_flag[cant_alum]> {
            - flag <npc> cant_alum:++
            - queue clear
            }
        - flag <npc> cant_alum:0