• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Cyndy, May, Hero (Conquest), or Wes - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Eventing Question] Wild Shadow Pokemon

Kamkam2005

Infernitaur
  • 61
    Posts
    5
    Years
    How exactly do I start a battle against a wild shadow pokemon, like Lugia?
     
    When you make a fixed event to battle Lugia, instead of writing:
    Code:
    pbWildBattle(:LUGIA, 70)
    you have a make a new Pokémon, make it shadow, and then give it to pbWildBattle. For example:
    Code:
    lugia = pbGenerateWildPokemon(:LUGIA,70)
    lugia.makeShadow
    pbWildBattle(lugia, 70)
     
    thanks. Very new to this.
     
    Now I'm getting this error.

    ---------------------------
    Error
    ---------------------------
    Script '[Interpreter]' line 246: RuntimeError occurred.

    Script error within event 35 (coords 35,16), map 47 (Route 7):

    Exception: NoMethodError

    Message: PokeBattle_Pokemon:893:in `__mf_initialize'undefined method `>' for #<PokeBattle_Pokemon:0x9192540>



    ***Full script:

    lugia = pbGenerateWildPokemon(:LUGIA,70)
    lugia.makeShadow
    pbWildBattle(lugia,70)




    Backtrace:

    Interpreter:197:in `pbExecuteScript'

    Pokemon_Forms:43:in `_ZUD_initialize'

    ZUD_01_Settings_Misc:389:in `initialize'

    PokeBattle_Pokemon:959:in `new'

    PokeBattle_Pokemon:959:in `pbNewPkmn'

    PField_Encounters:415:in `pbGenerateWildPokemon'

    Modular Battler Scene:1438:in `pbWildBattleCore'

    Modular Battler Scene:1433:in `each'

    Modular Battler Scene:1433:in `pbWildBattleCore'

    Visible Overworld Wild Encounters:732:in `pbWildBattle'


    ---------------------------
    OK
    ---------------------------
     
    Oh, it'sbecause I took the wrong function.

    Use this instead:
    Code:
    lugia = pbGenerateWildPokemon(:LUGIA,70)
    lugia.makeShadow
    pbWildBattleCore(lugia)
     
    That seemed to work perfectly. Thanks.
     
    Back
    Top