SHARE
TWEET

Untitled

a guest Feb 11th, 2018 108 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. TestGUI:
  3.     type: assignment
  4.     interact scripts:
  5.     - 1 TestGUIInteract
  6.    
  7. TestGUIInteract:
  8.     type: interact
  9.     steps:
  10.         1:
  11.             click trigger:
  12.                 script:
  13.                 - chat "Hey, I have a Quest for you."
  14.                 - wait 1
  15.                 - chat "Do you accept it?"
  16.                 - inventory open d:in@TestGUI_menu
  17.         2:
  18.             click trigger:
  19.                 script:
  20.                 - if <player.inventory.contains[potato]> {
  21.                     - chat "Nice!"
  22.                     - wait 4
  23.                     - chat "Thanks!"
  24.                     }
  25.                   else {
  26.                     - chat "You don't have a potato!!"
  27.                     }
  28.                
  29. TestGUI_menu:
  30.     type: inventory
  31.     title: What is your answer??
  32.     size: 9
  33.     slots:
  34.     - "[] [] [TestGUI_menu_yes] [] [] [] [TestGUI_menu_no] [] []"
  35.    
  36. TestGUI_menu_ano:
  37.     type: item
  38.     material: green_wool
  39.     display name: §a§lANO
  40.  
  41. TestGUI_menu_ne:
  42.     type: item
  43.     material: red_wool
  44.     display name: §c§lNE
  45.    
  46. TestGUI_menu_handler:
  47.     type: world
  48.     events:
  49.         on player clicks in TestGUI_menu:
  50.         - determine cancelled
  51.         on player drags in TestGUI_menu:
  52.         - determine cancelled
  53.         on player clicks TestGUI_menu_yes in TestGUI_menu:
  54.         - inventory close d:i@TestGUI_menu
  55.         - narrate format:MenuFormat "Great!"
  56.         - narrate format:MenuFormat "Bring me a potato!"
  57.         on player clicks TestGUI_menu_no in TestGUI_menu:
  58.         - inventory close d:i@TestGUI_menu
  59.         - narrate format:MenuFormat "Ok!"
  60.         - wait 4
  61.         - narrate format:MenuFormat "Screw you then!"
  62.        
  63. MenuFormat:
  64.     type: format
  65.     format: <&2><npc.name><&co> <&a><text>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top