• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Scripting Question] Shields down???

#Not Important

All hail the wishmaker
910
Posts
4
Years
  • help.
    I want to add shields down to my game and I used mybuisness' script. So after fixing some stuff I tried it aaaaand. Nope. It didn't change form. So could one of you guys give me ur code?
    Thx in advance
     

    WolfPP

    Spriter/ Pixel Artist
    1,309
    Posts
    5
    Years
  • What?
    I use it to put into the rand:

    Code:
    MultipleForms.register(:MINIOR,{
    "getFormOnCreation"=>proc{|pokemon|
       next 1+rand(7)
    }
    })

    Also, when wild battle, always it will be form 0:
    Code:
      if isConst?(genwildpoke.species,PBSpecies,:MINIOR); genwildpoke.form=0; end

    IDK what you want to do then, TBH. o.o
     

    #Not Important

    All hail the wishmaker
    910
    Posts
    4
    Years
  • Maybe I'm not understanding how it works.
    How I think it works:
    Spoiler:
     

    WolfPP

    Spriter/ Pixel Artist
    1,309
    Posts
    5
    Years
  • Wild encounter always will be Meteor Form:
    1min20sec
    https://youtu.be/yhM05WI-fes

    Breeding case always will be the same form than mother/father (with Ditto):
    1min42sec
    https://youtu.be/3h5vP32YfTc


    About breeding code, I made a little edition in Day_Care script:
    Code:
      # Inheriting form
      if isConst?(babyspecies,PBSpecies,:BURMY) ||
         isConst?(babyspecies,PBSpecies,:SHELLOS) ||
         isConst?(babyspecies,PBSpecies,:BASCULIN) ||
         isConst?(babyspecies,PBSpecies,:FLABEBE) ||
         isConst?(babyspecies,PBSpecies,:PUMPKABOO) ||
         isConst?(babyspecies,PBSpecies,:ORICORIO) ||
         isConst?(babyspecies,PBSpecies,:MINIOR)
        egg.form=mother.form
        egg.form=father.form if pbIsDitto?(mother)
      end 
      # Inheriting Moves

    I will edit the main thread.
     
    Last edited:

    WolfPP

    Spriter/ Pixel Artist
    1,309
    Posts
    5
    Years
  • It's ok. So, follow the instrutions. o.o
    I added the change form thing there (@starform etc) and I used what mybusiness did about won't take burn, sleep, etc. Just read what I posted.
     

    WolfPP

    Spriter/ Pixel Artist
    1,309
    Posts
    5
    Years
  • Only you had this problem. So, double check what/how you added by comparing with I posted.
     
    Back
    Top