Jump to content

YouAreOutOfMy5

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

  1. 8 hours ago, BlueTowel said:

     

    Hi! Yeah, it's pretty much '$fefieldeffect == 2' for Grassy Terrain. I have it coded but untested right now, I don't believe it needs to be in Pokebattle_Battle twice, but it does have an entry in pbSuccessCheck in Pokebattle_Battler for anti-priority effects (Dazzling, etc.)

    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.

  2. 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:

     

    Spoiler

    Add 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?

×
×
  • Create New...