SRL Archive - Jr. Member General Help and Discussion

Ideas for adding a count to a variable for later usage


CRASH_OVERRIDE

2014-07-01 10:24:42

I am working on a progress report.

I am using DTMs to count my inventory items using:
Count:= tabBackPack.countDTM(DTM_Bones);
It counts the DTM load out perfectly :), issue is next time it does this procedure if i use
+ intToStr(Count)
in the report, it will count in the report, but it resets the count each time/load.

Is their a way i can store the count into a variable that will keep adding onto the count instead of re-doing it?

Haxz

2014-07-01 10:35:55


Inc(Trips);
IncEx(Runes, ItemAmount('inv', 'dtm', cc, []));
IncEx(Gold, CoinAmount('inv'));
Proggy;


You use increase function, so in your report, it will keep adding up

So in your method, could use something like that


IncEx(Bones, Count);

KeepBotting

2014-07-03 20:29:54

declare the variable globally