Abu
2012-03-19 17:53:52
Hi, I'm trying to update my script and I was wondering if there was any way to do two actions in one case.
For Example
For 'Action 1' I simply want to write text on screen(I know how) while performing the action of that case. However, every time I do this it asks me to put the other Action on a separate line. Though I can use the same case for that action, it will always pick the one above it. for example:
Try to understand I ONLY want Action 1 performed while doing the other Action , so there's no point putting it at the start of the procedure because if none of the cases are picked, the on-screen text will be useless.
NEVERMIND SOLUTION FOUND. THANKS
For Example
procedure example;
begin
case Random(160) of
1: Action1, Action 2;
2: Action1, Action 3;
3: Action1, Action 4;
4: Action1, Action 5;
end;
end;
For 'Action 1' I simply want to write text on screen(I know how) while performing the action of that case. However, every time I do this it asks me to put the other Action on a separate line. Though I can use the same case for that action, it will always pick the one above it. for example:
begin
case Random(160) of
1: Action 1; // will always do this is case 1 is picked
1: Action 2; // but never this
2: Action 1; // will always do this is case 2 is picked
2: Action 2; // but never thisTry to understand I ONLY want Action 1 performed while doing the other Action , so there's no point putting it at the start of the procedure because if none of the cases are picked, the on-screen text will be useless.
NEVERMIND SOLUTION FOUND. THANKS
