-
What looks like a simple operation still needs to be coded for.
MoreCore has been an evolving thing for a long time. /mod was written before Roll Parameters became a thing. There was no need for Math at that time. Adding math support into each script (there are closer to 200 of them) is a significant task and many times unnecessary as math wont be used by all scripts.
More recently some support for a single math operation has been added using [ and ] around the parameters as in this example:
/mod [(p1)+(a)]
This works for your scenario.
-
Brackets! I don't know why I didn't think to try brackets. I did enclose it all in parenthesis but I really should have known better and tried brackets since that definitely did the trick. Thanks again!
-
One more... how do you use /ability (of the other descriptive ones?) If I use it on a roll the output just shows "uses AbilityName", which is the same as if I had nothing in the Dice String, but never any of the descriptive text I put into the "/ability DescriptiveText" Dice String line. If I try it at the chat prompt it just acts like it's an unknown command and gives me the list of SLASH commands. I can just use something like "/die 0d0 DescriptiveText", of course, but I wouldn't mind being able to just set it up without the die roll showing up.
-
You use it exactly as that. They just have different Icons that display to help you categorise them. They were for a specific game system.
-
That is what I thought, but... Hmm... odd, then, as they are not working for me either at the chat or in a roll. I don't get an icon and it just shows ""uses AbilityName". meaning the name of the Ability I set but it doesn't show any of the text I put into the roll and no special icon with it, same for any of the other descriptive ones. Very odd.
-
Rolls are not really meant to be used from chat, only from the charsheet or npcsheet or ct
The icon only appears in the sheet. It simply outputs what you are seeing.
-
I think I see now. So the syntax "/ability (description only)" I was reading it like "/ability (description only)" as if description only was a variable that would be output. But instead the (description only) rolls simply show an icon on the sheet for that thing which, when clicked, outputs some appropriate verb (such as "uses" or "casts") and then the title of the roll. I got it now. Thanks again!
-
The MoreCore font is always present on the Sidebar buttons, even when I add a theme extension to my project. I don't see any way to set the font for the buttons in the options. Is my only recourse to override the buttons definition in my extension?
-
Welcome rdcullen
you will need to redefine this in your extension:
Code:
<font name="button_sidebar_dockitem">
<ttf file="graphics/fonts/astrud.regular.ttf" name="Astrud" size="26" />
<color value="#ffffff" />
</font>
the original is found in /graphics/graphics_fonts.xml
What are you running in MoreCore?
-
I'm playing around, looking to adapt the Shadowrun 5e extension to work for Shadowrun 6e. I had subscribed to the Art Packs and had added the Futuristic theme, but was surprised to see that the button font didn't change when I re-loaded my environment. I traced it back to the code you mentioned but that seems a bit of a code smell to me. forcing a font on someone using the extension rather than allowing a theme to be defined. Oh well, back to making the graphical changes I want. I do appreciate the 5e extension already dealing with the Shadowrun dice mechanics, though I still need to check implementation of the wild die.