I got the rest of my progress report, I just can't seem to find a formula to get it to check how many herbs cleaned per hour. Help?
Thanks in advance.
I got the rest of my progress report, I just can't seem to find a formula to get it to check how many herbs cleaned per hour. Help?
Thanks in advance.
Writeln('Herbs Cleaned ' + IntToStr(HerbsCleaned) );
The "herbscleaned" at the end is related to your script i belive. But thats the basic structure. Not sure if thats answered your question sorry.
Well since your script banks I assume use:
Simba Code:procedure HerbsBanked;
var
HerbsCleaned: Integer;
begin
if BankScreen then
IncEx(HerbsCleaned, 28);
end;
and then include what Glen said into the progress report.
So like:
Simba Code:procedure Report;
begin
if BankScreen then
begin
//Time running
// blah blah
Writeln('Herbs Cleaned ' + IntToStr(HerbsCleaned) );
end;
end;
Current Project: Retired
No, I have that.
I mean, to calculate how many per hour, not how many total.
The something like this will work:
Simba Code:procedure HerbsPerHour;
Begin
HerbsPH := Round((HerbsCleaned * 3600) / (GetTimeRunning / 1000));
end;
Current Project: Retired
Uh, it's showing 0 p/h now if that code is used. :|
Last edited by NKN; 03-22-2012 at 08:22 PM.
There are currently 1 users browsing this thread. (0 members and 1 guests)