Page 2 of 2 FirstFirst 12
Results 26 to 34 of 34

Thread: CheckRun

  1. #26
    Join Date
    Feb 2007
    Location
    South East England
    Posts
    2,906
    Mentioned
    2 Post(s)
    Quoted
    8 Post(s)

    Default

    and for the color variable they can enter 'Green', 'Yellow', 'Orange', or 'Red'.
    And from where would those values come from?

    And N1ke, its never really been used that much, AFAIK.
    Jus' Lurkin'

  2. #27
    Join Date
    Dec 2007
    Posts
    2,112
    Mentioned
    71 Post(s)
    Quoted
    580 Post(s)

    Default

    before i was trying to point out the extra variable energy was not needed

  3. #28
    Join Date
    Mar 2008
    Location
    New Jersey
    Posts
    1,673
    Mentioned
    1 Post(s)
    Quoted
    9 Post(s)

    Default

    When I first showed you this, I tried explaining to you, runcolor is a variable for the different colors the numbers are, 1-25 = red, 26-50= yellow? 51-75= orange? and 76-100= green, yellow and orange maybe mixed up. But GetMMLevels('run'.... returns how much energy you have and what color it is. And AFAIK also it isn't used much, that's what I said up on my first post on this thread I think.

  4. #29
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    SCAR Code:
    if GetMMLevels('run', RunColor) >= WhatPercentage then
      SetRun(true);

    i woudn't really say it's needed...

    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

  5. #30
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    I say it should definitely return a boolean.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  6. #31
    Join Date
    Feb 2007
    Location
    South East England
    Posts
    2,906
    Mentioned
    2 Post(s)
    Quoted
    8 Post(s)

    Default

    Well it does now. I had it in the first place to be honest. I dont know why I listened to people who said it should be a procedure!

    EDIT: When do I get my SRL Helper cup? :PP
    Jus' Lurkin'

  7. #32
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    SCAR Code:
    {*******************************************************************************
    procedure CheckRun
    Description: Checks your run % and clicks on run if it is above your percentage
    By: Torrent of Flame
    *******************************************************************************}

    function CheckRun(WhatPercent: Integer): Boolean;
    var
     Runcolor: string;
    begin
      Result := GetMMLevels('run', runcolor) >= WhatPercent;
      SetRun(Result);
    end;
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

  8. #33
    Join Date
    Jul 2008
    Posts
    907
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    would it? result : = runenergy> percent set;, can be true or false


  9. #34
    Join Date
    Feb 2007
    Location
    South East England
    Posts
    2,906
    Mentioned
    2 Post(s)
    Quoted
    8 Post(s)

    Default

    So much uproar about such a simple procedure xDD
    Jus' Lurkin'

Page 2 of 2 FirstFirst 12

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
  •