-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Reborn Development Blog
Rejuvenation Development Blog
Starlight Divide Devblog
Desolation Dev Blog
Posts posted by YouAreOutOfMy5
-
-
Hello BlueTowel, I am brand new in learning how to write code for RPG Maker XP and I was simply trying to understand how to make Grassy Glide work in Reborn. Since you are working on implementing Isle of Armor content in your next version update, you might know how to code Grassy Glide. I found this post on pokecommunity from user silverlime:
SpoilerAdd this to Pokebattle_MoveEffects:
################################################################################ # Adds 1 to priority on Grassy Terrain (Grassy Glide) ################################################################################ class PokeBattle_Move_19D < PokeBattle_Move # Handeled in priority end
Go to 'def pbPriority(ignorequickclaw=false,log=false)' in Pokebattle_Battle and paste the following under pri=@choices[i][2].priority:pri+=1 if @field.effects[PBEffects::GrassyTerrain]>0 && @choices[i][2].function == 0x19D # Grassy Glide
Find p+=1 if user.hasWorkingAbility(:PRANKSTER) && thismove.pbIsStatus? in Pokebattle_Battler and paste the following underneath:p+=1 if @battle.field.effects[PBEffects::GrassyTerrain]>0 && thismove.function == 0x19D # Grassy Glide
Do I just replace all '[PBEffects::GrassyTerrain]>0' with '[PBEffects::Terrain]=2' to make it work in reborn?Edit: I see '$fefieldeffect' being used a lot. Do I replace all '[PBEffects::GrassyTerrain]>0' with that instead?
Pokémon Reborn: Plates of Arceus (Episode 0) [E18.4.1] (Updated 19th Feb '22)
in The Mod Market
Posted · Edited by YouAreOutOfMy5
Thank you for the quick response! I defined the class in Pokebattle_MoveEffects and added the adjusted code into Pokebattle_Battle. I tested it on the starting area NPC that has a Bunnelby and it worked! ^^ Dazzling and Queenly Majesty are the only anti-priority effects in the game that would affect Grassy Glide in Grassy Terrain, right? The only other anti-priority mechanic I can think of is Psychic Terrain but it doesn't stop Grassy Glide entirely.