how do i do that if i mined a ore i want to inc(OresMined)
so if ???? then
inc(OresMined);
Any Help?![]()
how do i do that if i mined a ore i want to inc(OresMined)
so if ???? then
inc(OresMined);
Any Help?![]()
Uhh, I dont really understand. But im guessing you mean like after you click and mine the rock you want to inc(OresMined)?
Well, just do.
SCAR Code:If SomeMiningProcedure then
inc(OresMined);
If i understand correctly?
And to make SCAR spit out the e value of OresMined do:
SCAR Code:Writeln('We mined' +IntToStr(OresMined));
that's what i ment, thank you
rep+
mm that if then statement gave me a type mismatch

OresMined has to be an integer.
SCAR Code:var
OresMined: Integer;
i got that already
but im using something else now
im using if invFull then
IncEx(GoldMined, 28);

So is there an error with that? :/ You said there was an error.
Just be aware you may have less than 28 ores if you mined some gems along the way. Use CountItems (or something similiar) to get actual number of gold ore, and increment by that amount.
Code:var GoldOreDTM, GoldMined: Integer; GoldOreDTM := DTMFromString(''); //<-- Fill in with string for gold ore dtm IncEx(GoldMined, CountItems('dtm', GoldOreDTM, [])); FreeDTM(GoldOreDTM);
There are currently 1 users browsing this thread. (0 members and 1 guests)