Help a newbie in modding

Discussion in 'Database Modifications' started by Bitz54, May 13, 2015.

  1. Bitz54

    Bitz54 The Noob :P

    Joined:
    Apr 29, 2015
    Messages:
    10
    Likes Received:
    0
    PO Trainer Name:
    Twitch
    Hi there.. :) I'm Bitz54 A.K.A Twitch on PO.. I heard what i can possibly do with modding in PO.. so i want to start my project of adding new mega evolutions.. i would appreciate if somebody can help me out on that.. if there's a tutorial on that.. please add a link below.. thank you :)
     
  2. MidwayMarshall

    MidwayMarshall woof Forum Moderator Developer Forum Moderator Developer

    Joined:
    Jun 13, 2014
    Messages:
    303
    Likes Received:
    170
    Have you read and understood this? http://pokemon-online.eu/threads/po-mod-creation-guide-wip.14420/

    Since it doesn't include mega I will give example of how I think you add a new mega to ORAS (let's say mega krookodile):

    db\pokes\pokemons.txt
    change "553:0 Krookodile" -> "553:0:H Krookodile" and add "553:1:M Mega Krookodile" below it

    db\pokes\height.txt && weight.txt just add "553:1 X" below "553:0 Y" where X is whatever you want height and weight to be.

    db\pokes\6G\Subgen 1\released.txt do the same as from pokemons.txt

    db\pokes\6G\ability1.txt add "553:1 X" below 553:0 where X is the ability number you want Mega Krookodile to have.

    now for an item to use
    db\items.txt add a new entry at the bottom so like "2048 Krookite"

    db\items_useful.txt add "2048 1" at the bottom

    db\items\6G\released_items.txt add "2048" at the bottom

    db\items\6G\item_effects.txt add "2048 66-553:1" at the bottom

    Edit: forgot to put in but stats.txt, type1.txt and type2.txt need to add 553:1's info
     
    Last edited: May 14, 2015
  3. Bitz54

    Bitz54 The Noob :P

    Joined:
    Apr 29, 2015
    Messages:
    10
    Likes Received:
    0
    PO Trainer Name:
    Twitch
    thanks for the info.. :) one more thing.. how can i make a new ability..?
     
  4. MidwayMarshall

    MidwayMarshall woof Forum Moderator Developer Forum Moderator Developer

    Joined:
    Jun 13, 2014
    Messages:
    303
    Likes Received:
    170
    It all depends. There are a few abilities that accept arguments for the database entry, I don't know them all. You might have to change the abilities server source code.

    Examples of database edits:
    "7-X" Powers up X-type moves when the Pokémon is in trouble.
    "25-X" Boosts the X stat if the Pokémon has a status condition.
    "30-X" Prevents other Pokémon from lowering its X stat.

    18-2 would make a 30% chance to sleep opponent from opposing contact ability
     
  5. Bitz54

    Bitz54 The Noob :P

    Joined:
    Apr 29, 2015
    Messages:
    10
    Likes Received:
    0
    PO Trainer Name:
    Twitch
    Let's just say i want to make a ability like intimidate.. but it should lower speed instead of attack.. so.. any idea if and how'll that work..?
     
  6. MidwayMarshall

    MidwayMarshall woof Forum Moderator Developer Forum Moderator Developer

    Joined:
    Jun 13, 2014
    Messages:
    303
    Likes Received:
    170
    You would have to make a custom server that accepts an input for "34". It only works on attack normally
    Code (C++):
    1. struct AMIntimidate : public AM {
    2.     AMIntimidate() {
    3.         functions["UponSetup"] = &us;
    4.     }
    5.  
    6.     static void us(int s, int , BS &b) {
    7.         QList<int> tars = b.revs(s);
    8.  
    9.         foreach(int t, tars) {
    10.             if (!b.areAdjacent(s, t)) {
    11.                 continue;
    12.             }
    13.             if (b.hasSubstitute(t) || (b.gen().num == 4 && turn(b, t)["HadSubstitute"] == true)) {
    14.                 b.sendAbMessage(34,1,s,t);
    15.             } else {
    16.                 b.sendAbMessage(34,0,s,t);
    17.                 b.inflictStatMod(t,Attack,-1,s);
    18.             }
    19.         }
    20.     }
    21. };
     
  7. Bitz54

    Bitz54 The Noob :P

    Joined:
    Apr 29, 2015
    Messages:
    10
    Likes Received:
    0
    PO Trainer Name:
    Twitch
    Anyways.. thansks a lot.. ^_^