SRL Archive - Reflection Help

WalkPath and Randoms


fre

2011-04-02 08:05:24

Hello,

i use walkpath alot, mostly for shorter walks.
But if u walk/run a long path with walk path and u encounter a random.
What happens?
i guess u exit the walkpath procedure, depending on your script u will solve the random or get stuck.

But when if u successfull solved the random u won't be finishing the walkpath.

Can anyone help me solving this problem?

Now that i have your attention, how can i let players rest while walking a path?

Ty.

Bad Boy JH

2011-04-06 08:16:28

as in: walk part, rest, walk the rest…

break the array into two arrays could be easy enough…
procedure BreakArrays(StartingArray: TTileArray; breakpoint: integer; var FirstPath, SecondPath);
var
I: Integer;
begin
for I := 0 to breakpoint do
..
for I := breakpoint + 1 to high(StartingArray) do
end;

there may be a function that does it for tPOINTarrays, which we can easily convert to…

Iamadam

2011-04-06 08:28:39

WalkPath should (but doesn't) have an option to set run to true during the walk.
And if you get a random during R_WebWalk, it does not return to the script. This is a major problem.

Jakkle

2011-04-06 08:45:35

From: Iamadam
WalkPath should (but doesn't) have an option to set run to true during the walk.
And if you get a random during R_WebWalk, it does not return to the script. This is a major problem.


I was thinking that R_WebWalk was doing that. Like in my script if a random begins just as it reaches the trees before the ChopTree procedure it keeps trying to walk on the minimap in the random. I'm not sure if putting R_FindRandoms the walk procedure Helps but i put it in anyway. I use R_WebWalk because WalkPath leeks alot, is it for any1 else ? i prefer to use WalkPath as unlike R_WebWalk, WalkPath Goes to the nearest to the last Co-ord.