demiraca
2013-03-23 13:30:58
Hello!
I am REALLY novice in this scripting thing, and i have read about 30 minutes of (http://villavu.com/forum/showthread.php?t=58935) that topic.
So yeah, my question is: How am i gonna "WriteLn" the number generated in the Debug box?
here is my script so far
Note that the script looks more sorted in my simba but it doesnt show spaces here in forums.
When i press play i either get "you have won" or "you have lost"
and id like it to say like:
Wait(1000);
WriteLn('Rolling…');
WriteLn('You rolled "Number" and won!');
or WriteLn('You rolled a "Number" and lost!');
I am REALLY novice in this scripting thing, and i have read about 30 minutes of (http://villavu.com/forum/showthread.php?t=58935) that topic.
So yeah, my question is: How am i gonna "WriteLn" the number generated in the Debug box?
here is my script so far
program DiceBot;
procedure RandomFunction;
var
i: Integer;
begin
if (Random(101) <55) then
WriteLn('You have lost!')
else
WriteLn('You have won!');
end;
begin
ClearDebug;
RandomFunction;
end.
Note that the script looks more sorted in my simba but it doesnt show spaces here in forums.
When i press play i either get "you have won" or "you have lost"
and id like it to say like:
Wait(1000);
WriteLn('Rolling…');
WriteLn('You rolled "Number" and won!');
or WriteLn('You rolled a "Number" and lost!');