Skip to content
Discussion options

You must be logged in to vote

For rooms, it should be room1.visited = true
For objects/npcs, it should be gary.timesexamined > 0
If you want the dialogue to be natural and only have 1 response, else if is recommended

if (room4.visited=true) {
  msg ("mary: Ooooh, you want to buy the dark titan,<br/>it costs a mere $5 billion")
}
else if (room3.visited=true) {
  msg ("mary: The pegasus is not for sale!")
}
else if (room2.visited=true) {
  msg ("mary: The zen dome is for public use,<br/>if you buy it, the building is still opened to public,<br/>because the land area is owned by the government")
}
else if (room1.visited=true) {
  msg ("mary: Skyscraper costs $5 million")
}
if (gary.timesexamined > 0) {
  msg ("<br/>mary:…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Wolfie11590
Comment options

Answer selected by Wolfie11590
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants