ON INITEND {
 SET §reflection_mode 0
 SET §key 0
 SET §pog_is_dead 0
 OBJECT_HIDE SELF YES
 SETGROUP -r £friend
 SET £friend "NONE"
 ACCEPT
}

ON RELOAD {
 IF (#player_on_quest == 1) {
  IF (§pog_is_dead == 1) {
   IF (§key == 0) {
    SET §key 1
    OBJECT_HIDE SELF NO
    INVENTORY ADDFROMSCENE KEY_BASE_0042
    SET §enemy 1
    SENDEVENT ATTACK_PLAYER SELF ""
    ACCEPT
   }
   ACCEPT
  }
  ACCEPT
 }
 ACCEPT
}

ON CUSTOM {
 IF (^$PARAM1 == "POG_IS_DEAD") {
  SET §pog_is_dead 1
  ACCEPT
 }
 ACCEPT
}