SRL Archive - OSR Help

Help with Progress Reports?


Hero

2011-12-18 22:08:20

Is there a tut or a basic outline of how to get a working progress report. I attempted to add one to my powerminer and it doesn't keep track. I might be blind but using search only brings up other peoples posts about their progress reports with other scripts. I'd appreciate some help :3

exp and hour would be nice too if possible.

KingKong

2011-12-18 22:35:15

make a global variable and then increase it everytime xp is gained. Then in your progress report proc/func print it out. xp/hr is just xp gained/timerunning

Camaro'

2011-12-18 22:50:38

To increase a variable by one you can do


Inc(Variable); // Increases the variable by 1



IncEx(Variable, 28); // Increases the variable by 28

you can use those to keep track of certain variables such as, 'Amount of times banked'. Then after each load, you can call a procedure that does something similar to this.


procedure ProgressReport;
begin
Writeln('My first amazing progress report');
Writeln('Time running: '+TimeRunning+'');//Time running is a variable automatically set so you don't have to keep track of the time running.
Writeln('Times Banked: '+ToStr(Variable)+'');//ToStr converts the integer to a string.
end;

If needed you can view this tutorial for assitance: http://villavu.com/forum/showthread.php?t=58935&highlight=progress+report

Hero

2011-12-19 00:04:01

Thanks for the help guys. I got it recording how any iron ores now. Just gotta add a few more things and I will probably release it. Trying to perfect the M1D1 style using color lol