Date: 2018/11/12 12:31:27 UTC-08:00
Type: Denizen Script
Guilde_eventSuite2:
type: world
debug: false
events:
on ARMOR_STAND damaged:
- inject guildeSysteme_ProtectionHandler_Task_ForArmorStand instantly
guildeSysteme_ProtectionHandler_Task_ForArmorStand:
type: task
debug: false
script:
- if <context.entity.location.regions.is_empty.not||false> queue clear
- if <li@Elysea|Centre.contains[<context.entity.location.world.name>].not||false> queue clear
- if <context.entity.location.cuboids.is_empty||false> queue clear
- if <context.entity.location.cuboids.get[1].after[cu@].starts_with[ruine]||false> queue clear
- if <context.entity.location.cuboids.get[1].after[cu@].starts_with[guilde]||false> || <context.entity.location.cuboids.get[1].after[cu@].starts_with[capture]||false> {
- define guilde 'Guilde_<context.entity.location.cuboids.get[1].split[_].get[4]||false>'
- if <def[guilde].to_uppercase> != <player.flag[guilde]||false> {
- determine cancelled
}
}