Results 1 to 7 of 7

Thread: Reset MarkTime?

  1. #1
    Join Date
    Oct 2006
    Location
    United States
    Posts
    672
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Reset MarkTime?

    K Im at just one tree, and I do MarkTime if it cannot find the tree and then do extra wait times for the tree to spawn again, like have it look for 10 seconds before doing longer waits, but is it possible to reset the timer if it find the tree? This is kinda what Im asking:

    SCAR Code:
    if not findtree then
    MarkTime(T);
    if findtree then
    reset MarkTime(T);
    end else
    TimeFromMark(T) >= 10000;

  2. #2
    Join Date
    Dec 2007
    Location
    Wizzup?'s boat
    Posts
    1,013
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    you don't really need to reset it, just call MarkTime again.. it'll remark it

    have a function;

    SCAR Code:
    if (not findtree)then
    begin
      MarkTime(t);
      repeat
        LookForTree;
      until (FindTree) or (TimeFromMark >= 10000);
    end else
      exit;
    Project: Welcome To Rainbow

  3. #3
    Join Date
    Feb 2007
    Location
    Alberta,Canada
    Posts
    2,358
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    you just mark the time again
    so just go marktime(X) again ( I think haha) if not let it exit the procedure and restart it or something like if timefrommark(c) > whatever then exir ?
    “Ignorance, the root and the stem of every evil.”

  4. #4
    Join Date
    Oct 2006
    Location
    United States
    Posts
    672
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by benjaa View Post
    MarkTime(t) := 0?
    or t := 0
    so your saying

    SCAR Code:
    if findtree then
    MarkTime(T) := 0

    @benjaa no that didnt work it said that the variable shouldnt be an integer?

    @blumblebee, that wouldnt work because it would cancel all of my antirandoms. Whats the function to start the procedure again, is it continue?

  5. #5
    Join Date
    Dec 2007
    Location
    Wizzup?'s boat
    Posts
    1,013
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yeah sorry, i tested and it didnt work, i edited the post soon after i tried it

    look up!
    Project: Welcome To Rainbow

  6. #6
    Join Date
    Oct 2006
    Location
    United States
    Posts
    672
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by benjaa View Post
    yeah sorry, i tested and it didnt work, i edited the post soon after i tried it

    look up!
    Sweet thanks it looks like it will work. Congrats on members, I tried twice..makes me feel stupid

  7. #7
    Join Date
    Dec 2007
    Location
    Wizzup?'s boat
    Posts
    1,013
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks !

    i had to try twice to get it, then got 9 yes, 2 no FTW

    good luck in the future
    Project: Welcome To Rainbow

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. MarkTime for my report.
    By ironlarreh in forum OSR Help
    Replies: 4
    Last Post: 04-02-2007, 12:23 AM

Posting Permissions

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