PC Help And Information Easy Maintenance And Free Software
 
HomePortalFAQSearchRegisterLog in

Share | 
 

 Rock Paper Scissors : Author Unknown

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: Rock Paper Scissors : Author Unknown [Short Version]   Tue Jul 31, 2007 5:34 pm

Code:
<config>

<command>
<in>!rps</in>
<out> this is the famous 'Rock-Paper-Scissors' Game: to play type...  #c5#!rock #c1#or #c2#!paper #c1#or #c10#!scissors\n #c5#Rock #c1#beats #c10#Scissors  Scissors #c1#beats #c2#Paper  Paper #c1#beats #c5#Rock </out>
</command>

<command type="script">
<in>!rock</in>
<out type="push" extdata="rock">%RANDOMNUM[3]%</out>
<out type="push" extdata="rock" condition="==" lvalue=$rock$ rvalue=0> #c9#Rock! ... It's a DRAW!</out>
<out type="push" extdata="rock" condition="==" lvalue=$rock$ rvalue=1> #c9#Paper! ... I WIN!!! ... I'm good lol.</out>
<out type="push" extdata="rock" condition="==" lvalue=$rock$ rvalue=2> #c9#Scissors! ... YOU WIN!!! ... Congratulations!!!</out>
<out>$rock$</out>
</command>

<command type="script">
<in>!paper</in>
<out type="push" extdata="paper">%RANDOMNUM[3]%</out>
<out type="push" extdata="paper" condition="==" lvalue=$paper$ rvalue=0> #c9#Rock! ... YOU WIN!!! ... Congratulations!!!</out>
<out type="push" extdata="paper" condition="==" lvalue=$paper$ rvalue=1> #c9#Paper! ... It's a DRAW!</out>
<out type="push" extdata="paper" condition="==" lvalue=$paper$ rvalue=2> #c9#Scissors! ... I WIN!!! ... I'm good lol.</out>
<out>$paper$</out>
</command>

<command type="script">
<in>!scissors</in>
<out type="push" extdata="scissors">%RANDOMNUM[3]%</out>
<out type="push" extdata="scissors" condition="==" lvalue=$scissors$ rvalue=0> #c9#Rock! ... I WIN!!! ... I'm good lol.</out>
<out type="push" extdata="scissors" condition="==" lvalue=$scissors$ rvalue=1> #c9#Paper! ... YOU WIN!!! ... Congratulations!!!</out>
<out type="push" extdata="scissors" condition="==" lvalue=$scissors$ rvalue=2> #c9#Scissors! ... It's a DRAW!</out>
<out>$scissors$</out>
</command>

</config>





Last edited by Max™ on Sun Apr 11, 2010 1:25 am; edited 2 times in total
Back to top Go down
http://maxtech.youneed.us
MrDarn™
Moderator

Moderator
avatar

Male
Number of posts : 299
Home : At My PC
Humor : Dry/Sarcastic
Registration date : 2007-09-27

PostSubject: Re: Rock Paper Scissors : Author Unknown   Tue Oct 09, 2007 1:27 pm

may be untested, but heres another way to do the same thing:

Code:


<command type="script">
<in>!scissors</in>
<in>!rock</in>
<in>!stone</in>
<out type="push" extdata="rpsTrigger"><operator type="strrem" lvalue="%TRIGGER%" rvalue="!"/></out>
<out type="push" extdata="rpsCpuSelection">%RANDOMNUM[3]%</out>
<out condition="1" lvalue="$rpsCpuSelection$" rvalue="0" type="push" extdata="rpsCpuSelection">Rock</out>
<out condition="1" lvalue="$rpsCpuSelection$" rvalue="1" type="push" extdata="rpsCpuSelection">Paper</out>
<out condition="1" lvalue="$rpsCpuSelection$" rvalue="2" type="push" extdata="rpsCpuSelection">Scissors</out>
<out condition="1" lvalue="$rpsCpuSelection$" rvalue="$rpsTrigger$">#c9#$rpsSelection$ ... It's a DRAW!</out>
<out type="break" condition="1" lvalue="$rpsCpuSelection$" rvalue="$rpsTrigger$"/>
<out type="goto" extdata="3" condition="1" lvalue="rock" rvalue="$rpsCpuSelect$"></out>
<out type="goto" extdata="5" condition="1" lvalue="paper" rvalue="$rpsCpuSelect$"></out>
<out type="goto" extdata="7" condition="1" lvalue="scissors" rvalue="$rpsCpuSelect$"></out>
<out condition="1" lvalue="paper" rvalue="$rpsTrigger$">#c9#Rock! ... YOU WIN!!! ... Congratulations!!!</out>
<out condition="1" lvalue="scissors" rvalue="$rpsTrigger$">#c9#Rock! ... I WIN!!! ... I'm good lol.</out>
<out type="break"/>
<out condition="1" lvalue="scissors" rvalue="$rpsTrigger$">#c9#Paper! ... YOU WIN!!! ... Congratulations!!!</out>
<out condition="1" lvalue="rock" rvalue="$rpsTrigger$">#c9#Paper! ... I WIN!!! ... I'm good lol.</out>
<out type="break"/>
<out condition="1" lvalue="paper" rvalue="$rpsTrigger$">#c9#Scissors! ... YOU WIN!!! ... Congratulations!!!</out>
<out condition="1" lvalue="rock" rvalue="$rpsTrigger$">#c9#Scissors! ... I WIN!!! ... I'm good lol.</out>
</command>
Back to top Go down
http://www.mrdarn.co.uk
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: Rock Paper Scissors : Author Unknown   Tue Oct 09, 2007 2:32 pm

cool, thanks Mr Darn,
last forum i posted my version, someone called PenM@x jumped up and down saying it was his, so i just popped it here, but i seen different variations & PenM@x wanted his name on all variations as his creation, yeah right.



Back to top Go down
http://maxtech.youneed.us
MrDarn™
Moderator

Moderator
avatar

Male
Number of posts : 299
Home : At My PC
Humor : Dry/Sarcastic
Registration date : 2007-09-27

PostSubject: Re: Rock Paper Scissors : Author Unknown   Tue Oct 09, 2007 3:18 pm

yeah, just like everyone who ever went:
Code:
 <command>
<in>hello</in>
<out>hi There, Welcome to the room!</out>
</command>

invented that too!
Back to top Go down
http://www.mrdarn.co.uk
Sponsored content




PostSubject: Re: Rock Paper Scissors : Author Unknown   

Back to top Go down
 
Rock Paper Scissors : Author Unknown
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Rock Band 3,000 Song Giveaway *usa only*
» Psyphon's college paper on martial arts
» Who do you think the final boss of Paper Mario Sticker Star will be?
» Paper Mario Thousand Year Door
» Super Paper Mario (Español)

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