wizard1970 Posted July 22, 2008 Author Report Share Posted July 22, 2008 (edited) the code above is working, the only thing is when i do paper 50 ou rock 10 nothing happens, i think that something is missing in command to choose that I want to play Edited July 22, 2008 by wizard1970 Link to comment Share on other sites More sharing options...
wizard1970 Posted July 25, 2008 Author Report Share Posted July 25, 2008 someone knows how to put the command in this game? the command is !paper !rock or scissors, i think that is here on *:text:! *:#:{ but how? ;_______________________________________________________________________________ _____ ;::::::::::::::::::: Jo-Ken-Po ;¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ ¯¯¯¯¯ alias -l st_jo_ken_pon { if ($timer(jkp7)) return unset %jkp.* %jkp.max = 3 set %jkp.jkpal $r(1,3) if (%jkp.jkpal == 1) { set %jkp.myplay scissors | set %jkp.lose paper | set %jkp.win rock } if (%jkp.jkpal == 2) { set %jkp.myplay rock | set %jkp.lose scissors | set %jkp.win Paper } if (%jkp.jkpal == 3) { set %jkp.myplay paper | set %jkp.lose rock | set %jkp.win scissors } var %i = 1 while (%i <= %jkp.max) { %jkp.vrij = $addtok(%jkp.vrij,%i,32) | inc %i } .enable #jkpinput .timerjkp1 1 1 mstat *s1 
 ►► Jo Ken Po $& 
 rock, paper ou scissors .timerjkp2 1 3 mstat *s1 
 Win or Lose Points $& 
 Use! <element> to play!! .timerjkp3 1 13 mstat *s1 you have 20 seconds to play .timerjkp4 1 23 mstat *s1 you have 10 seconds to play .timerjkp5 1 28 mstat *s1 you have 15 seconds to play .timerjkp7 1 33 jkpstop } #jkpinput off on *:text:! *:#:{ if (%jkp. [ $+ [ $nick ] ]) mtime $nick you have chose %jkp. [ $+ [ $nick ] ] before ! else { if (!$istok(%jkp.vrij,$2,32)) mtime $nick has been chose $2 . else { %jkp.vrij = $remtok(%jkp.vrij,$2,32) %jkp. [ $+ [ $nick ] ] = $2 mtime $nick you chose $2 ! if ($2 == %jkp.myplay) %jkp.tie = $nick if ($2 == %jkp.lose) %jkp.lose = $nick if ($2 == %jkp.win) %jkp.win = $nick } } else mtime $nick $nick You have to choose. } #jkpinput end alias jkpstop { .disable #jkpinput mstat *s1 end of Jo Ken Poâ–“â–’ 
 %jkp.myplay â–º tie %jkp.lose â–º -50 points %jkp.win â–º 100 Points .timerst_next 1 $sts(delay_wrong) st question if (%jkp.win) { stx_addpoints %jkp.win 100 mtime %jkp.win $stm %jkp.win You get 100 points in Jo Ken Po } if (%jkp.lose) { stx_addpoints %jkp.lose -50 mtime %jkp.perde $stm %jkp.loose you looses 50 points in Jo Ken Po } if (%jkp.tie) { stx_addpoints %jkp.tie 0 mtime %jkp.tie $stm %jkp.tie its a tie with Jo Ken Po } unset %jkp.* } Link to comment Share on other sites More sharing options...
Guest Travis Posted July 26, 2008 Report Share Posted July 26, 2008 on *:text:! *:#:{ See the space between the ! & *? That will only respond to: ! paper ! rock ! scissors Link to comment Share on other sites More sharing options...
wizard1970 Posted July 26, 2008 Author Report Share Posted July 26, 2008 well maybe is something else, i tray but doesn't work Link to comment Share on other sites More sharing options...
wizard1970 Posted July 29, 2008 Author Report Share Posted July 29, 2008 no one can find the error? I do ! paper or !paper and answer is "already chosen" please thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now