FG Spreadshirt Swag
  1. #1

    Can you use windowlist for a static list?

    I'm making some tweaks to the ruleset and I was just about to start a mass of copy paste when I thought... surely I can do this with windowlist.

    I am setting up a pop/details window to allow players to modifier their stats. Base/Modifier and Temp Modifier (also adding fields to be used later for items/effects to set stat or adjust it).... I've got the functions setup to setup watches/etc based on the <target>intelligence</target> and it's working fine. However instead of having a entry for each I figured I could use a windowlist... but I can't seem to figure out if windowlist can be fed just a static list of items like this.

    Short version, I'd like to have a windowlist that runs on "strength|dexterity|constitution|intelligence|wisd om|charisma" so that for each item it's created list of names/numbers pulled from the templates/lua code.

    Something like this:



    Is it possible or do I just need to do it the old fashion way?

  2. #2
    You would have to use a sourceless windowlist, and use createWindow with the correct window class and data path for each ability.

    You can do it, but I found that shoehorning this type of data into a windowlist, instead of copy/paste the specific fields, usually isn't worth the gyrations to do it that way. Plus it involves a lot more Lua script, instead of letting the FG engine handle automatically through the XML definitions.

    But, yes, I've had the same thought before...

    Cheers,
    JPG

  3. #3
    Quote Originally Posted by Moon Wizard View Post
    You would have to use a sourceless windowlist, and use createWindow with the correct window class and data path for each ability.

    You can do it, but I found that shoehorning this type of data into a windowlist, instead of copy/paste the specific fields, usually isn't worth the gyrations to do it that way. Plus it involves a lot more Lua script, instead of letting the FG engine handle automatically through the XML definitions.

    But, yes, I've had the same thought before...

    Cheers,
    JPG
    Thanks for the advice. I'll take it!

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
  •  
STAR TREK 2d20

Log in

Log in