1{ 2id: "save_toilet", 3collide_dimensions: ["~player"], 4dies_on_inactive: false, 5zorder: -1, 6 7#on_interact="[if(cycle > 20,sound('DoorOpen.ogg')),animation('open')]" 8on_interact: "[sound('DoorOpen.ogg'), animation('open_door'), fire_event(level.player, 'start_interact')]", 9on_talk: "[ 10 animation('close_door'), 11 fire_event(level.player, 'end_interact'), 12 13 save_game(), 14 checkpoint_game(), 15 16 transient_speech_dialog(level.player, [~The game has been saved.~])]", 17on_end_close_door_anim: "animation('normal')", 18on_cancel_interaction: "if(animation='open_door', animation('close_door'))", 19editor_info: { 20 category: "props", 21}, 22animation: [ 23 { 24 "@base": true, 25 image: "props/save_toilet.png", 26 collide_x: 10, 27 collide_y: 25, 28 collide_w: 20, 29 collide_h: 38, 30 pad: 1, 31 palettes: "@include data/palettes.cfg:seaside_palettes + forest_palettes + cave_palettes", 32 }, 33 { 34 interact_area: "all", 35 id: "normal", 36 rect: [157,62,194,127], 37 frames: 1, 38 duration: 1000, 39 }, 40 { 41 id: "open_door", 42 rect: [1,62,38,127], 43 frames: 5, 44 play_backwards: true, 45 46 #reverse=yes 47 duration: 5, 48 }, 49 { 50 id: "close_door", 51 rect: [1,62,38,127], 52 frames: 5, 53 play_backwards: false, 54 55 #reverse=yes 56 duration: 5, 57 }, 58], 59}