-
Include Help
i need some include help
ex. how would you set up the include so scar knows you put it in there would you go
{.include SRL/SRL.scar}
then in a procedure would you go
procedure setup;
begin
SetupSrl;
end;
and in the main loop you would go
begin
SetupSrl;
repeat
somefunction;
another one;
until(false);
end.
but then how do you include the functions from that include into your script so scar does it and would you have to make another one for that skill include
ex. {.include Srl/Srl/Core/Woodcutting.scar}
that might sound a little confusing but help would be greatly appreciated
-
yep that is it, but in the first exapmle, take out the procedure...
-
you only need this for the setup of the stuff.. you only need {.include SRL\SRL.scar} if you are using stuff from the core folder, because this will include all the core stuff.. but anything skill or misc stuff you must have the seperate include for it
Code:
{.include SRL\SRL.scar} //regular thing..
{.include SRL\SRL\misc\amount.scar} //for a different include
procedure Setup;
begin
SetupSRL; //only need it one time
end;
begin
Setup; //once again.. setupsrl only needs to occur once which is here
repeat
somefunction;
another one;
until(false);
end.
-