Paste #69798: Untitled Paste

Date: 2020/05/28 04:38:32 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


level_up:
  type: assignment
  actions:
    on assignment:
    - trigger name:click state:true
    - trigger name:chat state:true
  on click:
  - chat "<&c>So you want to become a guild master? &e(Anwser yes or no)"
  interact scripts:
  - level_up_yes
  - level_up_no

level_up_yes:
  type: interact
  steps:
      1:
  trigger: "/Yes/ thats the plan!"
  script:
  - chat "Well lets see then..."
  - if <player.groups.contains[guildmaster]>:
    - narrate "<&c>But you are already a GuildMaster you fool!"
    - stop
  - if <player.money> > 500:
    - chat "Ah, exactly 500 Gold Coins. You know, Payment always puts a smile on my face."
    - group set guildmaster
    - wait 2
    - narrate "and its done! Everything is in order and you can now start your own Guild!"
  - else:
    - narrate "<&c>Are you taking me for a fool?, This is not enough! You need 500Gc"
    2:
    trigger: "/no/ i dont!"
    script:
    - chat "<&c>Why are you talking to me then!"
    - stop