gfxgfx
 
Please login or register.

Login with username, password and session length
 
gfx gfx
gfx
76793 Posts in 13502 Topics by 1651 Members - Latest Member: Arnold99 November 21, 2024, 12:53:49 pm
*
gfx*gfx
gfx
WinMX World :: Forum  |  Metis Scripts and Help  |  Games  |  10 guess game
gfx
gfxgfx
 

Author Topic: 10 guess game  (Read 1672 times)

0 Members and 1 Guest are viewing this topic.

Offline Lagerlout666

  • Forum Member
10 guess game
« on: December 15, 2006, 01:49:38 pm »
Code: [Select]
<command type="script">
<in>!10 Guess</in>
<out type="push" extdata="10questionANSWER">%RANDOMNUM[1000]%</out>
<out>#c8#Ok #c62#%NAME% #c4#I've picked my number out of 1000!!! Have a guess...</out>
<out>#c4#you've got 10 guesses type #c8#!number#c2# Or for your scores type #c8#!myscore</out>
<out type="push" extdata="guessnumber">0</out>
</command>

<command type="script">
<in>!number %PARAM%</in>
<out type="push" extdata="guess">%PARAM%</out>
############################
### put directory in here ##
############################
<out type="push" extdata="directory">"C:\Program Files\RoboMX\Plugins\txt\"</out>
############################
<out type="push" extdata="response" condition="!=" lvalue="$10questionANSWER$" rvalue="$guess$">0</out>
<out type="push" extdata="response" condition="==" lvalue="$10questionANSWER$" rvalue="$guess$">1</out>
<out condition="==" lvalue="$response$" rvalue="1"> %RAWNAME% #c8#Congratulations #c62#%NAME% #c8#your #c54#Correct#c8#.</out>
<out type="push" extdata="1" condition="==" lvalue="$response$" rvalue="1">$directory$Wins\%NAME%.txt</out>
<out type="push" extdata="2" condition="==" lvalue="$response$" rvalue="1">$directory$Wins\%USERVAR[1]%</out>
<out type="push" extdata="3" condition="==" lvalue="$response$" rvalue="1"><operator type="readfile" nvalue="%USERVAR[2]%" lvalue="l" rvalue="1"/></out>
<out type="push" extdata="4"><operator type="strlen"lvalue="%USERVAR[3]%"/></out>
<out type="push" extdata="5"><operator type="<" lvalue="%USERVAR[4]%"rvalue="1"/></out>
<out type="push" extdata="6"><operator type="readfile" nvalue="%USERVAR[2]%"lvalue="l" rvalue="1"/></out>
<out type="push" extdata="7" condition="==" lvalue="%USERVAR[5]%" rvalue="0"><operator type="+" lvalue="%USERVAR[6]%" rvalue="1"/></out>
<out type="push" extdata="7" condition="==" lvalue="%USERVAR[5]%" rvalue="1"><operator type="+" lvalue="0" rvalue="1"/></out>
<out type="file" mode="t" extdata="%USERVAR[2]%">%USERVAR[7]%</out>
<out type="self" condition="==" lvalue="$response$" rvalue="1">!finishquestions</out>
<out type="break" condition="==" lvalue="$response$" rvalue="1"></out>
<out type="push" extdata="HiLo" condition="<" lvalue="$10questionANSWER$" rvalue="$guess$">Lower</out>
<out type="push" extdata="HiLo" condition=">" lvalue="$10questionANSWER$" rvalue="$guess$">Higher</out>
<out type="push" extdata="response1" condition="==" lvalue="$response$" rvalue="0"> %RAWNAME% #c8#Unlucky #c62#%NAME% #c8#your next guess needs to be #c54#$HiLo$#c8#.</out>
<out type="push" extdata="guessnumber"><operator type="+" lvalue="$guessnumber$" rvalue="1"/></out>
<out condition="!=" lvalue="$guessnumber$" rvalue="10">$response1$</out>
<out condition="!=" lvalue="$guessnumber$" rvalue="10"> %RAWNAME% #c8#That was guess number #c1#$guessnumber$#c8#!!!</out>
<out condition="==" lvalue="$guessnumber$" rvalue="10"> %RAWNAME% #c2#Sorry #c51#%NAME% #c2#that was your last guess!!! You lost!!! The answer was #c8#$10questionANSWER$#c2#!!!!</out>
<out type="push" extdata="1" condition="==" lvalue="$guessnumber$" rvalue="10">$directory$Loses\%NAME%.txt</out>
<out type="push" extdata="2" condition="==" lvalue="$guessnumber$" rvalue="10">$directory$Loses\%USERVAR[1]%</out>
<out type="push" extdata="3" condition="==" lvalue="$guessnumber$" rvalue="10"><operator type="readfile" nvalue="%USERVAR[2]%" lvalue="l" rvalue="1"/></out>
<out type="push" extdata="4" condition="==" lvalue="$guessnumber$" rvalue="10"><operator type="strlen"lvalue="%USERVAR[3]%"/></out>
<out type="push" extdata="5" condition="==" lvalue="$guessnumber$" rvalue="10"><operator type="<" lvalue="%USERVAR[4]%"rvalue="1"/></out>
<out type="push" extdata="6" condition="==" lvalue="$guessnumber$" rvalue="10"><operator type="readfile" nvalue="%USERVAR[2]%"lvalue="l" rvalue="1"/></out>
<out type="push" extdata="7" condition="==" lvalue="%USERVAR[5]%" rvalue="0"><operator type="+" lvalue="%USERVAR[6]%" rvalue="1"/></out>
<out type="push" extdata="7" condition="==" lvalue="%USERVAR[5]%" rvalue="1"><operator type="+" lvalue="0" rvalue="1"/></out>
<out type="file" mode="t" extdata="%USERVAR[2]%">%USERVAR[7]%</out>
<out type="self" condition="==" lvalue="$guessnumber$" rvalue="10">!finishquestions</out>
</command>

<command type="script">
<in>!finishquestions</in>
<out type="pop" extdata="guess"></out>
<out type="pop" extdata="response"></out>
<out type="pop" extdata="HiLo"></out>
<out type="pop" extdata="response1"></out>
<out type="pop" extdata="guessnumber"></out>
<out>#c8#All ready for next player</out>
</command>

<command type="script">
<in>!MyScore</in>
<out type="push" extdata="20"><operator type="readfile" nvalue="$directory$Wins\%NAME%.txt" lvalue="l" rvalue="1"/></out>
<out type="push" extdata="21"><operator type="strlen"lvalue="%USERVAR[20]%"/></out>
<out type="push" extdata="22"><operator type="<" lvalue="%USERVAR[21]%"rvalue="1"/></out>
<out type="push" extdata="23"><operator type="readfile" nvalue="$directory$Wins\%NAME%.txt"lvalue="l" rvalue="1"/></out>
<out type="push" extdata="24" condition="==" lvalue="%USERVAR[22]%" rvalue="0">%USERVAR[23]%</out>
<out type="push" extdata="24" condition="==" lvalue="%USERVAR[22]%" rvalue="1">0</out>

<out type="push" extdata="25"><operator type="readfile" nvalue="$directory$Loses\%NAME%.txt" lvalue="l" rvalue="1"/></out>
<out type="push" extdata="26"><operator type="strlen"lvalue="%USERVAR[26]%"/></out>
<out type="push" extdata="27"><operator type="<" lvalue="%USERVAR[27]%"rvalue="1"/></out>
<out type="push" extdata="28"><operator type="readfile" nvalue="$directory$Loses\%NAME%.txt"lvalue="l" rvalue="1"/></out>
<out type="push" extdata="29" condition="==" lvalue="%USERVAR[27]%" rvalue="0">%USERVAR[28]%</out>
<out type="push" extdata="29" condition="==" lvalue="%USERVAR[27]%" rvalue="1">0</out>

<out>%NAME% #c8#your score is... #c1#%USERVAR[24]% #c8#wins and #c1#%USERVAR[29]% #c8#loses.</out>
</command>
The Solution to 99% of winmx problems

nap.winmxgroup.net        -ONLINE again YAY!!!!!! :D

Praise's daily at the church of "Kopimi"

WinMX World :: Forum  |  Metis Scripts and Help  |  Games  |  10 guess game
 

gfxgfx
gfx
©2005-2024 WinMXWorld.com. All Rights Reserved.
SMF 2.0.19 | SMF © 2021, Simple Machines | Terms and Policies
Page created in 0.009 seconds with 20 queries.
Helios Multi © Bloc
gfx
Powered by MySQL Powered by PHP Valid XHTML 1.0! Valid CSS!