Results 1 to 3 of 3

Thread: GetMMLevels Function

  1. #1
    Join Date
    Dec 2011
    Location
    U.S.A.
    Posts
    635
    Mentioned
    5 Post(s)
    Quoted
    249 Post(s)

    Default GetMMLevels Function

    What are the acceptable variables for the GetMMLevels function? I am trying to get it to see my summoning points, and I can't figure out what variable the Colorsign is.

  2. #2
    Join Date
    Feb 2012
    Location
    Wonderland
    Posts
    1,988
    Mentioned
    41 Post(s)
    Quoted
    272 Post(s)

    Default

    Simba Code:
    program new;
    {$i srl/srl.simba}
    var
      s : string;
    begin
      setupsrl;
      writeln(GetMMLevels('hp', s)); // writes out approx. HP integer value
    end.

    hope this helps get some idea of how to setup the getMMLevels function.
    -Lj

    Edit: Figured I'd throw in a couple more examples before I hit the hay for a coupel hrs.

    Simba Code:
    program new;
    {$i srl/srl.simba}
    var
      s : string; // the s is usually just a trash variable, doesn't help us too much unless we want to use a string representing the color of what our MM HP Lvl relevant to the HP % is.
      storeHP : integer;
    begin
      setupsrl;
      writeln(GetMMLevels('hp', s)); // writes out approx. HP integer value

      storeHP := GetMMLevels('hp', s);

      if (storeHP < 1000) then
      begin
        writeln('low on Hit Points!');
        // Teleport away somehow or TerminateScript
      end;
    end.
    Last edited by Le Jingle; 02-02-2013 at 04:59 AM.

  3. #3
    Join Date
    Dec 2011
    Location
    U.S.A.
    Posts
    635
    Mentioned
    5 Post(s)
    Quoted
    249 Post(s)

    Default

    Alright, Thanks

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
  •