The PokéCommunity Forums Fan Games Game Development Scripts & Tutorials
Essentials Script Silvally´s Ability; RKS System V2

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 October 16th, 2016 (3:54 PM). Edited October 24th, 2016 by Diegotoon.
Diegotoon's Avatar
Diegotoon Diegotoon is offline
     
    Join Date: Feb 2015
    Gender: Male
    Posts: 13
    RKS System (Essentials 15+)
    Hello, this is my fiirs script ok XP.
    Well, only follow the instructions



    First:
    In Pokemon_MultipleForms, in the line 619, copy the next script:
    Spoiler:


    MultipleForms.register(:SILVALLY,{
    "type1"=>proc{|pokemon|
    types=[:NORMAL,:FIGHTING,:FLYING,:POISON,:GROUND,
    :ROCK,:BUG,:GHOST,:STEEL,:QMARKS,
    :FIRE,:WATER,:GRASS,:ELECTRIC,:PSYCHIC,
    :ICE,:DRAGON,:DARK,:FAIRY]
    next getID(PBTypes,types[pokemon.form])
    },
    "type2"=>proc{|pokemon|
    types=[:NORMAL,:FIGHTING,:FLYING,:POISON,:GROUND,
    :ROCK,:BUG,:GHOST,:STEEL,:QMARKS,
    :FIRE,:WATER,:GRASS,:ELECTRIC,:PSYCHIC,
    :ICE,:DRAGON,:DARK,:FAIRY]
    next getID(PBTypes,types[pokemon.form])
    },
    "getForm"=>proc{|pokemon|
    next 1 if isConst?(pokemon.item,PBItems,:FISTDISK)
    next 2 if isConst?(pokemon.item,PBItems,:SKYDISK)
    next 3 if isConst?(pokemon.item,PBItems,:TOXICDISK)
    next 4 if isConst?(pokemon.item,PBItems,:EARTHDISK)
    next 5 if isConst?(pokemon.item,PBItems,:STONEDISK)
    next 6 if isConst?(pokemon.item,PBItems,:INSECTDISK)
    next 7 if isConst?(pokemon.item,PBItems,:SPOOKYDISK)
    next 8 if isConst?(pokemon.item,PBItems,:IRONDISK)
    next 10 if isConst?(pokemon.item,PBItems,:FLAMEDISK)
    next 11 if isConst?(pokemon.item,PBItems,:SPLASHDISK)
    next 12 if isConst?(pokemon.item,PBItems,:MEADOWDISK)
    next 13 if isConst?(pokemon.item,PBItems,:ZAPDISK)
    next 14 if isConst?(pokemon.item,PBItems,:MINDDISK)
    next 15 if isConst?(pokemon.item,PBItems,:ICICLEDISK)
    next 16 if isConst?(pokemon.item,PBItems,:DRACODISK)
    next 17 if isConst?(pokemon.item,PBItems,:DREADDISK)
    next 18 if isConst?(pokemon.item,PBItems,:PIXIEDISK)
    next 0
    },
    "onSetForm"=>proc{|pokemon,form|
    pbSeenForm(pokemon)
    }
    })



    Next
    In PokeBattle_Battler, in the line 757, copy the next script:
    Spoiler:

    # Silvally
    if isConst?(self.ability,PBAbilities,:RKSSYSTEM) &&
    isConst?(self.species,PBSpecies,:SILVALLY) && !self.isFainted?
    if [email protected]
    [email protected]
    transformed=true
    end
    end


    Next (Edited)
    In PokeBattle_MoveEffects, copy the next script:
    Spoiler:

    ################################################################################
    # Multi-Attack
    ################################################################################
    class PokeBattle_Move_199 < PokeBattle_Move
    def pbType(type,attacker,opponent)
    if isConst?(@id,PBMoves,:MULTIATTACK)
    return getConst(PBTypes,:FIGHTING) if attacker.hasWorkingItem(:FISTDISK)
    return getConst(PBTypes,:FLYING) if attacker.hasWorkingItem(:SKYDISK)
    return getConst(PBTypes,:POISON) if attacker.hasWorkingItem(:TOXICDISK)
    return getConst(PBTypes,:GROUND) if attacker.hasWorkingItem(:EARTHDISK)
    return getConst(PBTypes,:ROCK) if attacker.hasWorkingItem(:STONEDISK)
    return getConst(PBTypes,:BUG) if attacker.hasWorkingItem(:INSECTDISK)
    return getConst(PBTypes,:GHOST) if attacker.hasWorkingItem(:SPOOKYDISK)
    return getConst(PBTypes,:STEEL) if attacker.hasWorkingItem(:IRONDISK)
    return getConst(PBTypes,:FIRE) if attacker.hasWorkingItem(:FLAMEDISK)
    return getConst(PBTypes,:WATER) if attacker.hasWorkingItem(:SPLASHDISK)
    return getConst(PBTypes,:GRASS) if attacker.hasWorkingItem(:MEADOWDISK)
    return getConst(PBTypes,:ELECTRIC) if attacker.hasWorkingItem(:ZAPDISK)
    return getConst(PBTypes,:PSYCHIC) if attacker.hasWorkingItem(:MINDDISK)
    return getConst(PBTypes,:ICE) if attacker.hasWorkingItem(:ICICLEDISK)
    return getConst(PBTypes,:DRAGON) if attacker.hasWorkingItem(:DRACODISK)
    return getConst(PBTypes,:DARK) if attacker.hasWorkingItem(:DREADDISK)
    elsif isConst?(@id,PBMoves,:TECHNOBLAS)
    return getConst(PBTypes,:ELECTRIC) if attacker.hasWorkingItem(:SHOCKDRIVE)
    return getConst(PBTypes,:FIRE) if attacker.hasWorkingItem(:BURNDRIVE)
    return getConst(PBTypes,:ICE) if attacker.hasWorkingItem(:CHILLDRIVE)
    return getConst(PBTypes,:WATER) if attacker.hasWorkingItem(:DOUSEDRIVE)
    end
    return getConst(PBTypes,:NORMAL)
    end
    end



    Next:
    In PBS Folder:

    In items file add:
    Spoiler:

    605,FLAMEDISK,Flame Disk,1,1000,An item to be held by a Pok mon. It is a stone tablet that boosts the power of Fire-type moves.,0,0,0,
    606,SPLASHDISK,Splash Disk,1,1000,An item to be held by a Pok mon. It is a stone tablet that boosts the power of Water-type moves.,0,0,0,
    607,ZAPDISK,Zap Disk,1,1000,An item to be held by a Pok mon. It is a stone tablet that boosts the power of Electric-type moves.,0,0,0,
    608,MEADOWDISK,Meadow Disk,1,1000,An item to be held by a Pok mon. It is a stone tablet that boosts the power of Grass-type moves.,0,0,0,
    609,ICICLEDISK,Icicle Disk,1,1000,An item to be held by a Pok mon. It is a stone tablet that boosts the power of Ice-type moves.,0,0,0,
    610,FISTDISK,Fist Disk,1,1000,An item to be held by a Pok mon. It is a stone tablet that boosts the power of Fighting-type moves.,0,0,0,
    611,TOXICDISK,Toxic Disk,1,1000,An item to be held by a Pok mon. It is a stone tablet that boosts the power of Poison-type moves.,0,0,0,
    612,EARTHDISK,Earth Disk,1,1000,An item to be held by a Pok mon. It is a stone tablet that boosts the power of Ground-type moves.,0,0,0,
    613,SKYDISK,Sky Disk,1,1000,An item to be held by a Pok mon. It is a stone tablet that boosts the power of Flying-type moves.,0,0,0,
    614,MINDDISK,Mind Disk,1,1000,An item to be held by a Pok mon. It is a stone tablet that boosts the power of Psychic-type moves.,0,0,0,
    615,INSECTDISK,Insect Disk,1,1000,An item to be held by a Pok mon. It is a stone tablet that boosts the power of Bug-type moves.,0,0,0,
    616,STONEDISK,Stone Disk,1,1000,An item to be held by a Pok mon. It is a stone tablet that boosts the power of Rock-type moves.,0,0,0,
    617,SPOOKYDISK,Spooky Disk,1,1000,An item to be held by a Pok mon. It is a stone tablet that boosts the power of Ghost-type moves.,0,0,0,
    618,DRACODISK,Draco Disk,1,1000,An item to be held by a Pok mon. It is a stone tablet that boosts the power of Dragon-type moves.,0,0,0,
    619,DREADDISK,Dread Disk,1,1000,An item to be held by a Pok mon. It is a stone tablet that boosts the power of Dark-type moves.,0,0,0,
    620,IRONDISK,Iron Disk,1,1000,An item to be held by a Pok mon. It is a stone tablet that boosts the power of Steel-type moves.,0,0,0,
    621,PIXIEDISK,Pixie Disk,1,1000,An item to be held by a Pok mon. It is a stone tablet that boosts the power of Fairy-type moves.,0,0,0,


    In pokemon file add:
    Spoiler:

    [722]
    Name=Silvally
    InternalName=SILVALLY
    Type1=NORMAL
    BaseStats=120,120,120,120,120,120
    GenderRate=Genderless
    GrowthRate=Slow
    BaseEXP=324
    EffortPoints=3,0,0,0,0,0
    Rareness=3
    Happiness=0
    Abilities=RKSSYSTEM
    Moves=1,SEISMICTOSS,1,COSMICPOWER,1,NATURALGIFT,1,PUNISHMENT,10,GRAVITY,20,EARTHPOWER,30,HYPERVOICE,40,EXTREMESPEED,50,REFRESH,60,FUTURESIGHT,70,RECOVER,80,HYPERBEAM,90,PERISHSONG,100,MULTIATTACK
    Compatibility=Undiscovered
    StepsToHatch=30855
    Height=7.07
    Weight=221.6
    Color=Gray
    RegionalNumbers=0,722
    Kind=Synthetic
    Pokedex=When TypeNull gains a partner it can trust, it deliberately destroys the restraining device it wears. Freed of the restraining effects of its mask, Silvally’s senses are heightened, and it reverts to its natural temperament.
    BattlerPlayerY=17
    BattlerEnemyY=17
    BattlerAltitude=0
    BattlerX=0
    BattlerPlayerX=0
    Evolutions=


    In moves (Edited)
    Spoiler:

    623,MULTIATTACK,MultiAttack,199,120,NORMAL,Physical,85,10,0,00,0,abef,"Its type varies with the kind of Disk the user is holding."


    Resources
    By leparagon (http://www.leparagon.deviantart.com)
    http://www.leparagon.deviantart.com/art/Silvally-sprite-check-description-for-types-640396495

    Icons
    https://drive.google.com/open?id=0B-sDOig6tz4IQlRnMlJrZ1g5NXc
    Reply With Quote
      #2    
    Old October 19th, 2016 (3:43 AM).
    Mega Infernape907's Avatar
    Mega Infernape907 Mega Infernape907 is offline
       
      Join Date: Oct 2016
      Posts: 14
      Wow! you're very good at this. Can you do the same thing but with Solgaleo and Lunala please?
      Reply With Quote
        #3    
      Old October 20th, 2016 (2:52 PM).
      Diegotoon's Avatar
      Diegotoon Diegotoon is offline
         
        Join Date: Feb 2015
        Gender: Male
        Posts: 13
        yes :)
        Reply With Quote
          #4    
        Old September 9th, 2018 (10:06 AM).
        WolfPP's Avatar
        WolfPP WolfPP is online now
           
          Join Date: Aug 2018
          Location: Brazil
          Gender: Male
          Nature: Jolly
          Posts: 124
          Sorry to ress!

          I tried to post here (https://www.pokecommunity.com/showthread.php?t=387706&page=6) but as been closed.

          So, i follow the tutorial. All is ok, except that:
          My Silvally when holds the something (bellow) hes gets another types in Summary Screen:
          Water - In Summary Screen shows Grass type;
          The same with:
          Fire into Water
          Electric - Psychic
          Psychic - Ice
          Ice - Dragon
          Dark - Fairy
          Fairy - Normal
          Grass - Electric

          The item sprite and sprite of pokemon screens are correcty, only types doenst.

          How can i fix that? And what you means about "QMARKS" in 'Pokemon_MultipleForms'?

          Thank you!
          Reply With Quote
            #5    
          Old 4 Weeks Ago (6:46 PM). Edited 4 Weeks Ago by Diegotoon.
          Diegotoon's Avatar
          Diegotoon Diegotoon is offline
             
            Join Date: Feb 2015
            Gender: Male
            Posts: 13
            Hi WolfPP, check you type.txt in PBS folder
            this is my type.txt:
            [0]
            Name=Normal
            InternalName=NORMAL
            Weaknesses=FIGHTING
            Immunities=GHOST

            [1]
            Name=Fighting
            InternalName=FIGHTING
            Weaknesses=FLYING,PSYCHIC,FAIRY
            Resistances=ROCK,BUG,DARK

            [2]
            Name=Flying
            InternalName=FLYING
            Weaknesses=ROCK,ELECTRIC,ICE
            Resistances=FIGHTING,BUG,GRASS
            Immunities=GROUND

            [3]
            Name=Poison
            InternalName=POISON
            Weaknesses=GROUND,PSYCHIC
            Resistances=FIGHTING,POISON,BUG,GRASS,FAIRY

            [4]
            Name=Ground
            InternalName=GROUND
            Weaknesses=WATER,GRASS,ICE
            Resistances=POISON,ROCK
            Immunities=ELECTRIC

            [5]
            Name=Rock
            InternalName=ROCK
            Weaknesses=FIGHTING,GROUND,STEEL,WATER,GRASS
            Resistances=NORMAL,FLYING,POISON,FIRE

            [6]
            Name=Bug
            InternalName=BUG
            Weaknesses=FLYING,ROCK,FIRE
            Resistances=FIGHTING,GROUND,GRASS

            [7]
            Name=Ghost
            InternalName=GHOST
            Weaknesses=GHOST,DARK
            Resistances=POISON,BUG
            Immunities=NORMAL,FIGHTING

            [8]
            Name=Steel
            InternalName=STEEL
            Weaknesses=FIGHTING,GROUND,FIRE
            Resistances=NORMAL,FLYING,ROCK,BUG,GHOST,STEEL,GRASS,PSYCHIC,ICE,DRAGON,DARK,FAIRY
            Immunities=POISON

            [9]
            Name=???
            InternalName=QMARKS
            IsPseudoType=true

            [10]
            Name=Fire
            InternalName=FIRE
            IsSpecialType=true
            Weaknesses=GROUND,ROCK,WATER
            Resistances=BUG,STEEL,FIRE,GRASS,ICE,FAIRY

            [11]
            Name=Water
            InternalName=WATER
            IsSpecialType=true
            Weaknesses=GRASS,ELECTRIC
            Resistances=STEEL,FIRE,WATER,ICE

            [12]
            Name=Grass
            InternalName=GRASS
            IsSpecialType=true
            Weaknesses=FLYING,POISON,BUG,FIRE,ICE
            Resistances=GROUND,WATER,GRASS,ELECTRIC

            [13]
            Name=Electric
            InternalName=ELECTRIC
            IsSpecialType=true
            Weaknesses=GROUND
            Resistances=FLYING,STEEL,ELECTRIC

            [14]
            Name=Psychic
            InternalName=PSYCHIC
            IsSpecialType=true
            Weaknesses=BUG,GHOST,DARK
            Resistances=FIGHTING,PSYCHIC

            [15]
            Name=Ice
            InternalName=ICE
            IsSpecialType=true
            Weaknesses=FIGHTING,ROCK,STEEL,FIRE
            Resistances=ICE

            [16]
            Name=Dragon
            InternalName=DRAGON
            IsSpecialType=true
            Weaknesses=ICE,DRAGON,FAIRY
            Resistances=FIRE,WATER,GRASS,ELECTRIC

            [17]
            Name=Dark
            InternalName=DARK
            IsSpecialType=true
            Weaknesses=FIGHTING,BUG,FAIRY
            Resistances=GHOST,DARK
            Immunities=PSYCHIC

            [18]
            Name=Fairy
            InternalName=FAIRY
            IsSpecialType=true
            Weaknesses=POISON,STEEL
            Resistances=DARK,FIGHTING,BUG
            Immunities=DRAGON

            this is my types.png
            https://imgur.com/a/roPqVBm
            Reply With Quote
            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
            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 2:50 PM.