Jump to content

howwedewend24

Members
  • Posts

    8
  • Joined

  • Last visited

 Content Type 

Profiles

Forums

Events

Reborn Development Blog

Rejuvenation Development Blog

Starlight Divide Devblog

Desolation Dev Blog

Posts posted by howwedewend24

  1. On 4/4/2023 at 10:35 PM, Dred said:

    Illegal abilities would also have to be done by directly editing the specific pokemons data in the PBS files, or as you mentioned, via a different form. 

     

    Isn't it possible to do a simple edit to the compiler to allow any ability to be set in trainers.txt and not just abilityindex? Just like in the newer versions of Essentials

     

    For example in prankster Smeargle it would sit here...

    ---------------------

    SMEARGLE,100,FOCUSSASH,BATONPASS,STICKYWEB,SHIFTGEAR,SPORE,0(This is the abilityindex. It could be coded to accept a string such as "PRANKSTER"),M,1,false,JOLLY,31,70,Bastian,false,,,252,252,252,252,252,252

    ---------------------

     

    This is the relevant bit in Compiler.rb

     

    if !poke[TPABILITY] || poke[TPABILITY]==""
            poke[TPABILITY]=TPDEFAULTS[TPABILITY]
          else
            poke[TPABILITY]=poke[TPABILITY].to_i
            raise _INTL("Bad abilityflag: {1} (must be 0 or 1 or 2-5)\n{2}",poke[TPABILITY],FileLineData.linereport) if poke[TPABILITY]<0 || poke[TPABILITY]>5
          end

     

    As it's seen, only native to species (normal&hidden) abilities are accepted. What do I edit to make it accept any ability?

     

    edit: So I created a def parseAbility and sloppily changed the code above to:

     

    iAblt=poke[TPABILITY].to_i
          if !poke[TPABILITY] || poke[TPABILITY]==""
            poke[TPABILITY]=TPDEFAULTS[TPABILITY]	  
          elsif iAblt<0 || iAblt>5 
            poke[TPABILITY]=parseAbility(poke[TPABILITY])
    	  else
            poke[TPABILITY]=poke[TPABILITY].to_i
            raise _INTL("Bad abilityflag: {1} (must be 0 or 1 or 2-5)\n{2}",poke[TPABILITY],FileLineData.linereport) if poke[TPABILITY]<0 || poke[TPABILITY]>5
          end

     

    It's not working so far

     

    edit2: Of course it isn't, all I did was clean up the text if the variable isn't between 0 and 5. I achieved nothing. Why does it ignore characters instead of trying to match them with what's in PBAbilities just like the other fields?

  2. On 4/9/2023 at 11:16 PM, Charon said:

    Hm, weird. I'm assuming you used Debug mode to compile all the data after making your changes? The changes won't actually take effect until you do.

     

    I do know that PBS sometimes comes with older files that aren't used in the current version. I guess check that the PBS and Script (.rb files) names line up to make sure you're editing the right PBS file. And if you really need to, you can make a backup of the actual .rb Script files (because never alter the original without an unaltered backup) and alter the originals directly (you should be able to open them in a plain text program). You'd still have to compile data using Debug mode, but as long as it all went through succesfully it should definitely work.

     

    I got it working on the same day, that's the proceedure but I made a mistake with the pbs files. Still this isn't really useful for me, I need the pokemon to have any ability and the override being independent of modded files. I don't understand why they would make abilities be so strict behind the scenes, should be as simple as changing an index from a list.

  3. On 4/1/2023 at 11:03 PM, Dred said:

    If you're referring to 252 x 6 EVs, there is a password called FullEVs
    If you're referring to a single EV stat being above the cap of 255, which is only on a very select few of postgame fights, and developer battles, it can only be done by editing the scripts and changing the EV caps. Devs can do it because there are no caps for NPC EVs. Debug is not built to be a cheating tool, it's built for development of the game, hence why there are no options to do op EVs. 

     

    Alright. I am most curious about illegal abilities however, I can see that dev trainer Smeargletail has a Smeargle with Prankster.

    The text in trainers.txt looks like:

    SMEARGLE,100,FOCUSSASH,BATONPASS,STICKYWEB,SHIFTGEAR,SPORE,0,M,1,false,JOLLY,31,70,Bastian,false,,,252,252,252,252,252,252

    I don't see anything relevant here, how did they manage that?

     

    edit: Nevermind, they achieved it through creating a new form (=1) for the pokemon. Seems like there's no direct way then.

  4. So it's like that. Seems pretty arbitrary that you can change moves outside the movelist with debug but not abilities. Thanks for the info.

     

    EDIT: Maybe it's the wrong script but I edited montext.rb, pokemon.txt (pbs), gen8pokemon.txt (pbs), and the ability still isn't available to be selected with debug

×
×
  • Create New...