|
Post by damooseneo on Jan 3, 2021 17:51:03 GMT
Working on some template improvements and I'm pretty happy with where I am right now. Got some old bugs fixed and new features added and things are awesome.
What I would LIKE to move away from are large predefined lists now that I have scripts capable of rendering things instead of having predefined images. I have a list of "factions," which could grow. I've resisted supporting fan projects and additions to the game because each addition makes a lot of work. I'd LIKE to get to a point that I can drop a base image with a uniform naming convention into a common folder, add the name to a list, and have it generate everything.
IE I have a series of colored icons which can ALSO have a faction "stamp" over top of it. Nifty script set I wrote takes the icon, takes the faction icon, does the merge, we're golden. As of right now though, I still need to add the faction to the list of possible icons, so if there's 5 colored icons, I need to make 5 new entries for each faction I add. I have a hybrid system for the colored icons, which means I still need to make another 10 entries for the "choice images" lists. I'd LOVE to do a nested set of "foreach" that takes my colors and my factions and makes the list out of that, so all I need to do if I add a color or a faction is add the names to a text variable and allow the loops to do the rest.
Is this viable? Are there examples out there?
|
|
|
Post by cajun on Jan 4, 2021 10:17:04 GMT
as far as i know you can't use for each to generate a list; you might be able to set up a multiple choice field that only accepts 1 color and 1 stamp so you just need two lists of 5 instead of the 25 options, or set up two normal choice fields which can definitely do that.
|
|
|
Post by damooseneo on Jan 9, 2021 15:37:47 GMT
I ended up cheating and using a PHP script to output files Other people cannot readily use it, but I can regenerate the files myself people for a "public" release pretty easily. WHICH, is handy. Adding a custom color gives me 21 (6 + 15) colors and after accounting for a handful of prominent fan submissions a total of 41 factions...I'd hate to hand-key several hundred possibilities. I would LOVE to see some file-reading capabilities and the ability to allow dynamic list generation like this within MSE.
|
|