Ooh, that worked - thanks! That'll do for me, for now.
Printable View
The original MoreCore sidebar font will be restored in an update over the weekend.
It is both larger and white.
Minor update on Post #1.
frostbyte I have modified this code to do Addition, Subtraction, Multiplication and Division.
Ill release it soon.
I think the code is simpler and it handles the other two.
I have yet to try and tackle the two sets of math in the one dice string issue
Code:sSTCValue1, sSTCValue2 = sStringToCalc:match("(.+)[+-/%*](.+)");
sSTSCOp = sStringToCalc:match(".+([+-/%*]).+");
local sSTCValue3;
if sSTSCOp == "+" then
sSTCValue3 = tonumber(sSTCValue1) + tonumber(sSTCValue2);
elseif sSTSCOp == "-" then
sSTCValue3 = tonumber(sSTCValue1) - tonumber(sSTCValue2);
elseif sSTSCOp == "/" then
sSTCValue3 = tonumber(sSTCValue1) / tonumber(sSTCValue2);
elseif sSTSCOp == "*" then
sSTCValue3 = tonumber(sSTCValue1) * tonumber(sSTCValue2);
end
PLEASE HELP! When i try to load more core i get this error
[ERROR] Handler error: [string "scripts/manager_desktop.lua"]:437:attempt to index local 'c' (a nil value)
Can someone help me resolve this?
and when I run another extension I also get
[ERROR] font: Missing TTF tag for font (diemod). [ForbiddenLands] [graphics/graphics_fonts.xml]
and
[ERROR] font: Missing TTF tag for font (DIERESULT). [ForbiddenLands] [graphics/graphics_fonts.xml]
Can someone please help me?
Someone posted a fix for the Target info overlapping Rolls info but I cant find it and somehow I have overwritten that fix sometime more recently... Anyone able to point me to it?
Added some support for * and / in the [math] syntax.
Added /unidamage #d#x# roll. Multiples #d# by x#. Uses Defense as Damage Reduction.
OK, that was me, but you didn't break it the same way anyhow.
Edit your template_ct.xml file.
Delete template "string_ctentry_targets" (Line 121 - 125)
This will default to the Core version of that template which does work properly.
Or, you can fix your template "string_ct_summary_spacing" which anchors to "name" but should anchor to "active_spacer_top". But at that point, you are just recreating "string_ct_summary" from Core's template_ct.xml. I recommend just deleting both to rely off of Core for simplicity's sake, since you don't seem to be changing anything about them.