Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TestGUI:
- type: assignment
- interact scripts:
- - 1 TestGUIInteract
- TestGUIInteract:
- type: interact
- steps:
- 1:
- click trigger:
- script:
- - chat "Hey, I have a Quest for you."
- - wait 1
- - chat "Do you accept it?"
- - inventory open d:in@TestGUI_menu
- 2:
- click trigger:
- script:
- - if <player.inventory.contains[potato]> {
- - chat "Nice!"
- - wait 4
- - chat "Thanks!"
- }
- else {
- - chat "You don't have a potato!!"
- }
- TestGUI_menu:
- type: inventory
- title: What is your answer??
- size: 9
- slots:
- - "[] [] [TestGUI_menu_yes] [] [] [] [TestGUI_menu_no] [] []"
- TestGUI_menu_ano:
- type: item
- material: green_wool
- display name: §a§lANO
- TestGUI_menu_ne:
- type: item
- material: red_wool
- display name: §c§lNE
- TestGUI_menu_handler:
- type: world
- events:
- on player clicks in TestGUI_menu:
- - determine cancelled
- on player drags in TestGUI_menu:
- - determine cancelled
- on player clicks TestGUI_menu_yes in TestGUI_menu:
- - inventory close d:i@TestGUI_menu
- - narrate format:MenuFormat "Great!"
- - narrate format:MenuFormat "Bring me a potato!"
- on player clicks TestGUI_menu_no in TestGUI_menu:
- - inventory close d:i@TestGUI_menu
- - narrate format:MenuFormat "Ok!"
- - wait 4
- - narrate format:MenuFormat "Screw you then!"
- MenuFormat:
- type: format
- format: <&2><npc.name><&co> <&a><text>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement