Results 1 to 9 of 9

Thread: Help with MarkTime

  1. #1
    Join Date
    Nov 2012
    Posts
    28
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Help with MarkTime

    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.
    Last edited by Elvis; 12-02-2012 at 12:41 AM.

  2. #2
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

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

  3. #3
    Join Date
    Nov 2012
    Posts
    28
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

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

  4. #4
    Join Date
    Nov 2012
    Posts
    28
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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.

  5. #5
    Join Date
    Nov 2012
    Posts
    28
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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.

  6. #6
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    Have you called MarkTime()?

  7. #7
    Join Date
    Nov 2012
    Posts
    28
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yeah i called it before the

    if findobjtpa...then
    begin

    @ line 106

  8. #8
    Join Date
    Feb 2012
    Location
    DON'T PM ME ASKING FOR STUFF
    Posts
    2,170
    Mentioned
    38 Post(s)
    Quoted
    423 Post(s)

    Default

    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:
    Code:
    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

  9. #9
    Join Date
    Nov 2012
    Posts
    28
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •