Log in

View Full Version : Is it possible to make a script like this?



yanix
12-27-2007, 11:30 AM
So.. i saw in some NeXus scripts that the scripts looked like this..



program w/e

repeat

procedure lol;
begin

startup;
mine:
drop;
saysomething;
mine;
drop;
logout;
end;


Begin
lol;


End.

Dont reply and say u forgot the includes and other stuff this was just an example.. but anyways, the scipt looked like that and then below all the code there was the procedures called like startup; and in that procedure it said what to do.. so is it possible to do something like this with scar?

Killerdou
12-27-2007, 11:32 AM
use forward... but the main loop is always last in scar, everything after the end. is ignored

Markus
12-27-2007, 12:08 PM
In Java you can do stuff like this:

program ThisWontWorkInScar;
procedure lol;
begin
wtf;
end;
procedure wtf;
begin
writeln('o.O');
end;
begin
lol;
end.

without forwards.