• 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.

[Essentials Tutorial] Dynamax tutorial

87
Posts
4
Years
  • Hi, I have a problem with these lines:

    Code:
    # Recalculates this Pokémon's stats.
      def calcStats
        nature=self.nature
        stats=[]
        pvalues??=[100,100,100,100,100]
        na5=(nature/5).floor
        nm5=(nature%5).floor
        if nd5!=nm5
          [I]pvalues??[nd5]=110
          pvalues??[nm5]=90[/I]
        end
        level = self.level
        bs = self.baseStats
        for i in 0..5
          base = bs[i]
          if i==PBStats::HP
            stats[i]=calcHP(base,level,@iv[i],@ev[i])
          else
            stats[i]=calcStat(base,level,@iv[i],@ev[i],pvalues??[i-1])
          end
        end

    p.s.:I'm working on 17.2
    p.p.s.:I think we need this attribute: attr_writer: dynamax_lvl; but idk where to put it.
    p.p.p.s.:Where the text is italicized is where the problem is.
     
    Last edited:
    89
    Posts
    4
    Years
    • Seen Jan 17, 2023
    Code:
    ################################################################################
    # Dynamax battler.
    ################################################################################
    
    <snip>
    
      def pbDynamax(index)
        return if! @battlers[index] || !@battlers[index].pokemon
        return if! (@ battlers [index] .hasDynamax? rescue false)
        return if (@battlers[index].isDynamax? rescue true)
        ownername = pbGetOwner(index).fullname
        ownername = pbGetOwner(index).name if pbBelongsToPlayer?(index)
        @battlers [index].effects[PBEffects::Dynamax]=3
        @battlers [index].effects[PBEffects::DBoost]=true
        @scene.pbRecall(index)
        # Checking Gigantamax
        if @battlers[index].hasGigantamax?
          [COLOR="Red"]@battlers[index].pokemon.makeGigantamax[/COLOR]
          @battlers[index].effects[PBEffects::Gigantamax]=3
          @battlers[index].form=@battlers[index].pokemon.form
          @ scene.pbChangePokemon(@battlers[index],@battlers[index].pokemon)
        end
        if pbBelongsToPlayer?(index) || @battlers[index].pbPartner && !pbIsOpposing?(index)
          @scene.pbSendOut index,@battlers[index].pokemon)
        elsif pbIsOpposing?(index)
          @scene.pbTrainerSendOut (index,@battlers[index].pokemon)
        end
        @battlers[index].pokemon.makeDynamax
        @battlers[index].pbUpdate(true)
        maxname=(@battlers[index].pokemon.maxName rescue nil)
        if! maxname || maxname ==""
          maxname = _INTL ("{1}",PBSpecies.getName(@battlers[index].pokemon.species))
        end
        #pbDisplay(_INTL("{1} has Mega Evolved into {2}!",@battlers[index].pbThis,meganame))
        PBDebug.log("[Dynamax] #{@battlers[index].pbThis} became Max #{maxname}")
        side = (pbIsOpposing?(index)) ? 1 : 0
        owner = pbGetOwnerIndex(index)
        @dynaMax[side][owner]=-2
        pbPlayCrySpecies(@battlers[index])
      end

    Hey I was just checking the code and saw that there is no makeGigantamax method included in the code provided, however there is a makeGigantamax method called in the "#Checking Gigantamax" under "#Dynamax Battler"

    Can you please add this. We've been dying for an update anyways man.
     
    57
    Posts
    4
    Years
    • Seen Apr 17, 2022
    Hi.
    I would like to know how exactly this works, for example, I want to make a specific gengar can do gigantamax, but the rest of the gengar cannot (the rest will be able to evolve mega). Is this possible? If not, can someone explain to me clearly how dynamax works?
    Thanks in advance.
     
    1
    Posts
    3
    Years
    • Seen Jul 15, 2020
    Navigate to the PBS folder and in 'move.txt' add the lines: (replace 'XXX' with the last numbar and and 'YYY' with the function of MoveEffectf personal move)
    In this part i dont get what to do for yyy pls help

    Could you please make a video tutorial I would find that very helpfull as I'm more of a video guy and there are none so...please
     
    Last edited by a moderator:
    37
    Posts
    6
    Years
  • @UberDunsparce: I spent a lot of time away due to personal issues. Well, as was said by @mgriffin, there shouldn't be any space in those lines, I believe that when I was preparing the tutorial, the text corrector must have generated spaces and I ended up forgetting to remove it in some parts.

    @Parritoso & @UberDunsparce: The tutorial was created just for the Dynamax method. Gigantamax has not been implemented yet, as I made it clear in the tutorial that new updates would be coming.

    @EWIZARD: This is a question of RPG Maker, you need to understand how to create new movements and adapt them to the Dynamax system.

    @ash136: "Message: wrong number of arguments(4 for 5)"
    You must have forgotten to copy any part of the code, because according to the sentence I highlighted, some of the arguments are missing.
     
    50
    Posts
    4
    Years
    • Seen Oct 17, 2023
    No, only for that version. And no, they will not adapt it for those versions Soulex
     
    32
    Posts
    4
    Years
    • Seen Sep 19, 2023
    I use the guide, I have to fix some Parts
    , some Parts have sintax error, but fix so easy.
     
    15
    Posts
    7
    Years
    • Seen Jul 2, 2021
    Hi guys, I get this error, do you know how to fix it?


    3ku8EwG.png
     
    Last edited:
    Back
    Top