For a small fruit machine game I am creating, I have made the OUT button perform a script.
There is a custom command called "Hit", which runs scripts to perform the random roll and display of the 3 variables, which can display up to 4 different fruits (You get the idea).
So, in the source code, i've written this:
define room <Casino>
out <[script]> exec <hit>
end define
This executes the 'hit' command every time you press the out button.
But what happens, is the outcome is displayed twice, like so....
> out
Orange Apple Banana
Hit again?
Orange Apple Banana
Hit again?
But it's meant to be displayed like this (When you type the 'hit' command)
> hit
Orange Banana Orange
Hit again?