• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • 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

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:
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.
 
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.
 
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:
@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.
 
No, only for that version. And no, they will not adapt it for those versions Soulex
 
Hi guys, I get this error, do you know how to fix it?


[PokeCommunity.com] Dynamax tutorial
 
Last edited:
Back
Top