Pokémon Essentials All questions and discussion about Pokémon Essentials, the Pokémon game kit for RPG Maker XP, go in here. Also contains links to the latest downloads and the Essentials Wiki.

TrollandToad.com
Reply
 
Thread Tools
  #1    
Old February 22nd, 2012 (10:47 PM).
tasmania12's Avatar
tasmania12 tasmania12 is offline
Mewtwo Master
     
    Join Date: Mar 2008
    Location: Pallet Town
    Age: 22
    Gender: Male
    Nature: Naughty
    Posts: 52
    Is there a way to event battle a different form of a pokemon?
    I did this:

    pbWildBattle(PBSpecies::GIRATINA,25)
    poke.form=2

    I tested it and it errored:



    [spoiler]
    ---------------------------
    Pokemon Essentials
    ---------------------------
    Exception: RuntimeError

    Message: Script error within event 3, map 5 (Shadow Cave):

    Exception: NameError

    Message: (eval)in `pbExecuteScript'undefined local variable or method `poke' for #
    __________________

    -Groudon-Rayquaza-
    Reuniclus-Ho-oh-
    Reply With Quote

    Relevant Advertising!

      #2    
    Old February 23rd, 2012 (7:11 AM).
    TACHAN TACHAN is offline
       
      Join Date: Jan 2010
      Gender: Female
      Posts: 198
      [QUOTE=tasmania12;7058323] Is there a way to event battle a different form of a pokemon?
      I did this:

      pbWildBattle(PBSpecies::GIRATINA,25)
      poke.form=2

      I tested it and it errored:



      [spoiler]
      ---------------------------
      Pokemon Essentials
      ---------------------------
      Exception: RuntimeError

      Message: Script error within event 3, map 5 (Shadow Cave):

      Exception: NameError

      Message: (eval)in `pbExecuteScript'undefined local variable or method `poke' for #
      Reply With Quote
        #3    
      Old February 23rd, 2012 (8:48 PM).
      tasmania12's Avatar
      tasmania12 tasmania12 is offline
      Mewtwo Master
         
        Join Date: Mar 2008
        Location: Pallet Town
        Age: 22
        Gender: Male
        Nature: Naughty
        Posts: 52
        Quote:
        Originally Posted by TACHAN View Post
        Read here the "Wild Pokemon with equipped item":
        http://www.pokecommunity.com/showthread.php?p=6852512#post6852512
        It adds these lines in an empty script above of the script Main.

        It uses the item "GRISEOUSORB" for Giratina's alternative form and the number of switch that you want, 80 for example. This does that the Pokemon always has this equipped item. Giratina changes form taking this item.
        Can I do it using a variable if I wanted to use it on a pokemon that I want to battle with several forms throughout my game instead of using a switch linked to the item that changes Giratina's form? (If you can follow that... :D)
        __________________

        -Groudon-Rayquaza-
        Reuniclus-Ho-oh-
        Reply With Quote
          #4    
        Old February 24th, 2012 (3:08 AM). Edited February 24th, 2012 by TACHAN.
        TACHAN TACHAN is offline
           
          Join Date: Jan 2010
          Gender: Female
          Posts: 198
          Quote:
          Originally Posted by tasmania12 View Post
          Can I do it using a variable if I wanted to use it on a pokemon that I want to battle with several forms throughout my game instead of using a switch linked to the item that changes Giratina's form? (If you can follow that... :D)
          OK.
          Already I have managed to put a form of a Pokemon without depending on the item.

          In script:
          Quote:
          Events.onWildPokemonCreate+=proc {|sender,e|
          pokemon=e[0]
          if $game_variables[80]=1
          pokemon.form=1
          end
          }

          Events.onWildPokemonCreate+=proc {|sender,e|
          pokemon=e[0]
          if $game_variables[80]=2
          pokemon.form=2
          end
          }

          Events.onWildPokemonCreate+=proc {|sender,e|
          pokemon=e[0]
          if $game_variables[80]=3
          pokemon.form=3
          end
          }

          Events.onWildPokemonCreate+=proc {|sender,e|
          pokemon=e[0]
          if $game_variables[80]=4
          pokemon.form=4
          end
          }

          Events.onWildPokemonCreate+=proc {|sender,e|
          pokemon=e[0]
          if $game_variables[80]=5
          pokemon.form=5
          end
          }
          pokemon.form=1, 2, 3, 4, or 5... It depends on all the forms has the pokemon

          In event:
          Quote:
          Variable: [80] = 1, 2, 3, 4 or 5.
          Script: pbWildBattle(
          :BSpecies::ROTOM,25,1)
          Variable: [80] = 0
          I suppose that it will work, but I have not used it.

          PD: I believe that everything does not work with trainers
          Reply With Quote
            #5    
          Old February 24th, 2012 (9:14 AM).
          tasmania12's Avatar
          tasmania12 tasmania12 is offline
          Mewtwo Master
             
            Join Date: Mar 2008
            Location: Pallet Town
            Age: 22
            Gender: Male
            Nature: Naughty
            Posts: 52
            I tested it and it said:
            Spoiler:
            ---------------------------
            Pokemon Essentials
            ---------------------------
            Script 'Variable Forms' line 40: SyntaxError occurred.
            ---------------------------
            OK
            ---------------------------


            Line 40 is the last line in:

            Events.onWildPokemonCreate+=proc {|sender,e|
            pokemon=e[0]
            if $game_variables[80]=6
            pokemon.form=6
            end
            } <- line 40
            __________________

            -Groudon-Rayquaza-
            Reuniclus-Ho-oh-
            Reply With Quote
              #6    
            Old February 24th, 2012 (10:07 AM).
            TACHAN TACHAN is offline
               
              Join Date: Jan 2010
              Gender: Female
              Posts: 198
              Quote:
              Originally Posted by tasmania12 View Post
              I tested it and it said:
              Spoiler:
              ---------------------------
              Pokemon Essentials
              ---------------------------
              Script 'Variable Forms' line 40: SyntaxError occurred.
              ---------------------------
              OK
              ---------------------------


              Line 40 is the last line in:

              Events.onWildPokemonCreate+=proc {|sender,e|
              pokemon=e[0]
              if $game_variables[80]=6
              pokemon.form=6
              end
              } <- line 40
              The same thing happens to me, and I discovered the error:

              I forgot to put one } in the second form. Now I edit my post.
              Reply With Quote
                #7    
              Old February 24th, 2012 (11:16 AM).
              seeker's Avatar
              seeker seeker is online now
              Electric
              • Platinum Tier
               
              Join Date: Apr 2009
              Location: Ireland
              Posts: 10,829
              tasmania12, in future post a thread for a question, Bugs & Error Reporting is not for questions. So I have moved your posts into a new thread.
              __________________
              she's the greatest adventure I'll ever know
              Reply With Quote
                #8    
              Old February 26th, 2012 (6:04 PM). Edited February 27th, 2012 by tasmania12.
              tasmania12's Avatar
              tasmania12 tasmania12 is offline
              Mewtwo Master
                 
                Join Date: Mar 2008
                Location: Pallet Town
                Age: 22
                Gender: Male
                Nature: Naughty
                Posts: 52
                It still doesn't give me the correct form...

                Quote:
                Originally Posted by Abnegation View Post
                tasmania12, in future post a thread for a question, Bugs & Error Reporting is not for questions. So I have moved your posts into a new thread.
                Sorry about that, I'll keep that in mind.

                --------------------------------------
                BUMP
                __________________

                -Groudon-Rayquaza-
                Reuniclus-Ho-oh-
                Reply With Quote
                Reply

                Quick Reply

                Join the conversation!

                Create an account to post a reply in this thread, participate in other discussions, and more!

                Create a PokéCommunity Account

                Sponsored Links
                Thread Tools

                Posting Rules
                You may not post new threads
                You may not post replies
                You may not post attachments
                You may not edit your posts

                BB code is On
                Smilies are On
                [IMG] code is On
                HTML code is Off

                Forum Jump


                All times are GMT -8. The time now is 2:28 PM.