Results 1 to 4 of 4

Thread: Increase something ever 2 times?

  1. #1
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    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?



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


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

    Would mod be the right thing to do?
    Simba Code:
    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.
    Last edited by YoHoJo; 11-18-2011 at 02:47 AM.

  2. #2
    Join Date
    Sep 2007
    Location
    Michigan
    Posts
    3,862
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    I just use a separate extended var to add it up then round it out when I want to commit.
    (Scripts outdated until I update for new SRL changes)
    AK Smelter & Crafter [SRL-Stats] - Fast Fighter [TUT] [SRL-Stats]
    If you PM me with a stupid question or one listed in FAQ I will NOT respond. -Narcle
    Summer = me busy, won't be around much.

  3. #3
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by YoHoJo View Post
    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.

  4. #4
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    It's working, thanks.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •