Paste #72675: Tour Script

Date: 2020/07/21 10:50:19 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


#grover's tour location, assignment and interact scripts
#firstaphroQuest

tour_locations:
    type: task
    script:
    - note <location[576,173,-84,spawn_world]> as:tour_spawn
    - note <location[194,66,-530,chb]> as:tour_chb
    - note <location[168,85,-837,chb]> as:tour_pop
    - note <location[-3811,64,-3581,spawn_world]> as:tour_wild
    - note <location[411,66,148,-47.1,0.5,world]> as:tour_olympus
    - note <location[14,145,166,1.95,116,game_world]> as:tour_games
    - note <location[20,146,-365,game_world]> as:tour_ctf
    - note <location[66,28,340,game_world]> as:tour_mustafar
    - note <location[-91,24,-146,9.45,299,creativeworld]> as:tour_creative
    - note <location[633,177,-41,-12.15,180,spawn_world]> as:tour_claim

tour_grover:
    type: assignment
    actions:
        on assignment:
        - trigger name:click state:true radius:3
        - trigger name:chat state:true radius:3
        - trigger name:proximity state:true radius:5
    interact scripts:
    - 1 tour_grover_interact

tour_grover_interact:
    type: interact
    steps:
        1:
            proximity trigger:
                entry:
                    script:
                    - if <player.flag[grovernum]> == 0:
                        - if <player.flag[firstaphro]> == true:
                            - narrate "<&e><&lb>SEEKER<&rb> Grover<&co> <&f> This way!!! Right-click me before more monsters show up! <&7>(command click on a Mac)"
                exit:
                    script:
                    - if <player.flag[grovernum]> == 0:
                        - if <player.flag[firstaphro]> == true:
                            - narrate "<&e><&lb>SEEKER<&rb> Grover<&co> <&f> Wait, come back! I can get you out of here! <&7>(command click on a Mac)"
            chat trigger:
                    1:
                        trigger: /debug/
                        script:
                        - narrate "<&e><&lb>SEEKER<&rb> Grover<&co> <&f>debug act"
                        - flag player grovernum:0
                        - flag player firstaphro:true
                        - zap 1
                    2:
                        trigger: /yes/
                        script:
                        - narrate "<&e><&lb>SEEKER<&rb> Grover<&co> <&f>Cool! Let's start at the beginning."
                        - wait 2
                        - execute as_server "essentials:walkspeed walk 0 <player.name>"
                        - execute as_server "luckperms:luckperms user <player.name> permission set essentials.home false"
                        - execute as_server "luckperms:luckperms user <player.name> permission set essentials.spawn false"
                        - cast jump amplifier:-6 duration:20000
                        - teleport tour_chb
                        - cast jump amplifier:-6 duration:20000
                        - cast invisibility duration:20000
                        - flag player grovernum:1
                        - narrate "<&e><&lb>SEEKER<&rb> Grover<&co> <&f>So this might be a lot to process, but... you're not mortal. Not completely. You're half Greek God. Welcome to our world--the world of magic, gods, and monsters."
                        - wait 3
                        - narrate "<&e><&lb>SEEKER<&rb> Grover<&co> <&f>This is our camp, Camp Half-blood, where demigods like you train to become heroes."
                        - narrate "<&7>(Click grover to advance tour)"
                    3:
                        trigger:
            click trigger:
                script:
                - flag player grovernum:++
                - if <player.flag[grovernum]> == 1:
                    - engage
                    - narrate "<&e><&lb>SEEKER<&rb> Grover<&co> <&f>Oh good! <player.name>, you're alright! I found you, just in time. Quick, I know a way out!"
                    - wait 4
                    - execute as_server "essentials:walkspeed walk 0 <player.name>"
                    - execute as_server "luckperms:luckperms user <player.name> permission set essentials.home false"
                    - execute as_server "luckperms:luckperms user <player.name> permission set essentials.spawn false"
                    - cast jump amplifier:-6 duration:20000
                    - cast invisibility duration:20000
                    - teleport tour_chb
                    - cast jump amplifier:-6 duration:20000
                    - disengage
                    - narrate "<&e><&lb>SEEKER<&rb> Grover<&co> <&f>So this might be a lot to process, but... you're not mortal. Not completely. You're half Greek God. Welcome to our world--the world of magic, gods, and monsters."
                    - wait 4
                    - narrate "<&e><&lb>SEEKER<&rb> Grover<&co> <&f>This is our camp, Camp Half-blood, where demigods like you train to become heroes."
                    - wait 1
                    - narrate "<&7>(Click grover to advance tour)"
                - else if <player.flag[grovernum]> == 2:
                    - teleport <player> tour_pop
                    - wait 1
                    - cast jump amplifier:-6 duration:20000
                    - narrate "<&e><&lb>SEEKER<&rb> Grover<&co> <&f>Outside of the camp borders, demigods have been building their own community in this world."
                - else if <player.flag[grovernum]> == 3:
                    - teleport <player> tour_wild
                    - wait 1
                    - cast jump amplifier:-6 duration:20000
                    - narrate "<&e><&lb>SEEKER<&rb> Grover<&co> <&f>But there's still a huge, unexplored world of monsters to see."
                - else if <player.flag[grovernum]> == 4:
                    - teleport <player> tour_olympus
                    - wait 1
                    - cast jump amplifier:-6 duration:20000
                    - narrate "<&e><&lb>SEEKER<&rb> Grover<&co> <&f>Demigods often do quests for the Olympian Gods themselves here on Mount Olympus..."
                - else if <player.flag[grovernum]> == 5:
                    - teleport <player> tour_games
                    - wait 1
                    - cast jump amplifier:-6 duration:20000
                    - execute as_server "minecraft:gamemode adventure <player.name>"
                    - narrate "<&e><&lb>SEEKER<&rb> Grover<&co> <&f>And they come here to the Parthenon to play games and even more difficult quests!"
                - else if <player.flag[grovernum]> == 500:
                    - teleport <player> tour_creative
                    - wait 1
                    - cast jump amplifier:-6 duration:20000
                    - execute as_server "minecraft:gamemode adventure <player.name>"
                    - narrate "<&e><&lb>SEEKER<&rb> Grover<&co> <&f> Or if your interests are just in free building, we have a creative world where you can build whatever you want or participate in contests!"
                - else if <player.flag[grovernum]> == 6:
                    - teleport <player> tour_spawn
                    - cast jump amplifier:-6 duration:20000
                    - narrate "<&e><&lb>SEEKER<&rb> Grover<&co> <&f>And this is the Spawn City. Through these portals in front of us, you can access the worlds I just mentioned. And to the right, you can visit the CHBA Minecraft Shop!"
                    - wait 5
                    - execute as_server "essentials:walkspeed walk 1 <player.name>"
                    - execute as_server "luckperms:luckperms user <player.name> permission unset essentials.home"
                    - execute as_server "luckperms:luckperms user <player.name> permission unset essentials.spawn"
                    - cast remove jump
                    - cast remove invisibility
                    - narrate "<&e><&lb>SEEKER<&rb> Grover<&co> <&f>That's it for the tour. You can visit the Amphitheatre here in Spawn City to get claimed by a god."
                    - if <player.flag[firstaphro]> == true:
                        - wait 5
                        - run firstaphroQuest
                - else:
                    - narrate "<&e><&lb>SEEKER<&rb> Grover<&co> <&f> Hi, <player.name>! Would you like to take the server tour?"