Starfinder Playlist
Page 2 of 2 First 12
  1. #11
    Quote Originally Posted by Ikael View Post
    Just to let you know, you could just do it with

    Code:
    for _,v in pairs(savedDiceRoll) do        
        i = i + 1;
        setDiceIcons(window["dice" .. i], v)
    end
    no need to prepare the myTable.
    Yea. That was what I thought seemed like the easiest path. Self or window easier to manage.
    ---
    Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
    Documentation for AD&D 2E ruleset.
    Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
    Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.

  2. #12
    Quote Originally Posted by Ikael View Post
    It seems the script run in window-level in which case there is no such thing as "window" which is used reference parent of controller. Try replacing that window word with self. It should do the trick
    Excellent, that did the trick.

    Cool, now I understand I can use self if need-be.

    Cheers,
    MBM
    Ruleset and much more content built for FGU.
    Come join me on Twitter at: https://twitter.com/MadBeardMan to see what I'm up to!

  3. #13

    Join Date
    Jun 2013
    Location
    Isanti, MN
    Posts
    2,922
    Quote Originally Posted by MadBeardMan View Post
    Amazing! Thanks so very much. Not quite what I'd do in other languages but works a treat!
    I do stuff with tables like that in Perl all the time.

Thread Information

Users Browsing this Thread

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

Bookmarks

Posting Permissions

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

Log in

Log in