<asl version="550">
<include ref="English.aslx" />
<include ref="Core.aslx" />
<game name="xxx">
<gameid>xxx</gameid>
<start type="script">
// your scripts
</start>
</game>
<object name="room">
<inherit name="editor_room" />
<object name="player">
<inherit name="editor_object" />
</inherit name="editor_player" />
</object>
</object>
</asl>
<asl version="550">
<include ref="English.aslx" />
<include ref="Core.aslx" />
<game name="xxx">
<gameid>xxx</gameid>
<start type="script">
show menu ("What is your species?", split ("human;elf", ";"), false) {
// the quest game engine automatically (hidden from you) sets: result = your_selected_choice
player.species = result
switch (player.species) {
case ("human") {
player.strength = 2
player.intelligence = 1
show menu ("What is your race?", split ("european;asian;arabian;african;american", ";"), false) {
// the quest game engine automatically (hidden from you) sets: result = your_selected_choice
player.race = result
switch (player.race) {
case ("european") {
player.strength = player.strength + 1
}
case ("asian") {
player.strength = player.strength + 2
}
case ("arabian") {
player.strength = player.strength + 3
}
case ("african") {
player.strength = player.strength + 4
}
case ("american") {
player.strength = player.strength + 5
}
}
}
}
case ("elf") {
player.strength = 1
player.intelligence = 2
show menu ("What is your race?", split ("high;light;dark;night;wood", ";"), false) {
// the quest game engine automatically (hidden from you) sets: result = your_selected_choice
player.race = result
switch (player.race) {
case ("high") {
player.intelligence = player.intelligence + 1
}
case ("light") {
player.intelligence = player.intelligence + 2
}
case ("dark") {
player.intelligence = player.intelligence + 3
}
case ("night") {
player.intelligence = player.intelligence + 4
}
case ("wood") {
player.intelligence = player.intelligence + 5
}
}
}
}
}
}
on ready {
wait {
msg ("You are a " + player.race + " " + player.species + ".")
msg ("Strength: " + player.strength)
msg ("Intelligence: " + player.intelligence)
}
}
</start>
</game>
<object name="room">
<inherit name="editor_room" />
<object name="player">
<inherit name="editor_object" />
</inherit name="editor_player" />
</object>
</object>
</asl>
Dynamic Expressions of String Attributes:
msg ("{player.alias} is a {player.gender_string} {player.species} {player.race} {player.class}.")