The PokéCommunity Forums Fan Games Game Development Scripts & Tutorials
Essentials Script Size Method for Pokémon [Gen 3/4]

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 2 Weeks Ago (4:05 PM). Edited 2 Weeks Ago by Vendily.
Vendily's Avatar
Vendily Vendily is offline
     
    Join Date: Aug 2015
    Gender: Female
    Nature: Calm
    Posts: 757
    So Essentials already has a method that calculates for size, def pbSize(pokemon) and you just call it from anywhere with a pokemon instance.

    You do not need this resource to calculate Size.

    So in Gens 3 and 4, there are NPCs who ask to see the biggest Pokémon of a certain species. This is calculated based on the personal ID and IVs. I won't explain the entire formula because Bulbapedia has already done that.

    Script: https://pastebin.com/raw/5HuySwRf

    So just paste this script in your class PokeBattle_Pokemon and call it on a Pokémon instance. It returns the result in millimeters. Interpret the result however you like.
    __________________
    Resources for ROM hackers has moved.

    Reply With Quote

    Relevant Advertising!

    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 10:51 AM.