Date: 2019/08/20 20:55:18 UTC-07:00
Type: Denizen Script
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."