Paste #57178: Untitled Paste

Date: 2019/08/20 20:55:18 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17


CarthageSurveying:
  type: world
  events:
    on player breaks andesite|diorite in CarthageGathering:
      - if !<player.has_flag[CarthageSurveying]> queue clear
      - if <util.random.int[1].to[50].is[MORE].than[40]>:
        - determine li@i@salt
        - if !<player.has_flag[CarthageSurveying_Done]>:
          - if !<player.has_flag[CarthageSalt]>:
            - narrate "<&b>You found salt!"
            - flag player CarthageSalt:+:1
            - queue clear
          - flag player CarthageSalt:+:1
          - if <player.flag[CarthageSalt]> >= 10:
            - flag player CarthageSurveying_Done
            - flag CarthageSalt:!
            - narrate "<&3>This should be enough. Return to the explorer."