JavaScript must be enabled to play.
Browser lacks capabilities required to play.
Upgrade or switch to another browser.
Loading…
<<nobr>> <div id="scoreBlock"> <div id="formRow"> <span id="nameCol">Aces:</span> <span id="resultCol"> <<print $p1ace>> </span> <span id="buttonCol"> <<button "-">> <<set $p1ace to $p1ace - 1>> <<script>>state.display(state.active.title);<</script>> <<script>>state.display(state.active.title);<</script>> <</button>> <<button "+">> <<set $p1ace to $p1ace + 1>> <<script>>state.display(state.active.title);<</script>> <<script>>state.display(state.active.title);<</script>> <</button>> </span> </div> <div id="formRow"> <span id="nameCol">Two's:</span> <span id="resultCol"> <<print $p1two>> </span> <span id="buttonCol"> <<button "-">> <<set $p1two to $p1two - 2>> <<script>>state.display(state.active.title);<</script>> <<script>>state.display(state.active.title);<</script>> <</button>> <<button "+">> <<set $p1two to $p1two + 2>> <<script>>state.display(state.active.title);<</script>> <<script>>state.display(state.active.title);<</script>> <</button>> </span> </div> <div id="formRow"> <span id="nameCol">Threes:</span> <span id="resultCol"> <<print $p1three>> </span> <span id="buttonCol"> <<button "-">> <<set $p1three to $p1three - 3>> <<script>>state.display(state.active.title);<</script>> <<script>>state.display(state.active.title);<</script>> <</button>> <<button "+">> <<set $p1three to $p1three + 3>> <<script>>state.display(state.active.title);<</script>> <<script>>state.display(state.active.title);<</script>> <</button>> </span> </div> <div id="formRow"> <span id="nameCol">Fours:</span> <span id="resultCol"> <<print $p1four>> </span> <span id="buttonCol"> <<button "-">> <<set $p1four to $p1four - 4>> <<script>>state.display(state.active.title);<</script>> <<script>>state.display(state.active.title);<</script>> <</button>> <<button "+">> <<set $p1four to $p1four + 4>> <<script>>state.display(state.active.title);<</script>> <<script>>state.display(state.active.title);<</script>> <</button>> </span> </div> <div id="formRow"> <span id="nameCol">Fives:</span> <span id="resultCol"> <<print $p1five>> </span> <span id="buttonCol"> <<button "-">> <<set $p1five to $p1five - 5>> <<script>>state.display(state.active.title);<</script>> <<script>>state.display(state.active.title);<</script>> <</button>> <<button "+">> <<set $p1five to $p1five + 5>> <<script>>state.display(state.active.title);<</script>> <<script>>state.display(state.active.title);<</script>> <</button>> </span> </div> <div id="formRow"> <span id="nameCol">Sixes:</span> <span id="resultCol"> <<print $p1six>> </span> <span id="buttonCol"> <<button "-">> <<set $p1six to $p1six - 6>> <<script>>state.display(state.active.title);<</script>> <<script>>state.display(state.active.title);<</script>> <</button>> <<button "+">> <<set $p1six to $p1six + 6>> <<script>>state.display(state.active.title);<</script>> <<script>>state.display(state.active.title);<</script>> <</button>> </span> </div> <hr id="formSpace"> <div id="formRow"> <span id="nameCol">Sub Total:</span> <span id="resultCol"> <<print $p1subTotal>> </span> <<set $p1subTotal to $p1ace + $p1two + $p1three + $p1four + $p1five + $p1six>> </div> <div id="formRow"> <span id="nameCol">Bonus:</span> <span id="resultCol"> <<print $p1bonus>> </span> <<if $p1subTotal gt 62>> <<set $p1bonus to 35>> <<else>> <<set $p1bonus to 0>> <</if>> </div> <div id="formRow"> <span id="nameCol">Upper Total:</span> <span id="resultCol"> <<print $p1uppTotal>> </span> <<set $p1uppTotal to $p1subTotal + $p1bonus>> </div> </div> <hr id="formSep"> <div id="scoreBlock"> <div id="formRow"> <span id="nameCol">3 of a Kind:</span> <span id="resultCol"> <<print $p13ofkind>> </span> <span id="buttonCol"> <<button "-">> <<set $p13ofkind to $p13ofkind - 1>> <<script>>state.display(state.active.title);<</script>> <<script>>state.display(state.active.title);<</script>> <</button>> <<button "+">> <<set $p13ofkind to $p13ofkind + 1>> <<script>>state.display(state.active.title);<</script>> <<script>>state.display(state.active.title);<</script>> <</button>> </span> </div> <div id="formRow"> <span id="nameCol">4 of a Kind:</span> <span id="resultCol"> <<print $p14ofkind>> </span> <span id="buttonCol"> <<button "-">> <<set $p14ofkind to $p14ofkind - 1>> <<script>>state.display(state.active.title);<</script>> <<script>>state.display(state.active.title);<</script>> <</button>> <<button "+">> <<set $p14ofkind to $p14ofkind + 1>> <<script>>state.display(state.active.title);<</script>> <<script>>state.display(state.active.title);<</script>> <</button>> </span> </div> <div id="formRow"> <span id="nameCol">Full House:</span> <span id="resultCol"> <<print $p1fullHouse>> </span> <span id="buttonCol"> <<button "-">> <<set $p1fullHouse to $p1fullHouse - 25>> <<script>>state.display(state.active.title);<</script>> <<script>>state.display(state.active.title);<</script>> <</button>> <<button "+">> <<set $p1fullHouse to $p1fullHouse + 25>> <<script>>state.display(state.active.title);<</script>> <<script>>state.display(state.active.title);<</script>> <</button>> </span> </div> <div id="formRow"> <span id="nameCol">Small Straight:</span> <span id="resultCol"> <<print $p1smallStraight>> </span> <span id="buttonCol"> <<button "-">> <<set $p1smallStraight to $p1smallStraight - 30>> <<script>>state.display(state.active.title);<</script>> <<script>>state.display(state.active.title);<</script>> <</button>> <<button "+">> <<set $p1smallStraight to $p1smallStraight + 30>> <<script>>state.display(state.active.title);<</script>> <<script>>state.display(state.active.title);<</script>> <</button>> </span> </div> <div id="formRow"> <span id="nameCol">Large Straight:</span> <span id="resultCol"> <<print $p1largeStraight>> </span> <span id="buttonCol"> <<button "-">> <<set $p1largeStraight to $p1largeStraight - 40>> <<script>>state.display(state.active.title);<</script>> <<script>>state.display(state.active.title);<</script>> <</button>> <<button "+">> <<set $p1largeStraight to $p1largeStraight + 40>> <<script>>state.display(state.active.title);<</script>> <<script>>state.display(state.active.title);<</script>> <</button>> </span> </div> <div id="formRow"> <span id="nameCol">Chance:</span> <span id="resultCol"> <<print $p1chance>> </span> <span id="buttonCol"> <<button "-">> <<set $p1chance to $p1chance - 1>> <<script>>state.display(state.active.title);<</script>> <<script>>state.display(state.active.title);<</script>> <</button>> <<button "+">> <<set $p1chance to $p1chance + 1>> <<script>>state.display(state.active.title);<</script>> <<script>>state.display(state.active.title);<</script>> <</button>> </span> </div> <div id="formRow"> <span id="nameCol">YAHTZEE:</span> <span id="resultCol"> <<print $p1yahtzee>> </span> <span id="buttonCol"> <<button "-">> <<set $p1yahtzee to $p1yahtzee - 50>> <<script>>state.display(state.active.title);<</script>> <<script>>state.display(state.active.title);<</script>> <</button>> <<button "+">> <<set $p1yahtzee to $p1yahtzee + 50>> <<script>>state.display(state.active.title);<</script>> <<script>>state.display(state.active.title);<</script>> <</button>> </span> </div> <hr id="formSpace"> <div id="formRow"> <span id="nameCol">Yahtzee Bonus:</span> <span id="resultCol"> <<print $p1yahtzeeBonus>> </span> <span id="buttonCol"> <<button "-">> <<set $p1yahtzeeBonus to $p1yahtzeeBonus - 100>> <<script>>state.display(state.active.title);<</script>> <<script>>state.display(state.active.title);<</script>> <</button>> <<button "+">> <<set $p1yahtzeeBonus to $p1yahtzeeBonus + 100>> <<script>>state.display(state.active.title);<</script>> <<script>>state.display(state.active.title);<</script>> <</button>> </span> </div> <div id="formRow"> <span id="nameCol">Lower Total:</span> <span id="resultCol"> <<print $p1lowTotal>> </span> <<set $p1lowTotal to $p13ofkind + $p14ofkind + $p1fullHouse + $p1smallStraight + $p1largeStraight + $p1chance + $p1yahtzee + $p1yahtzeeBonus>> </div> </div> <hr id="formSep"> <div id="scoreBlock"> <div id="formRow"> <span id="nameCol">GRAND TOTAL:</span> <span id="grandResult"> <<print $p1grandTotal>> </span> <<set $p1grandTotal to $p1uppTotal + $p1lowTotal>> </div> </div> <</nobr>>
/* This was put together by Brook Gerard AKA EkDor with the assistance of intfiction.org members. I created it as a learning project. */ <<set $sFull to false>> <<if $p1ace isnot "defined">> <<set $p1ace to 0>> <</if>> <<if $p1two isnot "defined">> <<set $p1two to 0>> <</if>> <<if $p1three isnot "defined">> <<set $p1three to 0>> <</if>> <<if $p1four isnot "defined">> <<set $p1four to 0>> <</if>> <<if $p1five isnot "defined">> <<set $p1five to 0>> <</if>> <<if $p1six isnot "defined">> <<set $p1six to 0>> <</if>> <<if $p1SubTotal isnot "defined">> <<set $p1subTotal to 0>> <</if>> <<if $p1Bonus isnot "defined">> <<set $p1bonus to 0>> <</if>> <<if $p1UppTotal isnot "defined">> <<set $p1uppTotal to 0>> <</if>> <<if $p13ofkind isnot "defined">> <<set $p13ofkind to 0>> <</if>> <<if $p14ofkind isnot "defined">> <<set $p14ofkind to 0>> <</if>> <<if $p1fullHouse isnot "defined">> <<set $p1fullHouse to 0>> <</if>> <<if $p1smallStraight isnot "defined">> <<set $p1smallStraight to 0>> <</if>> <<if $p1largeStraight isnot "defined">> <<set $p1largeStraight to 0>> <</if>> <<if $p1chance isnot "defined">> <<set $p1chance to 0>> <</if>> <<if $p1yahtzee isnot "defined">> <<set $p1yahtzee to 0>> <</if>> <<if $p1yahtzeeBonus isnot "defined">> <<set $p1yahtzeeBonus to 0>> <</if>> <<if $p1lowTotal isnot "defined">> <<set $p1lowTotal to 0>> <</if>> <<if $p1grandTotal isnot "defined">> <<set $p1grandTotal to 0>> <</if>>
<<nobr>> <div id="footer"> <<if $sFull is false>> <<button "FullScreen">> <<run Fullscreen.toggle();>> <<set $sFull to true>> <<script>>state.display(state.active.title);<</script>> <</button>> <<else>> <<button "Exit FullScreen">> <<run Fullscreen.toggle();>> <<set $sFull to false>> <<script>>state.display(state.active.title);<</script>> <</button>> <</if>> <span id="buttonRight"> <<button "Reset">> <<script>>state.restart();<</script>> <</button>> </span> </div> <</nobr>><<script>> function EmbedTwineUpdateHeight(){ var passage = document.getElementsByTagName("tw-passage")[0]; if (passage === undefined){//SugarCube passage = document.getElementById("passages"); } var newHeight = passage.offsetHeight; if(newHeight<500){newHeight=500;} window.parent.postMessage(["setHeight", newHeight], "*"); console.log(newHeight); } setTimeout(EmbedTwineUpdateHeight, 50); <</script>>
<<nobr>> <div id="header"> <<button "Save">> <<run Save.slots.save(0);>> <</button>> <<button "Load">> <<run Save.slots.load(0);>> <</button>> </div> <</nobr>>