PC Help And Information Easy Maintenance And Free Software
 
HomePortalFAQSearchRegisterLog in

Share | 
 

 Dice Game : By Switchcode

View previous topic View next topic Go down 
AuthorMessage
Steve™
Management

Management
avatar

Male
Number of posts : 2447
Home : At Home
Humor : If Im Not Back Later... Wait Longer
Registration date : 2007-07-30

PostSubject: Dice Game : By Switchcode   Tue Jul 31, 2007 5:11 pm

Code:

<config>//Dice.xml Gamemaster by Switchcode

<command type="script">
<in>!dice</in>
<in>!hold</in>
<out type="sleep"extdata="150"></out>
<out type="push"extdata="hold"condition="1"lvalue="%TRIGGER%"rvalue="!hold">1</out>
<out condition="1"lvalue="%TRIGGER%"rvalue="!hold">#c8#Holding..</out>
<out type="push"extdata="player"condition="0"lvalue="$running$"rvalue="1">%player%</out>
<out type="push"extdata="penalty">/kick $player$</out>
<out type="goto"extdata="7"condition="0"lvalue="$running$"rvalue="1"></out>
<out type="push"extdata="diceresultthree">$diceresult$</out>
<out type="push"extdata="diceresultfour">$diceresulttwo$</out>
<out type="push"extdata="dicegraphthree">$dicegraph$</out>
<out type="push"extdata="dicegraphfour">$dicegraphtwo$</out>
<out type="push"extdata="resulttwo">$result$</out>
<out type="goto"extdata="4"></out>
<out type="push"extdata="target">%RANDOMNUM[13]%</out>
<out type="push"extdata="target"><operator type="+"lvalue="$target$"rvalue="5"/></out>
<out>#c8#Target value is #c1#$target$#c8#!!</out>
<out type="push"extdata="firstdicedone">0</out>
<out type="push"extdata="diceresult">%RANDOMNUM[5]%</out>
<out type="push"extdata="diceresult"><operator type="++"lvalue="$diceresult$"/></out>
<out type="push"extdata="dicegraph"condition="1"lvalue="$diceresult$"rvalue="1">#c9#( #c1#· #c9#)</out>
<out type="push"extdata="dicegraph"condition="1"lvalue="$diceresult$"rvalue="2">#c9#( #c1#: #c9#)</out>
<out type="push"extdata="dicegraph"condition="1"lvalue="$diceresult$"rvalue="3">#c9#(#c1#: ·#c9#)</out>
<out type="push"extdata="dicegraph"condition="1"lvalue="$diceresult$"rvalue="4">#c9#(#c1#: :#c9#)</out>
<out type="push"extdata="dicegraph"condition="1"lvalue="$diceresult$"rvalue="5">#c9#(#c1#:·:#c9#)</out>
<out type="push"extdata="dicegraph"condition="1"lvalue="$diceresult$"rvalue="6">#c9#(#c1#:::#c9#)</out>
<out type="goto"extdata="5"condition="1"lvalue="$firstdicedone$"rvalue="1"></out>
<out type="push"extdata="firstdicedone">1</out>
<out type="push"extdata="diceresulttwo">$diceresult$</out>
<out type="push"extdata="dicegraphtwo">$dicegraph$</out>
<out type="goto"extdata="-12"condition="1"lvalue="$firstdicedone$"rvalue="1"></out>
<out type="push"extdata="result"><operator type="+"lvalue="$diceresult$"rvalue="$diceresulttwo$"/></out>
<out type="push"extdata="totalresult"condition="1"lvalue="$running$"rvalue="1"><operator type="+"lvalue="$result$"rvalue="$resulttwo$"/></out>
<out type="goto"extdata="20"condition="1"lvalue="$hold$"rvalue="1"></out>
<out type="goto"extdata="10"condition="1"lvalue="$running$"rvalue="1"></out>
<out delay="200">$dicegraph$ #c8#+ $dicegraphtwo$ #c8#= #c1#$result$</out>
<out condition=">"lvalue="$result$"rvalue="$target$">#c8#BUSTED!!!</out>
<out condition=">"lvalue="$result$"rvalue="$target$"delay="1000">$penalty$</out>
<out type="goto"extdata="14"condition=">"lvalue="$result$"rvalue="$target$"></out>
<out condition="1"lvalue="$result$"rvalue="$target$">#c8#YAYYYYYYYYYYYYYY!!!!!</out>
<out type="goto"extdata="12"condition="1"lvalue="$result$"rvalue="$target$"></out>
<out>#c8#Type #c1#!dice #c8#to roll again or #c1#!hold #c8#to settle..</out>
<out type="push"extdata="running">1</out>
<out type="goto"extdata="9"></out>
<out delay="200">$dicegraphthree$ #c8#+ $dicegraphfour$ #c8#+ $dicegraph$ #c8#+ $dicegraphtwo$ #c8#= #c1#$totalresult$#c8#/#c1#$target$</out>
<out type="push"extdata="running">0</out>
<out condition=">"lvalue="$totalresult$"rvalue="$target$">#c8#BUSTED!!!</out>
<out condition=">"lvalue="$totalresult$"rvalue="$target$"delay="1000">$penalty$</out>
<out type="goto"extdata="4"condition=">"lvalue="$totalresult$"rvalue="$target$"></out>
<out condition="1"lvalue="$totalresult$"rvalue="$target$">#c8#YAYYYYYYYYYYYYYY!!!!!</out>
<out type="goto"extdata="2"condition="1"lvalue="$totalresult$"rvalue="$target$"></out>
<out>#c8#Aw well. You can always try again #c1#=)</out>
<out type="break"></out>
<out>#c8#Your next roll would have been</out>
<out>$dicegraphthree$ #c8#+ $dicegraphfour$ #c8#+ $dicegraph$ #c8#+ $dicegraphtwo$ #c8#= #c1#$totalresult$</out>
<out condition=">"lvalue="$totalresult$"rvalue="$target$">#c8#You were right to hold!! Well done! #c1#=)</out>
<out condition="1"lvalue="$totalresult$"rvalue="$target$">#c8#BUSTED!!! You would have WON!!</out>
<out condition="1"lvalue="$totalresult$"rvalue="$target$"delay="1000">$penalty$</out>
<out condition="<"lvalue="$totalresult$"rvalue="$target$">#c8#Bad luck =\ You could have rolled again..</out>
<out type="push"extdata="hold">0</out>
<out type="push"extdata="running">0</out>
<out condition="1"lvalue="%RANDOMNUM[5]%"rvalue="0">#c8#Scripted by #c1#¯`º$wìt©(#c?#-#c1#)©ódɺ´¯#c8#. Get !dice from #c1#kraine.atspace.com/dice.txt</out>
<out type="break"></out>
</command>

</config>





Last edited by Steve™ on Mon May 02, 2011 9:17 pm; edited 2 times in total (Reason for editing : added correct author)
Back to top Go down
http://maxtech.youneed.us
Switchcode
Member

Member
avatar

Male
Number of posts : 4
Registration date : 2011-05-02

PostSubject: Re: Dice Game : By Switchcode   Mon May 02, 2011 9:11 pm

Hello. This is my script. Hope you enjoy.
Back to top Go down
http://www.switchcode.net
Steve™
Management

Management
avatar

Male
Number of posts : 2447
Home : At Home
Humor : If Im Not Back Later... Wait Longer
Registration date : 2007-07-30

PostSubject: Re: Dice Game : By Switchcode   Mon May 02, 2011 9:18 pm

Hi Swithcode, thanks and edited post with your name as author.



Back to top Go down
http://maxtech.youneed.us
Switchcode
Member

Member
avatar

Male
Number of posts : 4
Registration date : 2011-05-02

PostSubject: Re: Dice Game : By Switchcode   Mon May 02, 2011 9:19 pm

Merci =]
It's a joy to know that code you wrote almost a decade ago still gets used.
Back to top Go down
http://www.switchcode.net
Røçkåfë££ë® §kåñK
Elite Member

Elite Member
avatar

Male
Number of posts : 43
Home : UK
Humor : Chaos, Panic and Disorder...my work here is done!!
Registration date : 2008-10-20

PostSubject: Re: Dice Game : By Switchcode   Tue May 03, 2011 11:32 pm

Glad to see that your losing track of time nowdays old man Razz
A decade? 2001? I think not! Perhaps 5/6 years is more realistic!
Back to top Go down
http://www.therebelion.co.nr
Switchcode
Member

Member
avatar

Male
Number of posts : 4
Registration date : 2011-05-02

PostSubject: Re: Dice Game : By Switchcode   Tue May 03, 2011 11:41 pm

Fair point. I should say it feels like 10 years ago.
Back to top Go down
http://www.switchcode.net
Sponsored content




PostSubject: Re: Dice Game : By Switchcode   

Back to top Go down
 
Dice Game : By Switchcode
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Blokus Game Giveaway *Canada and usa only*
» Future Forward Game Changer Award 2011
» Learning Palace Blurt Game Giveaway! *usa only*
» SoBe Lifewater Facebook SUMMER OF SoBe Game *usa only*
» The Pun Game Thread

Permissions in this forum:You cannot reply to topics in this forum
MaxTech ::  The World Of WinMX Chat :: Metis Working Scripts Centre-
Jump to: