there's a toggle button for the GUI and Code View modes at the top of the screen, looks like a piece of notepaper, between the play and ? (help) buttons.
Examples:
via the GUI mode:Object (player) -> Setup (Tab) -> Description -> [Run Script] ->
Add New Script -> Variables -> Set A Variable or Attribute -> Set Variable (result) = [random number] between [number] (1) and [number] (3)
Add New Script -> Scripts -> Switch... -> (result)
-> Cases -> Add -> "1"
->-> Print [message] ("You are the hero")
-> Cases -> Add -> "2"
->-> Print [message] ("You are the best")
-> Cases -> Add -> "3"
->-> Print [message] ("You are the champ")
Object (room) -> Objects (Tab) -> Add -> (name) orc (and) (parent) room (it should already be set to room)
Object (orc) -> Setup (Tab) -> Description -> [Run Script] ->
Add New Script -> Variables -> Set A Variable or Attribute -> Set Variable (result) = [random number] between [number] (1) and [number] (3)
Add New Script -> Scripts -> Switch... -> (result)
-> Cases -> Add -> "1"
->-> Print [message] ("He's green")
-> Cases -> Add -> "2"
->-> Print [message] ("He's mean")
-> Cases -> Add -> "3"
->-> Print [message] ("He's hungry")
via the Code View mode:<asl version="530">
<include ref="English.aslx" />
<include ref="Core.aslx" />
<game name="Testing Game Stuff">
<gameid>d83ba5bb-2e3c-4f31-80c9-3e88a2dc082c</gameid>
<version>1.0</version>
<pov type="object">player</pov>
</game>
<object name="room">
<inherit name="editor_room" />
<object name="player">
<inherit name="defaultplayer" />
<inherit name="editor_player" />
<look type="script">
result = GetRandomInt(1,3)
switch (result) {
case ("1") {
msg ("You are the hero")
}
case ("2") {
msg ("You are the best")
}
case ("3") {
msg ("You are the champ")
}
}
</look>
</object>
<object name="orc">
<look type="script">
result = GetRandomInt (1,3)
switch (result) {
case ("1") {
msg ("He's green")
}
case ("2") {
msg ("He's mean")
}
case ("3") {
msg ("He's hungry")
}
}
</look>
</object>
</object>
</asl>
-------------------
you can copy and paste this code, and try it out yourself. simply type in: look at player/orc (or use the display pane's button or text's hyperlink choice for the orc)
----------------
obviously, adjust the code as you want to do so for each object that you want your random descriptions for.
------------
let me know if you're still confused or need help!