Sample: Simple Map: Difference between revisions

From SkyCorp Global
Jump to navigation Jump to search
 
Line 9: Line 9:
'''Author:''' SkyCorp
'''Author:''' SkyCorp


== Entity JSON Code ==
== Map JSON Code ==


<syntaxhighlight lang="json">
<syntaxhighlight lang="json">

Latest revision as of 06:59, 6 March 2018

Note - this map is a modification for The Underworld. Visit the new Mods Portal for more mods, mods on the wiki are no longer maintained. You can put it in-game by visiting the Debug Mod Control Panel in the debug rooms and browse to this mod or copy/paste the JSON below into the program window.
Map Preview

Map Details

This map is intended to be a simple example of a user created map for Underworld.

Dependencies: In order for the sodas to spawn, Sample Soda should be loaded before visiting the map.

Author: SkyCorp

Map JSON Code

{
	"type": "MAP",
	"mapID": "Sample Simple Map",
	"startingRoomID": 1,	
	"map": "77u/PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjx0cml6Ym9ydCB2ZXJzaW9uPSIxLjUuOS45Ij4NCgk8aW5mbyAvPg0KCTxtYXA+DQoJCTxyb29tIGlkPSIxIiBuYW1lPSJUZXN0IFJvb20gVyIgc3VidGl0bGU9IiIgeD0iLTM1MiIgeT0iMCIgdz0iOTYiIGg9Ijk2IiByZWdpb249Ik5vUmVnaW9uIiBoYW5kRHJhd249InllcyIgYWxsY29ybmVyc2VxdWFsPSJ5ZXMiIGVsbGlwc2U9Im5vIiByb3VuZGVkQ29ybmVycz0ibm8iIG9jdGFnb25hbD0ibm8iIGNvcm5lclRvcExlZnQ9IjE1IiBjb3JuZXJUb3BSaWdodD0iMTUiIGNvcm5lckJvdHRvbUxlZnQ9IjE1IiBjb3JuZXJCb3R0b21SaWdodD0iMTUiIGJvcmRlcnN0eWxlPSJTb2xpZCIgZGVzY3JpcHRpb249IlRoaXMgcm9vbSBpcyBpbiB0aGUgd2VzdC4iIHJvb21GaWxsPSIiIHNlY29uZEZpbGw9IiIgc2Vjb25kRmlsbExvY2F0aW9uPSJCb3R0b20iIHJvb21Cb3JkZXI9IiIgcm9vbUxhcm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wPC9ob3Jpem9udGFsPg0KCQkJPHZlcnRpY2FsPjA8L3ZlcnRpY2FsPg0KCQk8L21hcmdpbnM+DQoJCTxrZXlwYWROYXZpZ2F0aW9uPg0KCQkJPGNyZWF0aW9uTW9kaWZpZXI+Y29udHJvbDwvY3JlYXRpb25Nb2RpZmllcj4NCgkJCTx1bmV4cGxvcmVkTW9kaWZpZXI+YWx0PC91bmV4cGxvcmVkTW9kaWZpZXI+DQoJCTwva2V5cGFkTmF2aWdhdGlvbj4NCgk8L3NldHRpbmdzPg0KPC90cml6Ym9ydD4="
}

Map Source

To view this in trizbort, copy/paste this into a text file with the .trizbort extension. (It is not expected or needed to write trizbort XML by hand)

<?xml version="1.0" encoding="utf-8"?>
<trizbort version="1.5.9.9">
	<info />
	<map>
		<room id="1" name="Test Room W" subtitle="" x="-352" y="0" w="96" h="96" region="NoRegion" handDrawn="yes" allcornersequal="yes" ellipse="no" roundedCorners="no" octagonal="no" cornerTopLeft="15" cornerTopRight="15" cornerBottomLeft="15" cornerBottomRight="15" borderstyle="Solid" description="This room is in the west." roomFill="" secondFill="" secondFillLocation="Bottom" roomBorder="" roomLargeText="" roomSmallText="" />
		<room id="2" name="Big Public Room" subtitle="" x="-160" y="-32" w="224" h="160" region="NoRegion" handDrawn="yes" allcornersequal="yes" ellipse="no" roundedCorners="no" octagonal="no" cornerTopLeft="15" cornerTopRight="15" cornerBottomLeft="15" cornerBottomRight="15" borderstyle="Solid" isDark="yes" description="A public area." roomFill="" secondFill="" secondFillLocation="Bottom" roomBorder="" roomLargeText="" roomSmallText="" />
		<line id="3" name="" description="">
			<dock index="0" id="1" port="e" />
			<dock index="1" id="2" port="w" />
		</line>
		<room id="4" name="Link Test" subtitle="" x="-96" y="-192" w="96" h="96" region="NoRegion" handDrawn="yes" allcornersequal="yes" ellipse="no" roundedCorners="no" octagonal="no" cornerTopLeft="15" cornerTopRight="15" cornerBottomLeft="15" cornerBottomRight="15" borderstyle="Solid" description="North will return back to the game world." roomFill="" secondFill="" secondFillLocation="Bottom" roomBorder="" roomLargeText="" roomSmallText="" />
		<line id="5" name="" description="">
			<dock index="0" id="4" port="s" />
			<dock index="1" id="2" port="n" />
		</line>
		<room id="6" name="Entity Test" subtitle="" x="160" y="0" w="96" h="96" region="NoRegion" handDrawn="yes" allcornersequal="yes" ellipse="no" roundedCorners="no" octagonal="no" cornerTopLeft="15" cornerTopRight="15" cornerBottomLeft="15" cornerBottomRight="15" borderstyle="Solid" description="A fox lives here." roomFill="" secondFill="" secondFillLocation="Bottom" roomBorder="" roomLargeText="" roomSmallText="">
			<objects>Wild Fox</objects>
		</room>
		<line id="7" name="" description="">
			<dock index="0" id="2" port="e" />
			<dock index="1" id="6" port="w" />
		</line>
		<line id="8" name="default:401" description="">
			<dock index="0" id="4" port="n" />
			<point index="1" x="-64" y="-416" />
		</line>
		<room id="9" name="Custom Entity Test" subtitle="" x="-96" y="192" w="96" h="96" region="NoRegion" handDrawn="yes" allcornersequal="yes" ellipse="no" roundedCorners="no" octagonal="no" cornerTopLeft="15" cornerTopRight="15" cornerBottomLeft="15" cornerBottomRight="15" borderstyle="Solid" description="The two soda entities will only spawn if you create the entity in the control panel and THEN visit this room." roomFill="" secondFill="" secondFillLocation="Bottom" roomBorder="" roomLargeText="" roomSmallText="">
			<objects>Sample Soda|Sample Soda</objects>
		</room>
		<line id="10" name="" description="">
			<dock index="0" id="2" port="s" />
			<dock index="1" id="9" port="n" />
		</line>
	</map>
	<settings>
		<colors>
			<canvas>White</canvas>
			<border>MidnightBlue</border>
			<line>MidnightBlue</line>
			<selectedLine>Gold</selectedLine>
			<hoverLine>DarkOrange</hoverLine>
			<largeText>MidnightBlue</largeText>
			<smallText>MidnightBlue</smallText>
			<lineText>MidnightBlue</lineText>
			<grid>#F5F5F5</grid>
			<startRoom>GreenYellow</startRoom>
			<endRoom>Red</endRoom>
		</colors>
		<regions>
			<NoRegion Name="NoRegion" TextColor="Blue">White</NoRegion>
		</regions>
		<fonts>
			<room size="13">Arial</room>
			<object size="11">Arial</object>
			<line size="9">Arial</line>
		</fonts>
		<grid>
			<snapTo>yes</snapTo>
			<visible>yes</visible>
			<showOrigin>yes</showOrigin>
			<size>32</size>
		</grid>
		<lines>
			<width>2</width>
			<arrowSize>12</arrowSize>
			<textOffset>4</textOffset>
		</lines>
		<rooms>
			<darknessStripeSize>24</darknessStripeSize>
			<objectListOffset>4</objectListOffset>
			<connectionStalkLength>32</connectionStalkLength>
			<preferredDistanceBetweenRooms>64</preferredDistanceBetweenRooms>
			<defaultRoomName>Cave</defaultRoomName>
		</rooms>
		<ui>
			<handleSize>12</handleSize>
			<snapToElementSize>16</snapToElementSize>
		</ui>
		<margins>
			<documentSpecific>no</documentSpecific>
			<horizontal>0</horizontal>
			<vertical>0</vertical>
		</margins>
		<keypadNavigation>
			<creationModifier>control</creationModifier>
			<unexploredModifier>alt</unexploredModifier>
		</keypadNavigation>
	</settings>
</trizbort>