The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 864 - File: showthread.php PHP 7.3.12 (Linux)
File Line Function
/showthread.php 864 errorHandler->error

Hello There, Guest! Login Register

Stop On level not working

I'm trying to edit the script that comes with the PROShine to learn how to make ones but I hit my first wall.

When I add "StopLevel = 9" to the script in hopes of it to stop leveling it still goes on.

I want the script to level a pokemon before it learns his new move so I thought this would work.

Can someone point me in the right direction of what I am doing wrong?

-- Copyright © 2016 Silv3r <>
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
-- as published by Sam Hocevar. See the LICENSE file for more details.

name = "Leveling: Route 1 (near Viridian)"
author = "Silv3r"
description = [[This script will train the first pokémon of your team.
It will also try to capture shinies by throwing pokéballs.
Start anywhere between Viridian City and Route 1.]]

StopLevel = 9

function onPathAction()
    if isPokemonUsable(1) then
        if getMapName() == "Pokecenter Viridian" then
            moveToMap("Viridian City")
        elseif getMapName() == "Viridian City" then
            moveToMap("Route 1 Stop House")
        elseif getMapName() == "Route 1 Stop House" then
            moveToMap("Route 1")
        elseif getMapName() == "Route 1" then
            moveToRectangle(7, 10, 21, 15)
        if getMapName() == "Route 1" then
            moveToMap("Route 1 Stop House")
        elseif getMapName() == "Route 1 Stop House" then
            moveToMap("Viridian City")
        elseif getMapName() == "Viridian City" then
            moveToMap("Pokecenter Viridian")
        elseif getMapName() == "Pokecenter Viridian" then

function onBattleAction()
    if isWildBattle() and isOpponentShiny() then
        if useItem("Ultra Ball") or useItem("Great Ball") or useItem("Pokeball") then
    if getActivePokemonNumber() == 1 then
        return attack() or sendUsablePokemon() or run() or sendAnyPokemon()
        return run() or attack() or sendUsablePokemon() or sendAnyPokemon()

Messages In This Thread
Stop On level not working - by DarkMagician - 2018-10-27, 13:28:05

Forum Jump:

Browsing: 1 Guest(s)