@ XanMag:
a "simple" (not really) way to use the 'MoveObject' Script to do your randomization:
create an String~Object List Attribute in your 'game' Game Object, and add all of the rooms that you want to teleport to, into it (or you can leave it without any rooms, and use events~scripts to add rooms to teleport to, as you progress~advance through the game). for example (a bit fancy using scripting instead of the GUI~EDitor 'adding attributes' method ~ as if you had lots of rooms, you want to use scripting to do the work, not your own manual work for each Object, lol):
<game name="xxx">
<start type="script">
game.teleport_all_rooms_list = NewObjectList ()
foreach (object_variable, AllObjects ()) {
if (HasString (object_variable, "type_of_object") and object_variable.type_of_object = "room") {
list add (game.teleport_all_rooms_list, object_variable)
}
}
</start>
</game>
<object name="dungeon_1">
<attr name="type_of_object" type="string">room</attr>
</object>
<object name="table_1">
<attr name="type_of_object" type="string">table</attr>
</object>
then for your 'MoveObject' Script's randomization:
MoveObject (player, ObjectListItem (game.teleport_all_rooms_list, GetRandomInt (0, ListCount (game.teleport_all_rooms_list) - 1))
if this doesn't work, let me know, as I prefer using String Lists, which can be done for this, and thus scripting may have some errors in trying to use 'Objectlist' Attributes, as I'm a bit green with them (hardly ever use them, as I always get confused and do the scripting wrong for them, lol).
-----------
@BenM:
I'll have to look up the scripting~command needed for it in the quest doc site (give me a few moments).
and, a simple way to do randomized local responses in your 'msg' Script:
is to use the 'random' Text Processor Command:
http://docs.textadventures.co.uk/quest/ ... essor.html{random:text 1:text 2:text 3}
Choose text at random
--
run as script -> add new script -> output -> 'print a message' Script -> (see below, for an example)
print [expression] "{random: Hi: Hello: Howdy: Kunichiwa: Hola}, how are you? My name is {random: HegemonKhan: Hegemon: Hege: Khan: HK}."
the entire message (if you don't use any '+ VARIABLES +' ) must be within the double quotes. And your 'random text processor commands' must be withing the curly brackets.
----
also, take a look at all the other Text Processor Commands too, they're hopefully understandable, and lets to you a lot of cool stuff pretty easily, until you learn to work with the Expressions themselves better, using text+VARIABLES, and the 'if' Scripts well too.