You're a god send for those changes.
Hopefully Damned will answer your call.
Printable View
You're a god send for those changes.
Hopefully Damned will answer your call.
Does the Auto Calc line on NPCs no longer support multiplication and division?
Edit: Actually having an issue with Auto Calc altogether. Sometimes simple addition and subtraction work on some stat/skills and on others Auto Calc does not work at all, PC & NPC.
I checked the PC sheet and had the same issue. The first roll I tried it on seems to have broken that roll, as nothing works now. The other rolls will accept +/- but not multiplication and division. Is there another updated you posted here? Maybe I missed one recently and that is what is causing the issue??? It has been a little while since I messed with XCore. I need to buckle down and just learn how to make my own rulesets & extensions, lol. I even bought the Wizard, but haven't really tried anything yet.
I made some changes to the code for how calc fields cause updates to happen.
Not sure why but npc sheets on the combat tracker have their fields in the path 1 dot deeper than the character sheet does.
I also noticed that initiative only looks like fields a to c it doesn't use d or e. I changed it so that it uses the same code as everything else for doing it's calculation.
I also cleaned up code that was copy and paste so that it is now functions that are called from each place that had the copy and paste going on.
If anyone finds any problems with things not working please let me know.
Attachment 66733
The file above contains those changes.
Thanks!
That one skill listing was still broken, but after deleting it, all new rolls work properly now, addition, subtraction, multiplication and division. I've had the broken roll issue happen before. Deleting usually fixed it, but then it messes up the order of the rolls on the sheet.
It would be nice if the rolls lists did not auto filter. The list never stays in the order you enter the rolls, one or two will randomly shift it's location in the list with logic, I can tell, on why it goes there. It's not alphabetical. I can't seem to get the filter button to even make lists fully alphabetical, but usually I don't want that either. It would just be better if we could place the rolls in any order we like. That would probably be too much work to fix that though, lol.
I fixed the sorting for the roll lists on the character sheet.
It was looking at each item in the list and changing it's sort order based on how it was currently being sorted. This could as things are added and removed cause the lists sort order to be out of sync with each item.
I've changed it so that it looks at the first item in the list and changes the sort order for every list item based on its sort value.
The sort order changes in the following order rolls name, rolls level, rolls key id.
The rolls key id ends up being the order they were entered into the list.
Because the sort order is an alpha sort and level is a number this caused 10 to be put before 2, etc.
So, I changed the way it is sorting based on the value of level.
It now takes the value in Level coverts the number to a string and adds 0s to the beginning so that the total length of the string is 8 digits.
So, level 0 is now, 00000000, level 1 is now 00000001, level 15 is now 00000015 and so on.
This should make level work the way it was intended to work.
Attachment 66737