SRL Archive - Help and Support

SRL Proggy Help


Dynamite

2009-08-16 18:54:25

OK, I run my script and the progress report comes up with:
[=========================================]
[ ProWoodcutterFFA 1.0 ]
[ by RM & The Man ]
[=========================================]
[ Time Running : 9 Minutes And 17 Seconds ]
[ Loads : 4 ]
[ EXP Gained : 4200 ]
[=========================================]
[ ProWoodcutterFFA 1.0 ]
[=========================================]
[==============================================================]
[ Nick | Active | Worked | Banked | Rand | logs | EXP Gained ]
[==============================================================]
[ rent | True | 00:08:47 | 4 | | 112 | 10500 ]
[==============================================================]

The top EXP Gained is correct: 4200
The Bottom is incorrect: 10500

I am really confused :s
Please help, I have attached my script.

T~M

Awkwardsaw

2009-08-16 19:01:42

i dont think you set up your variables right. here is my srl proggy


procedure prog;
begin
SRLPlayerReport(
ResultDebugBox, 0, false,
[True, False, False, False, False, True],
['Hatchet Weilded','Logs Chopped', 'Loads Done', 'Exp Gained', 'Tree Cut'],
[0], [2, 3, 4], [0], []);//player variables
end;

the first player variable is boolean, second is integer, string, then extended

so for example, the boolean would be holding the variable players[currentplayer].booleans[0]

Dynamite

2009-08-16 19:04:30

I think I have done it correct, I think it might be because of this bit:
begin
for i:= 0 to HowManyPlayers-1 do
begin
if i = CurrentPlayer then
ExpGained;
Players[CurrentPlayer].Worked := Players[CurrentPlayer].Worked + TimeFromMark(RestTime);
IncEx(loads, Players[i].Banked);
tmp := Players[CurrentPlayer].Integers[0]*XpGain[g];
Players[CurrentPlayer].Extendeds[0] := Players[CurrentPlayer].Extendeds[0] + tmp;
XPGained := XPGained + tmp;
Tree := Players[CurrentPlayer].Strings[0]
end;

T~M