I have made this script that uses the goto command. The thing is that I don't think I scripted it properly because it isn't working. I've only worked on the first one so far.

Code:
on *:TEXT:+use * *:#:{
if ($2 == Potion) {
  if  ($readini( $nick $+ .ini,Items,Potion ) >= 1 ) {
if ($3 == ($readini($nick $+ .ini,Pokemon $readini($nick $+ .ini,Pokemon1)))) goto one
elseif ($3 == ($readini($nick $+ .ini,Pokemon2) $readini($nick $+ .ini,Pokemon2)) goto two
elseif ($3 == ($readini($nick $+ .ini,Pokemon3) $readini($nick $+ .ini,Pokemon3)) goto three
elseif ($3 == ($readini($nick $+ .ini,Pokemon4) $readini($nick $+ .ini,Pokemon4)) goto four
elseif ($3 == ($readini($nick $+ .ini,Pokemon5) $readini($nick $+ .ini,Pokemon5)) goto five
elseif ($3 == ($readini($nick $+ .ini,Pokemon6) $readini($nick $+ .ini,Pokemon6)) goto six
:one
/set %pokemon1 $readini($nick $+ .ini,Pokemon,Pokemon1)
    /writeini $nick $+ .ini %pokemon1 hp $calc( $readini($nick $+ .ini,Stats,hp) + 20 )
    /writeini $nick $+ .ini Stats Potion $calc( $readini( $nick $+ .ini,Stats,Potion ) - 1  )   
    .notice $nick 20 HP has been healed to your Pokemon.
/unset %pokemon1
  }
  else { notice $nick You Have No Potions Left | halt }
}
}


When I type in "+use Potion Pikachu" the notice message is suppose to appear, but it doesn't. By the way, I've only coded the first goto command for a test to see if it works or not. And if needed, I can post the .ini file that contains the information.
Thanks.