Paste #59226: Untitled Paste

Date: 2019/10/21 06:23:38 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


bob_le_bucheron:
    type: assignment
    actions:
        on assignment:
        - trigger name:click state:true
        - trigger name:chat state:true
    interact scripts:
    - bob_le_bucheron_interact 

bob_le_bucheron_interact:
    type: interact
    steps:
        1:
            click trigger:
                script:
                - if <player.has_flag[bucheron]>:
                    - chat "Tu es deja Bucheron !"  
                    - stop
                - chat "Salut la nouvelle recrue."
                - wait 5t
                - chat "Non? hey bien je pourrais vous utiliser quand même."
                - wait 5t
                - chat "pensez-vous que vous pourriez faire un bon bucheron ?"
                - wait 5t
                - chat "[<&o>Type <&b><&o>Oui<&f><&o> or <&b><&o>Non<&f>]"
            chat trigger:
                1:
                    trigger: "/Oui/ j'accepte d'etre bucheron"
                    script:
                    - if <player.has_flag[bucheron]>:
                        - stop
                    - flag player Bucheron
                    - chat "Okay parfait!"
                    - jobs join bucheron
                    - wait 5t
                    - chat "<&e>[Aller va couper du bois !]"
                2:
                    trigger: "/Non/ je ne veux pas"
                    script:
                    - if <player.has_flag[bucheron]>:
                        - stop
                    - random:
                        - chat "Okay a une autre fois!"
                        - chat "Okay ouste !"
                        - chat "sauve-toi avant que ma hache ne te découpe!"