2017-09-24, 14:44:26
Easy counters
This allows you to :
- See how many shinies you've caught
- See how many pokemons you've caught
- See how many wild battles you been in
So all you have to do is put this as a footer in the top of your script and change P1 and P2 with the pokemons you are hunting
Make sure you type the name correctly if you won't the counters wouldn't work
Also, If you are using Notepad++ then if you click Ctrl+F there's an option to replace all at once
function onStart()
shinyCounter = 0
pkmn2Counter = 0 -- Replace all P2's with your pokemon name
pkmn1Counter = 0 -- Replace all P1's with your pokemon name
wildCounter = 0
end
function onPause()
log("***********************************PAUSED - SESSION STATS***********************************")
log("Shinies Caught: " .. shinyCounter)
log("P2 Caught: " .. pkmn2Counter)
log("P1 Caught: " .. pkmn1Counter)
log("Pokemons encountered: " .. wildCounter)
log("*********************************************************************************************")
end
function onBattleMessage(wild)
if stringContains(wild, "A Wild SHINY") then
shinyCounter = shinyCounter + 1
wildCounter = wildCounter + 1
log("Info | Shineys encountered: " .. shinyCounter)
log("Info | Pokemon encountered: " .. wildCounter)
elseif stringContains(wild, "A Wild [FF9900]P2[-] Attacks!") then
pkmn2Counter = pkmn2Counter + 1
log("Info | P2 Caught: " .. pkmn2Counter)
log("Info | Shineys encountered: " .. shinyCounter)
log("Info | Pokemon encountered: " .. wildCounter)
elseif stringContains(wild, "A Wild [FF9900]P1[-] Attacks!") then
pkmn1Counter = pkmn1Counter + 1
log("Info | P1 Caught: " .. pkmn1Counter)
log("Info | Shineys encountered: " .. shinyCounter)
log("Info | Pokemon encountered: " .. wildCounter)
elseif stringContains(wild, "A Wild") then
wildCounter = wildCounter + 1
log("Info | Pokemon encountered: " .. wildCounter)
log("Info | Shineys encountered: " .. shinyCounter)
log("Info | P1 Caught: " .. pkmn1Counter)
log("Info | P2 Caught: " .. pkmn2Counter)
end
end