SRL Archive - Help

GetMMLevels Function


Sawyer

2013-02-01 22:51:26

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.

Le Jingle

2013-02-01 23:12:31


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.


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.

Sawyer

2013-02-01 23:22:45

Alright, Thanks :)