Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.81 KB | None | 0 0
  1. JohnFisher:
  2.     type: assignment
  3.     actions:
  4.         on assignment:
  5.        - trigger name:chat toggle:true cooldown:1
  6.  
  7.     interact scripts:
  8.    - 10 Fetch Base
  9.  
  10. 'Fetch Base':
  11.     type: interact
  12.     steps:
  13.         'Introduction*':
  14.             click trigger:
  15.                 script:
  16.                #asks player if they want to help WORKS
  17.                 - if !<player.has_flag[started_fish_quest]> {
  18.                     - if !<player.has_flag[finished_fish_quest]> {
  19.                         - chat "Catch some fish for me with my rod"
  20.                         - narrate "You can say 'Yes' or 'No'"
  21.                     }
  22.                 }
  23.                 #checks if player is doing the quest and has 10 or more raw fish and 1 ore more fishing rod BROKEN
  24.                 - if <player.has_flag[started_fish_quest]> {
  25.                     - if <player.inventory.contains[Raw_Fish].qty> >= 10 {
  26.                         - if <player.inventory.contains[Fishing_Rod].qty> >= 1 {
  27.                             - ^engage now
  28.                             - flag player started_fish_quest:!
  29.                             - flag player finished_fish_quest
  30.                             - chat "Thanks, keep the fish and pole"
  31.                             - ^disengage
  32.                         }
  33.                         else{
  34.                             - chat "missing rod!"
  35.                         }
  36.                     }
  37.                     else{
  38.                         - chat "missing fish!"
  39.                     }
  40.                 }
  41.                 #checks if player is done with the quest BROKEN
  42.                 - if <player.has_flag[finished_fish_quest]> {
  43.                     - chat "I have nothing else to say."
  44.                 }
  45.  
  46.             chat trigger:
  47.                #Player refuses quest if they want to help NOT SURE IF WORKS/BROKEN
  48.                 'Yes':
  49.                     trigger: /Yes/, I'll help.
  50.                     script:
  51.                    - if !<player.has_flag[started_fish_quest]> {
  52.                         - if !<player.has_flag[finished_fish_quest]> {
  53.                             - ^engage now
  54.                             - flag player started_fish_quest
  55.                             - chat "Great!"
  56.                             - ^give 'item:Fishing_Rod' qty:1
  57.                             - chat "Take my fishing rod!"
  58.                             - ^disengage
  59.                         }
  60.                     }
  61.                 #Player refuses quest if they want to help WORKS
  62.                 'No':
  63.                     trigger: /No/, not now.
  64.                     script:
  65.                    - if !<player.has_flag[started_fish_quest]> {
  66.                         - if !<player.has_flag[finished_fish_quest]> {
  67.                             - chat "Ask again"
  68.                         }
  69.                     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement