Grid Map

timthetim823
14 Dec 2018, 16:50Hello everyone,
I`m completely lost on how to make the grid map in my text adventure game. I was hoping for a map/ movement system based off of http://textadventures.co.uk/games/view/gb5rrcs-8u_5fxbvwbtf8a/avast-ye-mateys I enjoyed how you have turns to get to point A to B. Super lost on all of these.
<asl version="580">
<include ref="English.aslx" />
<include ref="Core.aslx" />
<game name="A Trizbort Map">
<gameid>ab870ee7-3d12-4c02-8f66-63712303d8e1</gameid>
<version>1.0</version>
<firstpublished>2018</firstpublished>
<author>A Trizbort User</author>
<description />
<showhealth />
<showmoney />
<gridmap />
<respondtogridclicks />
<showpanes type="boolean">false</showpanes>
<showcommandbar type="boolean">false</showcommandbar>
<mapexitcolour>LightSkyBlue</mapexitcolour>
</game>
<object name="Startingoff">
<inherit name="editor_room" />
<alias>Starting off</alias>
<attr name="grid_width" type="int">4</attr>
<attr name="grid_length" type="int">2</attr>
<attr name="grid_fill">Transparent</attr>
<attr name="grid_border">Transparent</attr>
<attr name="implementation_notes">Starting off </attr>
<description>Starting off </description>
<exit alias="west" to="Uplua">
<inherit name="westdirection" />
</exit>
<object name="player">
<inherit name="editor_object" />
<inherit name="editor_player" />
</object>
</object>
<object name="Strurg">
<inherit name="editor_room" />
<alias>Strurg</alias>
<attr name="grid_width" type="int">2</attr>
<attr name="grid_length" type="int">2</attr>
<attr name="grid_fill">Transparent</attr>
<attr name="grid_border">Transparent</attr>
<implementation_notes />
<attr name="grid_label_colour">Crimson</attr>
<exit alias="south" to="Tedrines">
<inherit name="southdirection" />
</exit>
<exit alias="northeast" to="Blus">
<inherit name="northeastdirection" />
</exit>
<exit alias="northwest" to="Guglos">
<inherit name="northwestdirection" />
</exit>
</object>
<object name="Guglos">
<inherit name="editor_room" />
<alias>Guglos</alias>
<attr name="grid_width" type="int">2</attr>
<attr name="grid_length" type="int">2</attr>
<attr name="grid_fill">Transparent</attr>
<attr name="grid_border">Transparent</attr>
<implementation_notes />
<exit alias="south" to="Strurg">
<inherit name="southdirection" />
</exit>
<exit alias="east" to="Blus">
<inherit name="eastdirection" />
</exit>
</object>
<object name="Blus">
<inherit name="editor_room" />
<alias>Blus</alias>
<attr name="grid_width" type="int">2</attr>
<attr name="grid_length" type="int">2</attr>
<attr name="grid_fill">Transparent</attr>
<attr name="grid_border">Transparent</attr>
<implementation_notes />
<exit alias="south" to="Strurg">
<inherit name="southdirection" />
</exit>
<exit alias="east" to="Adrington">
<inherit name="eastdirection" />
</exit>
<exit alias="west" to="Guglos">
<inherit name="westdirection" />
</exit>
</object>
<object name="Tedrines">
<inherit name="editor_room" />
<alias>Tedrines</alias>
<attr name="grid_width" type="int">3</attr>
<attr name="grid_length" type="int">3</attr>
<attr name="grid_fill">Transparent</attr>
<attr name="grid_border">Transparent</attr>
<implementation_notes />
<exit alias="north" to="Strurg">
<inherit name="northdirection" />
</exit>
<exit alias="south" to="Egrea">
<inherit name="southdirection" />
</exit>
</object>
<object name="Uplua">
<inherit name="editor_room" />
<alias>Uplua</alias>
<attr name="grid_width" type="int">6</attr>
<attr name="grid_length" type="int">6</attr>
<attr name="grid_fill">Transparent</attr>
<attr name="grid_border">Transparent</attr>
<implementation_notes />
<exit alias="north" to="Blus">
<inherit name="northdirection" />
</exit>
<exit alias="south" to="Egrea">
<inherit name="southdirection" />
</exit>
<exit alias="southeast" to="Sceoca">
<inherit name="southeastdirection" />
</exit>
<exit alias="southwest" to="Frenia">
<inherit name="southwestdirection" />
</exit>
<exit alias="northwest" to="Strurg">
<inherit name="northwestdirection" />
</exit>
</object>
<object name="Frenia">
<inherit name="editor_room" />
<alias>Frenia</alias>
<attr name="grid_width" type="int">2</attr>
<attr name="grid_length" type="int">2</attr>
<attr name="grid_fill">Transparent</attr>
<attr name="grid_border">Transparent</attr>
<implementation_notes />
<exit alias="east" to="Uplua">
<inherit name="eastdirection" />
</exit>
<exit alias="southeast" to="Egrea">
<inherit name="southeastdirection" />
</exit>
</object>
<object name="Egrea">
<inherit name="editor_room" />
<alias>Egrea</alias>
<attr name="grid_width" type="int">3</attr>
<attr name="grid_length" type="int">3</attr>
<attr name="grid_fill">Transparent</attr>
<attr name="grid_border">Transparent</attr>
<implementation_notes />
<exit alias="north" to="Uplua">
<inherit name="northdirection" />
</exit>
<exit alias="east" to="Sceoca">
<inherit name="eastdirection" />
</exit>
<exit alias="west" to="Frenia">
<inherit name="westdirection" />
</exit>
<exit alias="southwest" to="Tedrines">
<inherit name="southwestdirection" />
</exit>
</object>
<object name="Sceoca">
<inherit name="editor_room" />
<alias>Sceoca</alias>
<attr name="grid_width" type="int">2</attr>
<attr name="grid_length" type="int">2</attr>
<attr name="grid_fill">Transparent</attr>
<attr name="grid_border">Transparent</attr>
<implementation_notes />
<exit alias="north" to="Adrington">
<inherit name="northdirection" />
</exit>
<exit alias="west" to="Uplua">
<inherit name="westdirection" />
</exit>
<exit alias="southwest" to="Egrea">
<inherit name="southwestdirection" />
</exit>
</object>
<object name="Adrington">
<inherit name="editor_room" />
<alias>Adrington</alias>
<attr name="grid_width" type="int">6</attr>
<attr name="grid_length" type="int">5</attr>
<attr name="grid_fill">Transparent</attr>
<attr name="grid_border">Transparent</attr>
<implementation_notes />
<exit alias="Mafliajan" to="Mafliajan">
<inherit name="northdirection" />
<runscript type="boolean">false</runscript>
</exit>
<exit alias="south" to="Sceoca">
<inherit name="southdirection" />
</exit>
<exit alias="west" to="Blus">
<inherit name="westdirection" />
</exit>
</object>
<object name="Mafliajan">
<inherit name="editor_room" />
<alias>Mafliajan</alias>
<attr name="grid_width" type="int">2</attr>
<attr name="grid_length" type="int">2</attr>
<attr name="grid_fill">Transparent</attr>
<attr name="grid_border">Transparent</attr>
<implementation_notes />
<exit alias="southeast" to="Gleotan">
<inherit name="southeastdirection" />
</exit>
<exit alias="southwest" to="Adrington">
<inherit name="southwestdirection" />
</exit>
</object>
<object name="Gleotan">
<inherit name="editor_room" />
<alias>Gleotan</alias>
<attr name="grid_width" type="int">2</attr>
<attr name="grid_length" type="int">2</attr>
<attr name="grid_fill">Transparent</attr>
<attr name="grid_border">Transparent</attr>
<implementation_notes />
<exit alias="north" to="Mafliajan">
<inherit name="northdirection" />
</exit>
<exit alias="southwest" to="Brein">
<inherit name="southwestdirection" />
</exit>
</object>
<object name="Brein">
<inherit name="editor_room" />
<alias>Brein</alias>
<attr name="grid_width" type="int">2</attr>
<attr name="grid_length" type="int">2</attr>
<attr name="grid_fill">Transparent</attr>
<attr name="grid_border">Transparent</attr>
<implementation_notes />
<exit alias="north" to="Adrington">
<inherit name="northdirection" />
</exit>
<exit alias="east" to="Gleotan">
<inherit name="eastdirection" />
</exit>
</object>
</asl>
As you can see I have a ton of rooms but no idea how to code the map / turn-based movement?
Thank you all!!
jmnevil54
14 Dec 2018, 20:40Dark Lizerd makes everything with numbers. He made a easter style game that works like minesweep, with numbers.
I think you just store two (or more) sets of numbers. 1,1 is the top left, 12,12 may be the bottom right, if you want. It's a checkerboard pattern.
It's this game!
http://textadventures.co.uk/games/view/h4sdj2gwoeonmcpiltevgg/egg-hunt