• 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

Diegou18

Forever Chandelure lover.
75
Posts
6
Years
    • Seen Aug 16, 2021
    Yep, twice

    So you are doing things in a wrong way somewhere, since I don't have a big knowledge of scripts, and following all steps I could add it to my game. If you just copy and paste without reading what you're copying, you'll have errors. I noticed that when you copy directly from here (without the raw paste form), you'll get some errors based on typos, like a space that shouldn't be there or some symbols bad placed, but looking some scripts that are pretty similar and near of the new ones, you'll find the solutions. Some errors can be solved just following logic, like "((text)".
     

    #Not Important

    All hail the wishmaker
    910
    Posts
    4
    Years
  • I know it kind of kills the whole "essentials tutorial" thing , but can someone who it works for just give me scripts.rxdata it wont work
     
    32
    Posts
    4
    Years
    • Seen Sep 19, 2023
    Hi, the method isFainted? doesn't work


    !self.isFainted?

    Excepción: NoMethodError
    Mensaje: undefined method `isFainted?' for #<PokeBattle_Pokemon:0x8cdec78>
    PokeBattle_Pokemon:886:in `calcStats'
    PokeBattle_Battler:1300:in `pbUpdate'
    PokeBattle_Battler:167:in `pbUndynamax'
    PokeBattle_Battle:1385:in `pbRegisterSwitch'
    PokeBattle_Battle:3051:in `pbCommandPhase'
    PokeBattle_Battle:2982:in `loop'
    PokeBattle_Battle:3116:in `pbCommandPhase'
    PokeBattle_Battle:2971:in `each'
    PokeBattle_Battle:2971:in `pbCommandPhase'
    PokeBattle_Battle:2898:in `pbStartBattleCore'
     

    Pokeminer20

    PDM20, Coder of Chaos!
    412
    Posts
    10
    Years
  • Does Shedinja keep 1 hp when dynamaxed in this script?
    If the code works the same as it does in the official titles it's HP shouldn't increase

    I know it kind of kills the whole "essentials tutorial" thing , but can someone who it works for just give me scripts.rxdata it wont work
    even if someone were to properly add this to their game we have no idea what custom scripts or code alteration you might have done, so you'd be better off giving your Script.rxdata to a close friend and asking them to install it for you.
     
    17
    Posts
    4
    Years
  • For some reason, i'm getting an error
    --------------------------------------
    Script Pokebattle_Battle line 4179: SyntaxError occured
    --------------------------------------

    Could i get some help?
     

    #Not Important

    All hail the wishmaker
    910
    Posts
    4
    Years
  • Same
    It means that there is an unended 'if' or such in the script
    This is why I want a functioning copy of the script
     
    17
    Posts
    4
    Years
  • This is why I want a functioning copy of the script
    Yeah... that would be nice. I'm not exactly the best at whatever scripting language this is (Pretty sure it's Lua)
    Kinda like what Z-Moves did.
    However, i found out changing all if!s to if seems to work

    Now i'm getting an error at the end of PokeBattle_Scene
     
    Last edited:
    1,403
    Posts
    10
    Years
    • Seen Apr 29, 2024
    Code:
    if !1=variable #The !1=variable checks if one [B]doesn't[/B] equal variable 
      pbDoSomething
    end

    That code doesn't check for not equal. if 1!=variable checks for not equal. What you wrote crashes, and if you'd said if !var1=var2 that would set var1 to var2 then run the body of the if only if var2 is false or nil.

    In general !x means "not x", it's the opposite.
     

    #Not Important

    All hail the wishmaker
    910
    Posts
    4
    Years
  • That code doesn't check for not equal. if 1!=variable checks for not equal. What you wrote crashes, and if you'd said if !var1=var2 that would set var1 to var2 then run the body of the if only if var2 is false or nil.

    In general !x means "not x", it's the opposite.

    Oh... that explains why so many of my scripts fail...
     
    6
    Posts
    10
    Years
    • Seen Dec 5, 2022
    Hi I got most of the script working on 17.2 except I get a SyntaxError when adding

    if battler.effects [PBEffects::DButton]
    battler.effects [PBEffects::MaxMove1] += 1 if cw.index == 0
    battler.effects [PBEffects::MaxMove2] += 1 if cw.index == 1
    battler.effects [PBEffects::MaxMove3] += 1 if cw.index == 2
    battler.effects [PBEffects::MaxMove4] += 1 if cw.index == 3
    end

    it says there's a problem in the line of MaxMove1-4 please help
     
    1,403
    Posts
    10
    Years
    • Seen Apr 29, 2024
    Hi I got most of the script working on 17.2 except I get a SyntaxError when adding

    if battler.effects [PBEffects::DButton]
    battler.effects [PBEffects::MaxMove1] += 1 if cw.index == 0
    battler.effects [PBEffects::MaxMove2] += 1 if cw.index == 1
    battler.effects [PBEffects::MaxMove3] += 1 if cw.index == 2
    battler.effects [PBEffects::MaxMove4] += 1 if cw.index == 3
    end

    it says there's a problem in the line of MaxMove1-4 please help
    I don't think there should be a space before the [s.
     
    6
    Posts
    10
    Years
    • Seen Dec 5, 2022
    I am able to start the game and load a new and saved game but, every time I try to start a battle I get this error

    Message: wrong number of arguments(4 for 5)
    PokeBattle_Scene:384:in `refresh'
    PokeBattle_Scene:384:in `initialize'
    PokeBattle_Scene:251:in `new'
    PokeBattle_Scene:251:in `initialize'
    PokeBattle_Scene:1928:in `new'
    PokeBattle_Scene:1928:in `pbStartBattle'
    PokeBattle_Battle:2600:in `pbStartBattleCore'
    PokeBattle_Battle:2573:in `pbStartBattle'
    PField_Field:905:in `pbWildBattle'
    PField_Field:904:in `pbSceneStandby'

    please help.
     
    1
    Posts
    5
    Years
    • Seen Aug 17, 2021
    Sorry but my english are so bad, i can use mega evolution and dynamax/gmax or only dynamax/gmax?
     
    Back
    Top