msg("This is a great room.")
keycount = 0
foreach (o, GetDirectChildren(this)) {
if(StartsWith(o.name, "unknown")) {
keycount = keycount + 1
}
}
if (keycount = 1) {
msg("It contains a key.")
}
else if (keycount > 1) {
msg("It contains " + keycount + " similar keys.")
}
msg("This is a great room.")
keycount = 0
foreach (o, GetDirectChildren(this)) {
if(StartsWith(o.name, "unknown")) {
keycount = keycount + 1
}
}
if (keycount = 1) {
msg("It contains a key.")
}
else if (keycount > 1) {
msg("It contains " + keycount + " similar keys.")
}