Forum


Script and Tips thread (gathering all scripters)
Crazy Smurf wrote
at 5:26 PM, Saturday August 13, 2011 EDT
I've been trying to learn scripting/coding features for KDice lately, and I found out that there is many dicers that can code. And they're happy to contribute.

The purpose of this thread, is to gather as many scripters as we can, and try to develop new and fun/useful add-ons so we can enjoy new features. (And maybe we could form a group of players that can script together.)

Come with inputs, ideas, and tips. Everything is welcome

I have alot of cool ideas already, but I’m hardly qualified to create much as I’m new to the whole scene.

I’m currently using www.w3schools.com to learn from
And i use http://jsfiddle.net to show the codes to people
If you have other great sites please post a link.

Thanks in advance.

« First ‹ Previous Replies 21 - 27 of 27
deadcode wrote
at 3:41 PM, Wednesday August 17, 2011 EDT
Smurf; your issue is that you are using GM_getValue("dct-options-hiflags-Colors") to check the checkbox.

GM_getValue is for checking the browser storage. I use it to save checkbox states across sessions of the browser. So if you check a checkbox; I save the state using GM_setValue so that if you close the browser and reopen. I can get the value and reset the checkboxes again for you. Kind of like saving your settings.

To see whether a checkbox is checked you need to use:
if ($('[SELECTOR]').is(':checked')) {
code here
}
deadcode wrote
at 3:43 PM, Wednesday August 17, 2011 EDT
the selector should be 'input[name="dct-options-hiflags-Colors"]'.

This would find the input (checkbox) with the name 'dct-options-hiflags-Colors'
XCWonderwoman wrote
at 5:04 PM, Wednesday August 17, 2011 EDT
my head officially hurts from that lmao.
deadcode wrote
at 5:22 PM, Wednesday August 17, 2011 EDT
XCWonderwoman wrote
at 5:42 PM, Wednesday August 17, 2011 EDT
AWWWWWWW...what a great kitten. she even knows how to put it in her mouth already. im impressed lolz. :P
deer wrote
at 7:11 PM, Wednesday August 17, 2011 EDT
smurf i got an idea


get a life problem solved
deadcode wrote
at 6:13 PM, Monday August 22, 2011 EDT
Did that help Smurf?
KDice - Multiplayer Dice War
KDice is a multiplayer strategy online game played in monthly competitions. It's like Risk. The goal is to win every territory on the map.
CREATED BY RYAN © 2006 - 2026
GAMES
G GPokr
Texas Holdem Poker
K KDice
Online Strategy
X XSketch
Online Pictionary