Paste #858: soulbound

Date: 2014/01/01 18:35:48 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8


on player death:
    - ^flag player tempinv:!
    - ^foreach <player.inventory.list_contents.aslist> {
       - ^if <%value%.lore> contains '<&5><&8><&1><&9><&5><&o>soulbound-<player.name>' ^flag player "soulbound:->:%value%"
           else ^flag player "tempinv:->:%value%
       }
    - ^narrate "<&5>* you dropped<&8><&co> <&b><player.flag[tempinv].formatted>"
    - ^determine "DROPS <player.flag[tempinv].aslist>" }