LackeyCCG

LackeyCCG Forum => Plugins & Plugin Creation Forum => Topic started by: mathman1550 on August 17, 2014, 01:39:03 PM

Title: General Function or canned message
Post by: mathman1550 on August 17, 2014, 01:39:03 PM
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?
Title: Re: General Function or canned message
Post by: RoyMaster4 on August 17, 2014, 05:42:18 PM
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.