Paste #6737: Edit of P#6735 - Untitled Paste

Date: 2014/07/11 14:29:14 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


#
#   Quartermaster for Prison S
#
"quartermaster":
  type: assignment
  debug: true
  actions:
    on assignment:
    - trigger name:proximity state:true radius:5
    - lookclose state:true
    on enter proximity:
    - narrate "Quartermaster says: <&qo>I sell water breathing potions.  If you want one, they are $10,000 each.<&qo>"
  interact scripts:
  - 10 qmshop
qmshop:
  type: interact
  debug: true
  steps:
    Start*:
      click trigger:
        script:
        - if <player.money> >= 10000 {
          - take money 10000
          - give 373:8269 qty:1
          - chat "Thank you for your business."
          } else {
          - chat "You don't have enough money."
          }