SRL Archive - OSR Help

Help with MarkTime


Elvis

2012-12-01 19:39:53

This is my first script so sorry if this is an obvious one.

Lines 123-129.

I have it set so I spin the loom if xp is gained or seven seconds since I found the loom has passed, but I want it to adjust the screen (SetAngle/MakeCompass) if more than 13 seconds have passed since the MarkTime(WithOutWoven); has passed. I can put the code there and it compiles, but it never executes. I'll be playing around with it trying to get it to work, but if anyone knows what's wrong that'd be awesome.

Sin

2012-12-01 20:02:20


if MarkTime(time variable) > (13 * 1000) then //13 seconds * 1000 miliseconds

Elvis

2012-12-01 20:03:22

if over = to or over 10k ms then do i have to do 10 * 1000?

Elvis

2012-12-01 20:07:56

still doesn't execute:

if TimeFromMark(WithOutWoven) > (13 * 1000) then
begin
SetAngle(SRL_ANGLE_HIGH);
MakeCompass('N');
StatsGuise('Adjusting screen');
WriteLn('Adjusting screen');
end;

thanks though.

Elvis

2012-12-01 20:10:06

ok i think the problem is it's never getting to if the if..then statement, but im not sure how to incorperate the statement in a different way.

Sin

2012-12-01 20:10:23

Have you called MarkTime()?

Elvis

2012-12-01 20:15:08

yeah i called it before the

if findobjtpa…then
begin

@ line 106

xtrapsp

2012-12-01 20:15:12

Elvis, you have to call the mark :) Think of it like a race. When you Mark the time the gun is fired into the air, it does everything it can until the time is past a certain point.

e.g:
MarkTime(T); //On your marks, get set... GO
if TimeFromMark(T) > (13 * 1000) then
begin
SetAngle(SRL_ANGLE_HIGH);
MakeCompass('N');
StatsGuise('Adjusting screen');
WriteLn('Adjusting screen');
end else
begin
wait(50);
end;

Although I'd look at your logic ;) because if it isn't a wait.. how is it going to go back and check

Elvis

2012-12-01 20:26:02

Didn't I call it line @ line 106 though?