if (Got(address book)) {
}
else if (Got(ePad)) {
MoveObject (player, kitchen)
}
else {
if (not Got(address book)) {
msg ("You decide it would be better to take the address book.<br/>")
}
else if (not Got(ePad)) {
msg ("You decide it would be better to take the ePad.<br/>")
}
}
if (Got(address book)) {
}
if (Got(ePad)) {
MoveObject (player, kitchen)
}
else {
if (not Got(address book)) {
msg ("You decide it would be better to take the address book.<br/>")
}
else if (not Got(ePad)) {
msg ("You decide it would be better to take the ePad.<br/>")
}
}
if (Got(address book) and Got(ePad)) {
MoveObject (player, kitchen)
} else {
if (not Got(address book)) {
msg ("You decide it would be better to take the address book.<br/>")
} else if (not Got(ePad)) {
msg ("You decide it would be better to take the ePad.<br/>")
}
}
if (not Got(address book)) {
msg ("You decide it would be better to take the address book.<br/>")
} else if (not Got(ePad)) {
msg ("You decide it would be better to take the ePad.<br/>")
} else {
// Must have both.
MoveObject (player, kitchen)
}
if (Got(address book)) {
if (Got(ePad)) {
MoveObject (player, kitchen)
} else if (not Got(ePad)) {
msg ("You decide it would be better to take the ePad.<br/>")
}
} else if (not Got(address book)) {
msg ("You decide it would be better to take the address book.<br/>")
}
if (Got(address book)) {
if (Got(ePad)) {
MoveObject (player, kitchen)
}
}
if (not Got(address book)) {
if (not Got(ePad)) {
msg ("You decide it would be better to take the ePad and the address book.<br/>")
} else {
msg ("You decide it would be better to take the address book.<br/>")
}
} else if (not Got(epad)) {
("You decide it would be better to take the ePad.")
}
if (xxx.searched = true) {
if (Got(address book)) {
if (Got(ePad)) {
MoveObject (player, kitchen)
} else if (not Got(ePad)) {
msg ("You decide it would be better to take the ePad.<br/>")
}
} else if (not Got(address book)) {
msg ("You decide it would be better to take the address book.<br/>")
}
} else if (xxx.searched = false) {
msg ("You search the body.")
xxx.searched = true
}
if (xxx.searched = true) {
if (Got(address book) and Got(ePad)) {
MoveObject (player, kitchen)
} else {
if (not Got(address book)) {
msg ("You decide it would be better to take the address book.<br/>")
} else if (not Got(ePad)) {
msg ("You decide it would be better to take the ePad.<br/>")
}
}
} else if (xxx.searched = false) {
msg ("You should search xxx more closely before you go to the next room.")
xxx.searched = true
}
jaynabonne wrote:if (not Got(address book)) {
msg ("You decide it would be better to take the address book.<br/>")
} else if (not Got(ePad)) {
msg ("You decide it would be better to take the ePad.<br/>")
} else {
// Must have both.
MoveObject (player, kitchen)
}
HegemonKhan wrote:
answer:if (xxx.searched = true) {
if (Got(address book) and Got(ePad)) {
MoveObject (player, kitchen)
} else {
if (not Got(address book)) {
msg ("You decide it would be better to take the address book.<br/>")
} else if (not Got(ePad)) {
msg ("You decide it would be better to take the ePad.<br/>")
}
}
} else if (xxx.searched = false) {
msg ("You should search xxx more closely before you go to the next room.")
xxx.searched = true
}
Error running script: Error compiling expression 'lance.searched = true': CompareElement: Operation 'Equal' is not defined for types 'Object' and 'Boolean
if (GetBoolean(player, "lancesearched")) {
if (Got(address book) and Got(ePad)) {
MoveObject (player, kitchen)
}
else {
if (not Got(address book)) {
msg ("You decide it would be better to take the address book as its probably full of useful information.<br/>")
}
else if (not Got(ePad)) {
msg ("You decide it would be better to take the ePad as its probably full of useful information..<br/>")
}
}
}
else if (not GetBoolean(player, "lancesearched")) {
msg ("You turn to leave, but stop, convinced there must be <i>something</i> here that can help you.")
}
jaynabonne wrote:Just to beat a dead horse, you can change this:else if (not GetBoolean(player, "lancesearched")
to this:else
If the "if" is not true, then you already know GetBoolean(player, "lancesearched") is false, so there is no need to check for it again. It can't be anything but.
jaynabonne wrote:if (HasBoolean (orc, "dead")) {
will return false if orc.dead is false *or* if it doesn't exist.