Paste #3386: Untitled Paste

Date: 2014/04/10 16:00:29 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


bigC4:
  type: world
  events:
    on player right clicks with i@c4explosives:
    - flag player C4:->:<context.location>
    - narrate "C4 has been set at <context.location.simple>"

    on player right clicks entity with i@c4explosives:
    - flag player C4entity:->:<context.entity>
    - narrate "you have placed C4 on <context.entity.name>"
    - flag player C4entity:<-:<player>
    on player right clicks with i@c4dettrigger:
    - if !<player.flag[C4timer]> {
      - foreach <player.flag[C4].as_list> {
        - explode %value% power:10
        }
      - foreach <player.flag[C4entity].as_list> {
        - explode <value.location> power:10
        }
      }
    - flag player C4:!
    - flag player C4entity:!
"c4explosives":
 type: item
 material: 405
 display name: C4

"c4dettrigger":
  type: item
  material: 131
  display name: 'C4_det_trigger'