From: Le Jingle
If I understand correctly, you are trying to figure out how to call another procedure via a separate procedure called within the main loop?
in that case, here's an example:
program new;
procedure HelloWorld();
begin
WriteLn('Hello World');
end;
procedure Foo();
begin
// Calls procedure HelloWorld()
HelloWorld();
end;
begin
WriteLn('Start');
Foo();
WriteLn('End');
end.
If not, let me know in more detail and I'll try to help out best I can :)
-Lj
Thanks for your reply
When I tried that I got "assignment expected" in the debug box.
Heres my script. How do I Make it go to another procedure. I'm wiritng in a spot where I was it to go, look at my script.
procedure FailedRopeSwing;
var
x, y : integer;
begin
Wait(4000);
if FindColorSpiralTolerance( x, y, SkeletonColor, 6, 5, 513, 336, 5) then
// Looking for Skeleton
begin
//Found Skeleton
WriteLn('Failed Rope Swing... Attempting to leave Dungeon');
WriteLn('Found Skeleton in Dungeon');
MakeCompass('W');
SetAngle(SRL_ANGLE_LOW);
if FindColorSpiralTolerance( x, y, GoUpSkeletonDungeonLadderColor, 210, 145, 338, 230, 5) then
if not FindColorSpiralTolerance( x, y, GoUpSkeletonDungeonLadderColor, 210, 145, 338, 230, 5) then
// Looking for Ladder to escape the dungeon
begin
// Failed to find Ladder
WriteLn('Failed to find Ladder');
Wait(10000);
end;
begin
// Found Ladder
WriteLn('Found ladder color');
MoveMouse( x, y);
if WaitUptextMulti(['Clim', 'limb', 'Lad', 'der'], 600) then
begin
WriteLn('Found Ladder Uptext');
Mouse( x, y, 0, 0, False);
if WaitOptionMulti(['Clim', 'limb', 'b-u'], 600) then
Wait(3000);
////////////I want to go to another procedure right here. ////////////////////
end;
end;
end;
if not FindColorSpiralTolerance( x, y, SkeletonColor, 6, 5, 513, 336, 5) then
// If failed to find Skeleton then we have passed
begin
WriteLn('Successfully passed Rope Swing');
end;
end;