Hi
This is my first snippet. It's simple but does what you need it to.
if it rolls once or twice you escape
[~Lord-Harlot] !pokemon
3 times and your caught
[~Lord-Harlot] !pokemon
Then if your already caught
[~Lord-Harlot] !pokemon
(~bot-of-zana) Oh no, Lord-Harlot is already caught.
Its simple but does what it needs to.
TO USE:
copy and paste this code into remotes.
When someone type "!pokemon" the script is activated.
To recatch a nick go into the variables and delete
"%Lord-Harlot.pokenick" The nick will be what ever the nick you want deleting is.
Hope this explains it.
on *:text:!Pokemon:#: {
if ((% [ $+ [ $nick ] $+ [ .pokenick ] ] == caught)) {
.msg $chan Oh no, $nick is already caught.
.halt
}
elseif ((% [ $+ [ $nick ] $+ [ .pokenick ] ] == $null)) {
set %pokeballroll $rand(1,3)
if (%pokeballroll == 1) {
.describe $chan sees a wild $nick | describe $chan Throws a Pokeball at the $nick | describe $chan sees the ball roll %pokeballroll time | .msg $chan $nick got away
}
elseif (%pokeballroll == 2) {
.describe $chan sees a wild $nick | describe $chan Throws a Pokeball at the $nick | describe $chan sees the ball roll %pokeballroll times | .msg $chan $nick got away
}
else {
.describe $chan sees a wild $nick | .describe $chan Throws a Pokeball at the $nick | .describe $chan sees the ball roll %pokeballroll times | .msg $chan I got a new $nick | set % $+ $nick $+ .pokenick caught
}
}
}
the way you have it now can be done like this as well
on *:text:!Pokemon:#: {
if ($($+(%,$nick,.,pokenick),2) == caught) { msg $chan Oh no, $nick is already caught. }
else { var %pokeballroll $r(1,3) | describe $chan sees a wild $nick | describe $chan Throws a Pokeball at the $nick | describe $chan sees the ball roll %pokeballroll time $+ $iif(%pokeballroll > 1,\'s) | msg $chan $iif(%pokeballroll != 3,$nick got away,I got a new $nick) | $iif(%pokeballroll == 3,set -u600 $+(%,$nick,.,pokenick) caught) }
}
eh just one of many ways it can be done..
NOTE for dumbish people who wonder why it isn\'t working.
To use just load it into remote and type !pokemon
If this is on your mirc client you cant use it yourself but other people can.
Umm ok how about explaining it like that in the first place instead of assuming people are dumb Lol. and if it doesnt work in th first place it your fault an if they don\'t know how to work it its also your fault if your responsiblity to describe how to use the code you post.Anywho i ll test it later just hought i d throw my 2 cents in about that is all.Altho doesn\'t look to bad.`-.-
um nice for ur first script but how about making the var unset after 10 min\'s or so . that way you dont have to open up the scripts editer to remove the var. also you should make the random var a local var instead of a global one, and you can make it alot shorter as well..
but nice go at ur first script