Paste #30464: My Friend can't explain what's wrong :(

Date: 2016/02/17 11:41:55 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


NpcTalk1:
    type: assignment
    interact scripts:
        - 1 NpcTalk_Main

NpcTalk_Main:
        type: interact
        steps:
        1: 
            click trigger:
            script:

                - define value <util.random.int[1].to[27]>

                    - if <def[value]> == 1 {
                        - chat "Not this time."
                    }
                    - else if [value] == 2 {
                        - chat "What do I look like... A spy?"
                    }
                    - else if [value] == 3 {
                        - chat "I heard the mages are working on a secret project."
                    }
                    - else if [value] == 4 {
                        - chat "I was talking to one of the lords servants.
                        - wait 2
                        - chat "He said that the lord does not trust the current state of the realm,"
                        - wait 2
                        - chat "And fears that soon a civil war breaks out."
                        - wait 2
                        - chat "I guess only time can tell."
                    }
                    - else if [value] == 5 {
                        - chat "Did you have heard it?"
                        - wait 2
                        - chat "The king"                    
                        - wait 2
                        - chat "The king actually want to declare the chicken as the"
                        - chat "official national animal... Can you believe?
                    }
                    - else if [value] == 6 {
                        - chat "Big news! the town's senate is trying to pass a law"
                        - wait 2
                        - chat "making all Birch trees illegal."
                        - wait 2
                        - chat "Isn't that fantastic?"
                    }
                    - else if [value] == 7 {
                        - chat "I overheard a guard mumbling something about the city"
                        - wait 2
                        - chat "and something about an order 67 whatever that may be."
                    }
                    - else if [value] == 8 {
                        - chat "Yes of course!"
                        - wait 2
                        - chat "My friend's her sister told her daughter in law who told her best friend"
                        - wait 2
                        - chat "that she heard it from her brother's Girlfriend's ex who heard it from"
                        - wait 2
                        - chat "the neighbour of Analisa. *gaps for air*"
                        - wait 2
                        - chat "That Analisa is having an affaire with the black smith."
                        - wait 2
                        - chat "He is married! I thought he was an honest man."
                        - wait 2
                        - chat "But for him to have a maitresse?"
                        - wait 2
                        - chat "That is unexpected. I'd love to see his wife react when she hears."
                        - wait 2
                        - chat "Ohhh I love a good scandal."
                        - wait 2
                        - chat "This stays between us does it? I don't want people think I am a big gossip."
                    }
                    - else if [value] == 9 {
                        - chat "Have you visited the marked yet?."
                    }
                    - else if [value] == 10 {
                        - chat "The stables have some fine horses for sale lately"
                    }
                    - else if [value] == 11 {
                        - chat "I heard the Fighters Guild will soon be accepting new members."
                    }
                    - else if [value] == 12 {
                        - chat "You look smart!"
                        - wait 2
                        - chat "If I were you I'd apply for the college."
                        - wait 2
                        - chat "They can teach you about magic and stuff"
                    }
                    - else if [value] == 13 {
                        - chat "I heard that some people off in the higher ritch part of town."
                        - wait 2
                        - chat "are so rich that even their pigs have servants"
                    }
                    - else if [value] == 14 {
                        - chat "I could really go for a snack."
                    }
                    - else if [value] == 15 {
                        - chat "Thieves are becoming a real problem lately. you'd best stay clear of them."
                    }
                    - else if [value] == 16 {
                        - chat "I saw a ghost lurking out of the window at the abandoned building near the market"
                    }
                    - else if [value] == 17 {
                        - chat "have you heard of the magical rings?"
                        - wait 2
                        - chat "It has been said the wielder is granted some magical powers."
                    }
                    - else if [value] == 18 {
                        - chat "have you seen my cat someware?"
                    }
                    - else if [value] == 19 {
                        - chat "Okey... Here is the latest news. A new stranger in town is bothering me. Get lost!
                    }
                    - else if [value] == 20 {
                        - chat "There is an statue in the town of the goddess siver."
                        - wait 2
                        - chat "Or was it syra. I always have her name wrong."
                    }
                    - else if [value] == 21 {
                        - chat "Have you visited the museum yet?"
                        - wait 2
                        - chat "It shows a time of war long ago. So exciting!"
                    }
                    - else if [value] == 22 {
                        - chat "I saw a grumpy dwarf in the city the other day."
                        - wait 2
                        - chat "He thought highly about himself and never let you finish your sentences"
                    }
                    - else if [value] == 23 {
                        - chat "Have you noticed we all tend to say the same things?"
                    }
                    - else if [value] == 24 {
                        - chat "I was thinking I'd go to the park this afternoon"
                    }
                    - else if [value] == 25 {
                        - chat "The city's walls are impressive don't you think?"
                    }
                    - else if [value] == 26 {
                        - chat "Sometimes It's like we are programed to do things"
                        - wait 2
                        - chat "Its scary to think about."
                    }
                    - else if [value] == 27 {
                        - chat "I'm sorry did you say something?"
                    }
                    - else {
                        - chat "If an NPC is giving you this massage than something went wrong."
                        - wait 2
                        - chat "Pleas report this along with the npc's task and name to an admin or mod."
                        - wait 2
                        - chat "Thanks! for your cooperation. <3 ~the server staff"
                    }