if (beef.parent <> table) { // restaurant, table, plate, depending on where the beef is located
// todo: beef is gone, proceed with wine
if (wine.parent <> table) {
// todo: wine is gone, proceed with event
}
else {
// wine is still there
}
}
else {
// beef is still there
}
IF: restraunt does not contain appetizer1 OR appetizer2 OR appetizer3 OR appetizer4
__THEN: print (msg) "All appetizers are gone."
IF: restraunt does not contain appetizer1 AND restraunt does not contain appetizer2 AND restraunt does not contain appetizer3 AND restraunt does not contain appetizer4
__THEN: print (msg) "All appetizers are gone."// the variables or attributes need to be made global of course if they need to be made so, lol
<eat type="script">
this_or_object_name.eatened = true
</eat>
// for whatever room (or container object), create an objectlist of the items in that room (or whatever) or if player inventory, then use ScopeInventory ()
<function name="obj_eatened_total_function">
foreach (obj,objectlist) {
if (obj.eatened = true) {
obj_eatened_total = obj_eatened_total + 1
}
}
</function>
<script>
if (obj_eatened_total = 5) {
some_script
}
</script>
// OR, you could just add in the total counter to eat verb, lol
<eat type="script">
this_or_object_name.eatened = true
obj_eatened_total = obj_eatened_total + 1
</eat>
// as then you wouldn't need the: "obj_eatened_total_function"
if (Got(beef)) {
if (Got(bun)) {
if (Got(cheese)) {
if (Got(lettuce)) {
MakeObjectVisible (hamburger)
msg ("hamburger revealed!")
RemoveObject (beef)
RemoveObject (bun)
RemoveObject (lettuce)
RemoveObject (cheese)
}
}
}
}