MaxTech
Would you like to react to this message? Create an account in a few clicks or log in to continue.
PC Help And Information Easy Maintenance And Free Software
Search Query
Display results as :
Posts
Topics
Advanced Search
MaxTech
::
The World Of WinMX Chat
::
Metis Working Scripts Centre
Dice Game : By Switchcode
3 posters
Author
Message
Steve™
Management
Number of posts
:
2447
Home
:
At Home
Humor
:
If Im Not Back Later... Wait Longer
Registration date :
2007-07-30
Subject: 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)
Like
Dislike
Switchcode
Member
Number of posts
:
4
Registration date :
2011-05-02
Subject: Re: Dice Game : By Switchcode
Mon May 02, 2011 9:11 pm
Hello. This is my script. Hope you enjoy.
Like
Dislike
Steve™
Management
Number of posts
:
2447
Home
:
At Home
Humor
:
If Im Not Back Later... Wait Longer
Registration date :
2007-07-30
Subject: Re: Dice Game : By Switchcode
Mon May 02, 2011 9:18 pm
Hi Swithcode, thanks and edited post with your name as author.
Like
Dislike
Switchcode
Member
Number of posts
:
4
Registration date :
2011-05-02
Subject: 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.
Like
Dislike
Røçkåfë££ë® §kåñK
Elite Member
Number of posts
:
43
Home
:
UK
Humor
:
Chaos, Panic and Disorder...my work here is done!!
Registration date :
2008-10-20
Subject: Re: Dice Game : By Switchcode
Tue May 03, 2011 11:32 pm
Glad to see that your losing track of time nowdays old man
A decade? 2001? I think not! Perhaps 5/6 years is more realistic!
Like
Dislike
Switchcode
Member
Number of posts
:
4
Registration date :
2011-05-02
Subject: Re: Dice Game : By Switchcode
Tue May 03, 2011 11:41 pm
Fair point. I should say it feels like 10 years ago.
Like
Dislike
Sponsored content
Subject: Re: Dice Game : By Switchcode
Dice Game : By Switchcode
Page
1
of
1
Similar topics
Similar topics
»
Top Talkers : By Switchcode
»
Creature Battle : By SwitcHcodE
»
Dice Games : By Flyer
»
Roleplay Game
»
Tree Game : By Gamemaster
Permissions in this forum:
You
cannot
reply to topics in this forum
MaxTech
::
The World Of WinMX Chat
::
Metis Working Scripts Centre
MaxTech
::
The World Of WinMX Chat
::
Metis Working Scripts Centre
Jump to:
Select a forum
|
|-- General
| |--News & Information Centre
| |--Hi, Hello, Morning, Afternoon, Evening
| |--Desktop Wallpapers And Chalk Guy's Art
| |--Probably The Best Free Software In The Wold, That We Know Of
| |--Games Arcade * All Are Free Anyone Can Play *
|
|-- Tech Support Centre
| |--Tech Support Help Desk
| |--Windows XP Essentials
| | |--Sub Forum »» Windows XP Expert
| |
| |--Windows Vista Essentials
| | |--Sub Forum »» Windows Vista Expert
| |
| |--Windows 7 Essentials
| |--Sub Forum »» Windows 7 Expert
|
|-- The World Of WinMX Chat
| |--Downloads Desk for Servers, Clients, Bots & Other Tools
| |--WinMX, Server, Client, & Bot Tutorials
| |--Server/Client/Bot/Script Help Centre
| |--Advertise Your WinMx Chat Rooms Here
| |--Metis Working Scripts Centre
|
|--Miscellaneous Stuff
|--Advertise Your Forum Or Website
|--Misc, Funny Bits, Odds & Ends
|--September 11th 2001 Add A Tribute * Guest Posting Very Welcome *