Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Scripts & Tutorials
Reload this Page [Essentials tutorial] Who Add Mega evolutions only or more Essentials v13

Notices
For all updates, view the main page.

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.



Reply
 
Thread Tools
  #1    
Old December 3rd, 2013 (02: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: 35
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
  #2    
Old December 3rd, 2013 (06:03 PM).
AlexTCGPro's Avatar
AlexTCGPro AlexTCGPro is offline
 
Join Date: Oct 2013
Gender: Male
Nature: Timid
Posts: 50
Nice tutorial but it's shouting for a better translation, barely understand it.
Reply With Quote
  #3    
Old December 3rd, 2013 (09:37 PM).
akane159 akane159 is offline
 
Join Date: Oct 2012
Gender: Female
Posts: 25
I have a error if y use this $PokemonGlobal.megaRing=true in a event

Spoiler:
Message: (eval):1 : in `pbExecuteScript'undefined method `megaRing=' for #<PokemonGlobalMetadata:0x4352658>
***Full script:
$PokemonGlobal.megaRing=true

Interpreter:243:in `pbExecuteScript'
Interpreter:1599:in `eval'
Interpreter:243:in `pbExecuteScript'
Interpreter:1599:in `command_355'
Interpreter:494:in `execute_command'
Interpreter:193:in `update'
Interpreter:106:in `loop'
Interpreter:198:in `update'
Scene_Map:103:in `clock_update'
Scene_Map:101:in `loop'

and if i use this in the switches nothing happen
Reply With Quote
  #4    
Old December 4th, 2013 (03:23 AM).
Maruno's Avatar
Maruno Maruno is offline
Lead Dev of Pokémon Essentials
Moderator
 
Join Date: Jan 2008
Location: England
Posts: 4,058
Try using the version of Essentials which has Mega Evolution in it.
__________________
Reply With Quote
  #5    
Old December 4th, 2013 (04: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: 35
Quote originally posted by akane159:
I have a error if y use this $PokemonGlobal.megaRing=true in a event

Spoiler:
Message: (eval):1 : in `pbExecuteScript'undefined method `megaRing=' for #<PokemonGlobalMetadata:0x4352658>
***Full script:
$PokemonGlobal.megaRing=true

Interpreter:243:in `pbExecuteScript'
Interpreter:1599:in `eval'
Interpreter:243:in `pbExecuteScript'
Interpreter:1599:in `command_355'
Interpreter:494:in `execute_command'
Interpreter:193:in `update'
Interpreter:106:in `loop'
Interpreter:198:in `update'
Scene_Map:103:in `clock_update'
Scene_Map:101:in `loop'

and if i use this in the switches nothing happen
update you Pokemon essentials in wiki
pokemonessentials.wikia.com/wiki/Downloads

this tuto is only for v13 for add news mega evolutions
in v13 only exist mega evol for charizard,blastoise and venusaur

use it to add Megas: Kangaskan,Gengar,Aggron,alakasan,Gyrados and many posible in original game X/Y or for Fakes Mega evolutions

Quote originally posted by AlexTCGPro:
Nice tutorial but it's shouting for a better translation, barely understand it.
update better traslaion '-' now
__________________
Reply With Quote
  #6    
Old December 8th, 2013 (05:41 PM).
GReusch GReusch is offline
Lead of Pokemon Frontiers
 
Join Date: Dec 2013
Location: AZ
Gender: Male
Nature: Docile
Posts: 30
Quote originally posted by miniking:
"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

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 UTC -8. The time now is 02:32 AM.