Paste #37636: Aang partial script

Date: 2016/11/13 22:19:20 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


chat trigger:
                1:
                    trigger: /Ok/
                    script:
                    - if <player.has_flag[npc_engaged]> queue clear
                    - engage
                    - narrate format:cchat "Congratulations on learning your first move!"
                    - wait 20t
                    - narrate "<&b><npc.name><&co> <&2>The next move I would like to teach you is the move <&7>AirSwipe"
                    - wait 20t
                    - narrate "<&2>Type <&d>/b b airswipe <&2>to bind the ability to your currently selected slot in your hotbar"
                    - wait 30t
                    - narrate format:cchat "To use, simply left-click in a direction. An arc of air will flow from you towards that direction, cutting and pushing back anything in its path. Its damage is minimal, but it still sends the message. This ability will extinguish fires, cool lava, and cut things like grass, mushrooms, and flowers. Additionally, you can charge it by holding sneak. Charging before attacking will increase damage and knockback, up to a maximum."
                    - wait 200t
                    - narrate format:cchat "Ok try to use your new abilities to kill these zombies!"
                    - wait 20t
                    - spawn zombie|zombie|zombie <npc.location> 
                    - flag player kill_zombie_quest
                    - flag player kill_zombie_quest_count:0   
                    - if <player.has_flag[kill_zombie_quest_count]> == 3 {
                      - narrate format:cchat "Great work!"
                      - wait 10t
                      - narrate format:cchat "That seems like enough moves to learn for now!"
                      - wait 10t
                      - narrate format:cchat "Go forth and use your abilities to better yourself and benefit the world around you!"
                      - wait 15t
                      - narrate format:cchat "Come back when you have killed about 30 mobs or so and I'll teach you a couple more moves!"
                      - flag player kill_zombie_quest_count:!
                      - disengage
                      - flag player npc_engaged:!
                      - queue clear
                      }                
                    - disengage
                    - flag player npc_engaged:!  
kill_zombie_quest_world:
    type: world
    events:
        on player kills zombie:
        - if !<player.has_flag[kill_zombie_quest]> queue clear
        - flag player kill_zombie_quest_count:+:1
        - if <player.has_flag[kill_zombie_quest_count]> == 3 {
          - flag player kill_zombie_quest_count:!
          }