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

Requesting scripts for changing the player base in PSDK

1
Posts
6
Years
    • Seen Feb 10, 2023
    This is a thread just for getting scripts to change the player base in PSDK. It's smaller than usual by default; the same size as the enemy base. If that's interesting to you, feel free to grab the scripts.
     

    MysteriousUser94

    Guest
    0
    Posts
    In your battlebacks folder you have the grounds named like this :
    ground_{env}

    Which constrate with the backgrounds named like this :
    back_{env}

    You'll call the actor grounds like this :
    ground_act_{env}

    And use the following script :
    Code:
    module GamePlay
      class BattleGrounds
        GR_NAMES = %w[ground_building ground_grass ground_tall_grass ground_taller_grass ground_cave
                      ground_mount ground_sand ground_pond ground_sea ground_under_water ground_ice ground_snow]
        A_Pos = [nil, [88, 157 + 10], [88, 157 + 10]]
        def set_bitmap
          if $game_temp.battleback_name.to_s.empty?
            zone_type = $env.get_zone_type
            zone_type += 1 if zone_type > 0 || $env.grass?
            ground_name = GR_NAMES[zone_type].to_s
          else
            ground_name = $game_temp.battleback_name.sub('back_', 'ground_')
          end
          ground_name = ground_name.sub('ground_', 'ground_act_') if @actors
          super(ground_name, :battleback)
          set_origin(bitmap.width / 2, bitmap.height / 2)
        end
    
        def calibrate
          arr = @actors ? A_Pos : E_Pos
          if $game_temp.vs_type == 2
            self.zoom = @actors ? 1 : 1.5
          end
          set_position(*arr[$game_temp.vs_type])
        end
      end
    end

    If the position is not correct, you'll have to edit the 88 & the 10 in the A_Pos constant. Those value correspond to the x position & the y offset.
     
    Back
    Top