Skip to content

Instantly share code, notes, and snippets.

@ShadowApex
Created February 12, 2016 02:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ShadowApex/2af974c39027f9068a7d to your computer and use it in GitHub Desktop.
Save ShadowApex/2af974c39027f9068a7d to your computer and use it in GitHub Desktop.
Maple Bedroom - josepharaoh99
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.0" orientation="orthogonal" renderorder="right-down" width="11" height="9" tilewidth="16" tileheight="16" nextobjectid="30">
<tileset firstgid="1" name="floors and walls" tilewidth="16" tileheight="16" tilecount="88">
<image source="../gfx/tilesets/floorsandwalls.png" width="176" height="128"/>
</tileset>
<tileset firstgid="89" name="furniture" tilewidth="16" tileheight="16" tilecount="72">
<image source="../gfx/tilesets/furniture.png" width="192" height="96"/>
</tileset>
<tileset firstgid="161" name="electronics" tilewidth="16" tileheight="16" tilecount="16">
<image source="../gfx/tilesets/electronics.png" width="64" height="64"/>
</tileset>
<tileset firstgid="177" name="plants" tilewidth="16" tileheight="16" tilecount="16">
<image source="../gfx/tilesets/plants.png" width="64" height="64"/>
</tileset>
<tileset firstgid="193" name="stairs" tilewidth="16" tileheight="16" tilecount="24">
<image source="../gfx/tilesets/stairs.png" width="128" height="48"/>
</tileset>
<layer name="Tile Layer 1" width="11" height="9">
<data encoding="base64" compression="zlib">
eJxjYCANMBKBYUCcCAwDxjiwMhQbE6FWD4qJUYuMaa2WWAAASEoJpg==
</data>
</layer>
<layer name="Tile Layer 2" width="11" height="9">
<data encoding="base64" compression="zlib">
eJxjYKAuYMYhHgPEcWhifDjUlgBxGZR9EohPEWn3RSC+hCZWS6ReEOgkQe1UJHYiECcBcTIJ+rEBAIa3B60=
</data>
</layer>
<layer name="Tile Layer 3" width="11" height="9">
<data encoding="base64" compression="zlib">
eJxjYKAPWAjEi4hUOx2KSQWXgfgKGfoGCwAAy8EEGQ==
</data>
</layer>
<layer name="Above player" width="11" height="9">
<data encoding="base64" compression="zlib">
eJxjYKA/OAzER3DI1aDxTwPxGdo6h+ZAkggMAgCtfQR8
</data>
</layer>
<objectgroup color="#ff0000" name="Collision">
<object id="1" type="collision" x="16" y="32" width="144" height="16"/>
<object id="2" type="collision" x="160" y="48" width="16" height="80"/>
<object id="3" type="collision" x="16" y="128" width="144" height="16"/>
<object id="4" type="collision" x="0" y="48" width="16" height="80"/>
<object id="6" type="collision" x="112" y="64" width="32" height="16"/>
<object id="7" type="collision" x="112" y="48" width="16" height="16"/>
</objectgroup>
<objectgroup color="#ffff00" name="Events">
<object id="9" name="Go Downstairs" type="event" x="128" y="48" width="16" height="16">
<properties>
<property name="act1" value="transition_teleport maple_house_downstairs.tmx,4,2,0.3"/>
<property name="act2" value="player_face down"/>
<property name="cond1" value="is player_at"/>
<property name="cond2" value="is player_facing left"/>
</properties>
</object>
<object id="19" name="Create Maple" type="event" x="0" y="32" width="16" height="16">
<properties>
<property name="act1" value="create_npc Maple,3,4,boss,stand"/>
<property name="act2" value="set_variable maple_bedroom1:true"/>
<property name="cond1" value="not variable_set maple_bedroom1:true"/>
<property name="cond2" value="not npc_exists Maple"/>
</properties>
</object>
<object id="22" name="Maple Pathfind to Player" type="event" x="128" y="80" width="16" height="48">
<properties>
<property name="act1" value="pathfind Maple,6,5"/>
<property name="act2" value="player_stop"/>
<property name="act3" value="set_variable maple_bedroom2:true"/>
<property name="cond1" value="is variable_set maple_bedroom1:true"/>
<property name="cond2" value="is player_at"/>
<property name="cond3" value="not variable_set maple_bedroom2:true"/>
<property name="cond4" value="is npc_exists Maple"/>
</properties>
</object>
<object id="25" name="Maple talk to Player" type="event" x="96" y="80" width="16" height="16">
<properties>
<property name="act1" value="dialog_chain Hey, ${{name}}! Guess what?"/>
<property name="act2" value="dialog_chain I know you can't afford your own Tuxemon."/>
<property name="act3" value="dialog_chain I know where you can get one!!"/>
<property name="act4" value="dialog_chain Go to the junkyard behind the Tuxmart. I'll meet you there."/>
<property name="act5" value="dialog_chain ${{end}}"/>
<property name="act6" value="set_variable maple_bedroom3:true"/>
<property name="act7" value="npc_face Maple,right"/>
<property name="cond1" value="is variable_set maple_bedroom2:true"/>
<property name="cond2" value="is npc_at Maple"/>
<property name="cond3" value="not variable_set maple_bedroom3:true"/>
<property name="cond4" value="is npc_exists Maple"/>
</properties>
</object>
<object id="28" name="Maple Pathfind to stairs" type="event" x="96" y="80" width="16" height="16">
<properties>
<property name="act1" value="pathfind Maple,8,3"/>
<property name="act2" value="player_stop"/>
<property name="cond1" value="is variable_set maple_bedroom3:true"/>
<property name="cond2" value="not dialog_open"/>
<property name="cond3" value="is npc_exists Maple"/>
</properties>
</object>
<object id="29" name="Maple go downstairs" type="event" x="128" y="48" width="16" height="16">
<properties>
<property name="act1" value="remove_npc Maple"/>
<property name="act2" value="player_resume"/>
<property name="cond1" value="is variable_set maple_bedroom3:true"/>
<property name="cond2" value="is npc_at Maple"/>
</properties>
</object>
</objectgroup>
</map>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment