Output Cloning

GameBoy
31 Aug 2006, 18:06
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?

I think Im Dead
01 Sept 2006, 03:20
See, the thing is, you need to paste some actual code.

All you can really determine from this is that, it's probably something wrong in your [script] section.

Also, they are called slot machines.

GameBoy
01 Sept 2006, 04:04
Fixed.

Instead of executing the 'hit' command i've just made it run the entire script.

All this means is that any changes to the procedure will have to be done twice. Copy/Paste is easy enough though :)