Paste #121125: Unnamed Denizen Script Paste

Date: 2024/03/18 05:53:10 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


tool_crafting_mastery:
    type: task
    debug: true
    script:
        - define item <[item]>
        - narrate <[item]>
        - if !<player.has_flag[syer.mastery.<[item]>_first_craft]>:
            - flag <player> syer.mastery.<[item]>_first_craft:true
        - flag <player> syer.mastery.<[item]>:++
        - define m_ID <player.flag[syer.mastery.<[item]>]>
        - foreach <script[crafting_mastery].parsed_key[<[item]>]> as:test:
            - define min <[test].get[min]>
            - define max <[test].get[max]>
            - narrate "min: <[min]> max: <[max]>"
            - if <[m_ID]> >= <[min]> and <[m_ID]> < <[max]>:
                - narrate "stop"
                - stop