v1.0.0 - added the capability to add/remove traits
added a ‘cheatmode’ for stats
added logic to initially allow only redistribution of stats
v1.0.1 - added debounce to the async command
added attributeDistribution to client side to determine max/min values
added trait restriction to max of 2 by default
added passion_jobs check for incomplete data
Okay. Done. I added steam workshop link in the first post. I realized it would be useful since I plan to try to play stonehearth on another computer over the week. So I just did it immediately.
check out Box O’ Vox mod. @OwlGo did some really cool stuff to give more customization options to the roster select. We’ve been wanting to do traits for the LONGEST time! He was never able to figure out the the way traits get assigned to citizens. If you ever do get to the trait portion, I’m going to be eyeballing the sh*t out it!
I noticed the error for mind while peaking at your code. you forgot to change “changeIndex” to “changeCitizenStat” in the mind section. I like what you did. and after looking I’m sure it’s possible, but I don’t know how to code and call the traits.
I took a look at Box O’ Vox mod. With the way the UI is overridden, this won’t be capable with my mod for the time being. I’ll hack together a solution to make it work sometime later. But it won’t be a priority. I would rather get traits customization done. You can then take my code and make it work with yours or wait until I change the code to use raw JS to patch the html.
Most of my changes will appear only in the left section where you can select your hearthlings. Unless I feel like making a popup or a dialog to modify traits.
I still need to do reembarkment because I know there are some UI elements on that screen related to that. Anyone know how re-embarkment works? Do I have to finish a game? Can I trigger it through lua?
Either that, or you can also manually trigger the re-embark encounter to make a re-embark party. I think the encounter is called reembarkation and is in the town_progression campaign.
Don’t worry about compatibility with Box O’ Vox. Traits should be more important. I can always look at whatever you do once that gets done. Since traits are in an array, Owl & I couldn’t make out how to call and change them. Also, I don’t think we were able to figure a way to mixinto our file into theirs to avoid overrides
Yes. I am re-using the re-embark dialog. It’s just temporarily setup to see whats possible in terms of traits. Add and Removing traits is the easy part once you have all the traits.
Building out the UI will be the longest part for me. Probably get something to mess with in a few days.
I know how to do it. I’ll do it after I get traits the way I want it. It’s actually pretty easy depending on how much you want to replace/inject. But as long as you only touch the top right customization section, everything else is free to be modified/replaced.