Scripts & Tutorials This forum is for scripts and code, as well as all kinds of tutorials, software, tools and so forth. Remember to give credit!
The thread revival limit does not apply here.

TrollandToad.com
Reply
 
Thread Tools
  #1    
Old December 3rd, 2013 (2:33 PM). Edited December 5th, 2013 by miniking.
miniking's Avatar
miniking miniking is offline
     
    Join Date: Jul 2013
    Location: São paulo,Brazil
    Gender: Male
    Nature: Adamant
    Posts: 41
    Hi, my first post in Pokecommunity, after moruno add Mega evolution all peoples ask who work this?
    for this persons I give the tutorial complete!

    1- The mega evolutions is only new forms for that pokemon, same arceus after use a plate item

    The code is for add any mega pokemon!

    Original code with coments after each line, in PokemonMultipleForms after line 755

    Original:
    MultipleForms.register(:VENUSAUR,{
    "getMegaForm"=>proc{|pokemon|
    next 1 if isConst?(pokemon.item,PBItems,:VENUSAURITE)
    next
    },

    #Register the Venusaur, and show the item for Mega evolution(pokemon Hold that item)
    "getUnmegaForm"=>proc{|pokemon|
    next 0
    }, #unknow
    "getMegaName"=>proc{|pokemon|
    next _INTL("Mega Venusaur") if pokemon.form==1
    next
    },

    # show the name for mega evolution, used in message transformation!
    "getBaseStats"=>proc{|pokemon|
    next [80,102,123,100,100,120] if pokemon.form==1
    next
    },

    # Switch the base stats original at battle
    "ability"=>proc{|pokemon|
    next getID(PBAbilities,:THICKFAT) if pokemon.form==1
    next
    },

    # Swich the original ability
    "weight"=>proc{|pokemon|
    next 1555 if pokemon.form==1
    next
    },

    # Show the number form used for swich the sprite Mega pokemon
    "onSetForm"=>proc{|pokemon,form|
    pbSeenForm(pokemon)
    }
    })

    # Set that form
    # end code

    For the switch the pokemon type use that code:
    "type2"=>proc{|pokemon|
    next getID(PBTypes,:DRAGON) if pokemon.form==1
    next
    },

    # Call the type (1 or 2) and the new type used

    Use after stats or mega name

    EDIT:
    1- use the debug and active the mega ring or in script ($PokemonGlobal.megaRing=true) use for give Mega ring for more effect to game add a Key item - Mega ring
    2- create a mega item Ex: 526,VENUSAURITE,Venusaurite,1,100,Mega evolution for venusaur!,0,0,0,
    3- give the item to venusaur (or any pokemon with Mega evolution and your respective item)
    ps: Add front and back sprite for the pokemon front ex:003_1 backsprite 003b_1 (003 is number nationaldex)
    go to battle and Enjoy '-'

    Sorry for my bad english, in brazil
    for any error report me '-'
    Thanks for all
    Edit: Add a better traslation
    __________________
    Reply With Quote

    Relevant Advertising!

      #2    
    Old December 3rd, 2013 (6:03 PM).
    AlexTCGPro's Avatar
    AlexTCGPro AlexTCGPro is offline
       
      Join Date: Oct 2013
      Gender: Male
      Nature: Timid
      Posts: 51
      Nice tutorial but it's shouting for a better translation, barely understand it.
      Reply With Quote
        #3    
      Old December 3rd, 2013 (9:37 PM).
      akane159 akane159 is offline
         
        Join Date: Oct 2012
        Gender: Female
        Posts: 72
        I have a error if y use this $PokemonGlobal.megaRing=true in a event

        [SPOILER]Message: (eval):1 : in `pbExecuteScript'undefined method `megaRing=' for #
        Reply With Quote
          #4    
        Old December 4th, 2013 (3:23 AM).
        Maruno's Avatar
        Maruno Maruno is offline
        Lead Dev of Pokémon Essentials
           
          Join Date: Jan 2008
          Location: England
          Posts: 5,189
          Try using the version of Essentials which has Mega Evolution in it.
          __________________
          Go to the Pokémon Essentials Wiki

          | Downloads | Tutorials | Fangames |
          | All Animations Project |

          Follow me on Twitter: @maruno42


          Reply With Quote
            #5    
          Old December 4th, 2013 (4:57 AM). Edited December 4th, 2013 by miniking.
          miniking's Avatar
          miniking miniking is offline
             
            Join Date: Jul 2013
            Location: São paulo,Brazil
            Gender: Male
            Nature: Adamant
            Posts: 41
            [QUOTE=akane159;7969213]I have a error if y use this $PokemonGlobal.megaRing=true in a event

            [SPOILER]Message: (eval):1 : in `pbExecuteScript'undefined method `megaRing=' for #
            __________________
            Reply With Quote
              #6    
            Old December 8th, 2013 (5:41 PM).
            G-Master's Avatar
            G-Master G-Master is offline
            Lead of Pokémon Roll
               
              Join Date: Dec 2013
              Location: AZ
              Gender: Male
              Nature: Docile
              Posts: 57
              Quote:
              Originally Posted by miniking View Post
              "weight"=>proc{|pokemon|
              next 1555 if pokemon.form==1
              next
              },
              # Show the number form used for switch the sprite Mega pokemon
              Wait, isn't this just the weight of the Pokemon in the Pokedex?
              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 5:22 PM.