Date: 2015/11/05 01:21:05 UTC-08:00
Type: Denizen Script
Yay_Equipment:
type: world
events:
on armor command:
- define Given li@
- if <player.equipment.head.material.name> == air {
- equip <player> head:leather_helmet
- define given <def[Given].include[Head]>
}
- if <player.equipment.chestplate.material.name> == air {
- equip <player> chest:leather_chestplate
- define Given <def[Given].include[Chest]>
}
- if <player.equipment.leggings.material.name> == air {
- equip <player> legs:leather_leggings
- define Given <def[Given].include[Leggings]>
}
- if <player.equipment.boots.material.name> == air {
- equip <player> boots:leather_boots
- define Given <def[Given].include[Boots]>
}
- if <def[Given].is_empty.not> {
- narrate "You have been equipped with <def[Given].formatted>."
}