News:

A forum for users of LackeyCCG

Main Menu

How to get a d24 in the game?

Started by clutchonline, August 26, 2019, 10:26:14 PM

Previous topic - Next topic

clutchonline

I need my players to be able to roll a d24. How do I do that?

CrazyChucky

Here's a helpful list of console commands in Lackey: http://www.lackeyccg.com/tutoriallogcommands.html

You can roll a d24 by typing "/roll d24" in the console and hitting enter. The space is optional, and capitalization doesn't matter.

If you want it available as a button, include something like this in your plugininfo.txt:

<generalfunction><label>Roll d24</label><kind>roll d24</kind><includeasbutton>yes</includeasbutton></generalfunction>

clutchonline

Sorry, but that didn't work. I got the 20-sided die no problem as a button, but the 24-sided die won't work. I don't want to have to force people to use commands in the chat.

clutchonline

Here's the code:


<generalfunction><label>Draw</label><kind>DRAWCARD</kind></generalfunction>
<generalfunction><label>Roll Regular Die</label><kind>ROLLD20</kind><includeasbutton>yes</includeasbutton></generalfunction>
<generalfunction><label>Roll Power Die</label><kind>ROLLD24</kind><includeasbutton>yes</includeasbutton></generalfunction>
<generalfunction><label>Take Control</label><kind>CHANGEOWNER</kind></generalfunction>


Everything works except the d24.

CrazyChucky

Argh, you're right. I was confusing chat commands with general functions, which have some overlap but aren't all the same.

Unfortunately it looks like only 3-, 4-, 6-, 8-, 10-, 12-, and 20-sided dice are available as general functions. I just tested it for 1?30 and yep, they're the only ones that show up as buttons.

What you could do instead is include it as a script, which is then available on one or more cards. (If you need it to always be available, you could make a "dummy" card that's there only to have this ability, and set the game to always start with that card on the table, as detailed here.)

Below is the result of putting "<s><l>Roll d24</l><f>/rolld24</f></s>" in the "Script" column for a card.

CrazyChucky

Sorry to necro, but if you're still around, I only just realized this can be accomplished by saving the chat command as a canned message.