SRL Archive - OSR Help

Increase something ever 2 times?


YoHoJo

2011-11-17 21:36:21

Edit:
So new question, every TWO loads I'll just commit 87.
How do I figure out every 2 loads?

If TStones mod 2 = 0 Then
Commit

Correct?



stats_IncVariable('Magic EXP (Gained)', 43.5);
stats_IncVariable only takes integers.


So I want to do
stats_IncVariable('Magic EXP (Gained)', 43;
And every 2 times I do the spell, do a:
stats_IncVariable('Magic EXP (Gained)', 1);

Would mod be the right thing to do?
stats_IncVariable('Magic EXP (Gained)', 43);
If TStones Mod 2 = 0 Then
stats_IncVariable('Magic EXP (Gained)', 1);

Ya? No? Wa?

bla bla bla garbage, talking to Harri on IRC about it, screwed up math anyways lolz.

Narcle

2011-11-17 21:54:06

I just use a separate extended var to add it up then round it out when I want to commit.

marpis

2011-11-18 00:01:07

From: YoHoJo
Edit:
So new question, every TWO loads I'll just commit 87.
How do I figure out every 2 loads?

If TStones mod 2 = 0 Then
Commit

Correct?



Ye.

YoHoJo

2011-11-18 00:04:59

It's working, thanks.