<asl version="550">
<include ref="English.aslx" />
<include ref="Core.aslx" />
<game name="sample">
<gameid>b073bbfb-0e99-45d3-9786-bb395a6bc6b0</gameid>
<firstpublished>2016</firstpublished>
<author>HegemonKhan</author>
<version>1.0</version>
</game>
<object name="room">
<object name="player">
</object>
<object name="mirror">
<inherit name="mirror_type" />
</object>
</object>
<object name="room2">
<object name="mirror2">
<inherit name="mirror_type" />
</object>
</object>
<type name="mirror_type">
<attr name="warp" type="script">
show menu ("Where to?", this.mirror_list, true) {
if (player.parent = result) {
msg ("You're already at this location, silly.")
} else {
MoveObject (player, result)
}
}
</attr>
<attr name="mirror_list" type="objectlist">
<value>room</value>
<value>room2</value>
</attr>
<attr name="displayverbs" type="simplestringlist">warp</attr>
</type>
<verb>
<property>warp</property>
<pattern>warp</pattern>
<defaultexpression>You can't warp with that.</defaultexpression>
</verb>
</asl>
XanMag wrote:Does mirror A always lead to the same place or is it random? Or can one mirror lead to any other of the players choosing?
What do you mean by 'after a certain point'? After a certain event, do all doors become useless and the only mode of travel are mirrors?
This isn't too hard but I'd need these questions answered first.
HegemonKhan wrote:
So, you'll need to add all of the rooms' names that you'd like to be able to travel to, onto/into your Object List Attributes (which can't be done through the GUI~Editor, unfortuantely).
player.MirrorList = NewStringList()
list add (player.MirrorList, "store")
list add (player.MirrorList, "lounge")
ShowMenu ("Where to?", player.MirrorList, true) {
if (not result = null) {
room = GetObject(result)
MoveObject (player, room)
}
}
<object name="orc_1">
<attr name="alias" type="string">orc</attr>
<attr name="dead" type="boolean">false</attr>
<attr name="cash" type="int">50</attr>
<attr name="experience" type="int">25</attr>
<attr name="strength" type="int">10</attr>
<attr name="endurance" type="int">10</attr>
<attr name="dexterity" type="int">10</attr>
<attr name="agility" type="int">10</attr>
<attr name="right_hand" type="object">club</attr>
<attr name="drop_list" type="objectlist">
<value>club</value>
<value>life_potion</value>
<value>food</value>
</attr>
</object>
<object name="orc_2">
<attr name="alias" type="string">orc</attr>
<attr name="dead" type="boolean">false</attr>
<attr name="cash" type="int">50</attr>
<attr name="experience" type="int">25</attr>
<attr name="strength" type="int">10</attr>
<attr name="endurance" type="int">10</attr>
<attr name="dexterity" type="int">10</attr>
<attr name="agility" type="int">10</attr>
<attr name="right_hand" type="object">club</attr>
<attr name="drop_list" type="objectlist">
<value>club</value>
<value>life_potion</value>
<value>food</value>
</attr>
</object>
<object name="orc_3">
<attr name="alias" type="string">orc</attr>
<attr name="dead" type="boolean">false</attr>
<attr name="cash" type="int">50</attr>
<attr name="experience" type="int">25</attr>
<attr name="strength" type="int">10</attr>
<attr name="endurance" type="int">10</attr>
<attr name="dexterity" type="int">10</attr>
<attr name="agility" type="int">10</attr>
<attr name="right_hand" type="object">club</attr>
<attr name="drop_list" type="objectlist">
<value>club</value>
<value>life_potion</value>
<value>food</value>
</attr>
</object>
<object name="orc_4">
<attr name="alias" type="string">orc</attr>
<attr name="dead" type="boolean">false</attr>
<attr name="cash" type="int">50</attr>
<attr name="experience" type="int">25</attr>
<attr name="strength" type="int">10</attr>
<attr name="endurance" type="int">10</attr>
<attr name="dexterity" type="int">10</attr>
<attr name="agility" type="int">10</attr>
<attr name="right_hand" type="object">club</attr>
<attr name="drop_list" type="objectlist">
<value>club</value>
<value>life_potion</value>
<value>food</value>
</attr>
</object>
<object name="orc_5">
<attr name="alias" type="string">orc</attr>
<attr name="dead" type="boolean">false</attr>
<attr name="cash" type="int">50</attr>
<attr name="experience" type="int">25</attr>
<attr name="strength" type="int">10</attr>
<attr name="endurance" type="int">10</attr>
<attr name="dexterity" type="int">10</attr>
<attr name="agility" type="int">10</attr>
<attr name="right_hand" type="object">club</attr>
<attr name="drop_list" type="objectlist">
<value>club</value>
<value>life_potion</value>
<value>food</value>
</attr>
</object><object name=orc_1">
<inherit name="orc_object_type" />
</object>
<object name=orc_2">
<inherit name="orc_object_type" />
</object>
<object name=orc_3">
<inherit name="orc_object_type" />
</object>
<object name=orc_4">
<inherit name="orc_object_type" />
</object>
<object name=orc_5">
<inherit name="orc_object_type" />
</object>
<type name="orc_object_type">
<attr name="alias" type="string">orc</attr>
<attr name="dead" type="boolean">false</attr>
<attr name="cash" type="int">50</attr>
<attr name="experience" type="int">25</attr>
<attr name="strength" type="int">10</attr>
<attr name="endurance" type="int">10</attr>
<attr name="dexterity" type="int">10</attr>
<attr name="agility" type="int">10</attr>
<attr name="right_hand" type="object">club</attr>
<attr name="drop_list" type="objectlist">
<value>club</value>
<value>life_potion</value>
<value>food</value>
</attr>
</type>