News:

A forum for users of LackeyCCG

Main Menu

General Function or canned message

Started by mathman1550, August 17, 2014, 01:39:03 PM

Previous topic - Next topic

mathman1550

I'm working with someone to improve their plugin and was stumped by the best way to approach a situation.
In this game, on a players turn they draw three cards instead of just one. I could include a canned message to /draw3 but I want a button in front of everyone so I don't have to teach players how to access the canned messages. I know a generalfunction can be defined to have a button to draw a card, but can I make a button for drawing three?

RoyMaster4

I can't think of a general function that works to draw 3 (unless simply putting in <kind>DRAWCARD</kind> 3 times works), but you can force players to have the correct canned messages when they download the plugin, which would then appear directly above the chat. I know there's a way to only force it the first time so people can add their own custom settings (something with a checksum of 0?), but I could never get it to work.