mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2013
Posts: 2
M
minimii Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
M
Joined: May 2013
Posts: 2
http://pastebin.com/s7fYbxYC

Do ctrl+F and serch for ';Begin Battle Script'
I can't get the moves to work even though all the variables are what they should be. Does anyone know how to fix it so that the attacks work?

Joined: Oct 2012
Posts: 164
D
Vogon poet
Offline
Vogon poet
D
Joined: Oct 2012
Posts: 164
mIRC will only execute one script for each matching event (in each file).

Combine the on text events and use if / elseif to parse the correct code block.

For example
Code:
ON *:TEXT:!VineWhip:#: {
  if ($nick == %PBPlayer1) {
    if (%PBPlayer1Poke == Bulbasaur) {
      ; code ..
    }
    elseif (%PBPlayer1Poke == Ivysaur) {
      ; code ..
    }
    elseif (%PBPlayer1Poke == Venusaur) {
      ; code ..
    }
    ; etc ...
  }

  elseif ($nick == %PBPlayer2) {
    if (%PBPlayer2Poke == Bulbasaur) {
    }
    elseif (%PBPlayer2Poke == Ivysaur) {
      ; code ..
    }
    elseif (%PBPlayer2Poke == Venusaur) {
      ; code ..
    }
    ; etc ...
  }

}


Link Copied to Clipboard