Paste #21523: random talk dont work

Date: 2015/10/25 05:18:56 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


Stadtwache:
    type: command
    name: Stadtwache
    usage: /Stadtwache
    allowed /Stadtwache: 
    - determine <player.is_op>
    #<player.in_group[Admin]> If the player not OP use this
    script:
    - create player "<&f>Stadtwache" <player.location> save:Stadtwache
    - lookclose <entry[Stadtwache].created_npc> state:true range:5
    - adjust <entry[Stadtwache].created_npc> skin:rittertome
    - assignment set script:Stadtwache_assign npc:<entry[Stadtwache].created_npc>

Stadtwache_assign:
    type: assignment
    actions:
        on assignment:
            - trigger name:click state:true     
    interact scripts:
    - 26 Stadtwache_Text
Stadtwache_Text:
    type: interact
    steps:
        1:
            click trigger:
                script:
                    - random{
                        - narrate format:cchat "Ich beschuetze diesen Ort"
                        - narrate format:cchat "Stell nichts boeses an"
                        - narrate format:cchat "I see You"
                        }