Code:
plotscript, test, begin
if (inventory (item:apple)) then (
show text box (10) # "Apples! My favourite!"
) else if (inventory (item:orange)) then (
show text box (11) # "My, what a tasty looking orange..."
) else if (inventory (item:pear)) then (
show text box (12) # "Perhaps if you gave me that pear..."
) else (
show text box (13) # "Come back when you have something tasty for me!"
)
end
if (inventory (item:apple)) then (
show text box (10) # "Apples! My favourite!"
) else if (inventory (item:orange)) then (
show text box (11) # "My, what a tasty looking orange..."
) else if (inventory (item:pear)) then (
show text box (12) # "Perhaps if you gave me that pear..."
) else (
show text box (13) # "Come back when you have something tasty for me!"
)
end
Trying to compile this in while result in an error in this line:
") else if (inventory (item:orange)) then ("
"Unrecognized name elseif. It has not been recognized as a script, constant, variable, or anything else."
What's up with this?



