Linko
You should use eleseif's rather than multiple seperate if's when checking the same variable ($result).
it ensures it only does one of the things.
$result = display_choices("Do you want something?", array["Hello", "Cream Pie.", "Funny Potato Chips.", "Nevermind."], entity["Max"]);
if $result == 0 then
display_message("Hi Max.", player);
display_message("Hi Rodan.", entity["Max"]);
elseif $result == 1 then
display_message("Here we go.", entity["Max"]);
elseif $result == 2 then
display_message("Funny Potato Chips? ROFL.", entity["Max"]);
elseif $result == 3 then
display_message("Good bye.", entity["Max"]);
end;
Also, your ends did not have a ; at the end (required).