• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
Resource icon

Resource Advanced Items Field Moves v1.1.3

Bergium

Bergium#0216
Member
Joined
Jun 11, 2019
Posts
74
How can i trigger the event? I have the item to cut three but it doesn't work...
Can you give me a little more information
v19 or v20?
Can you show me the event also?
 

peppewarrior1

Novice
Member
Joined
Aug 3, 2022
Posts
13
What do you mean by MN, and how old games? version 19 below?
I finally solved it. But when I use rock climber it doesn't start the animation even though I put animations.rxdata in its place and the graphics in animations. I modified the scripts according to my needs so it may be that I have something wrong.

rock climb:
Expand Collapse Copy
#===============================================================================
# Adds Rock Climb to TerrainTag
#===============================================================================

module GameData
  class TerrainTag
    attr_reader :rockclimb   # The main part only, not the crest
    attr_reader :rockclimb_crest
    attr_reader :can_climb

    alias advanceditemsfieldmoves_init initialize
    def initialize(hash)
      advanceditemsfieldmoves_init(hash)
      @rockclimb              = hash[:rockclimb]              || false
      @rockclimb_crest        = hash[:rockclimb_crest]        || false
      @can_climb              = hash[:can_climb]              || false
      @whirlpool              = hash[:whirlpool]              || false

    end

    def can_surf_freely
      return @can_surf && !@waterfall && !@waterfall_crest && !@whirlpool
    end
  end
end
#===============================================================================
# More TerrainTag
#===============================================================================

GameData::TerrainTag.register({
  :id                     => :"Rock Climb",
  :id_number              => 26,
  :can_climb              => true,
  :rockclimb              => true
})

GameData::TerrainTag.register({
  :id                     => :"Rock Climb Crest",
  :id_number              => 27,
  :can_climb              => true,
  :rockclimb_crest        => true
})

#===============================================================================
#          Overwrites functions locally to add the Rock Climb section
#===============================================================================

class Game_Map
  def playerPassable?(x, y, d, self_event = nil)
    bit = (1 << ((d / 2) - 1)) & 0x0f
    [2, 1, 0].each do |i|
      tile_id = data[x, y, i]
      next if tile_id == 0
      terrain = GameData::TerrainTag.try_get(@terrain_tags[tile_id])
      passage = @passages[tile_id]
      if terrain
        # Ignore bridge tiles if not on a bridge
        next if terrain.bridge && $PokemonGlobal.bridge == 0
        # Make water tiles passable if player is surfing
        return true if $PokemonGlobal.surfing && terrain.can_surf && !terrain.waterfall && !terrain.whirlpool
        # Prevent cycling in really tall grass/on ice
        return false if $PokemonGlobal.bicycle && terrain.must_walk
        # Depend on passability of bridge tile if on bridge
        if terrain.bridge && $PokemonGlobal.bridge > 0
          return (passage & bit == 0 && passage & 0x0f != 0x0f)
        end
      end
      next if terrain&.ignore_passability
      # Regular passability checks
      return false if passage & bit != 0 || passage & 0x0f == 0x0f
      return true if @priorities[tile_id] == 0
    end
    return true
  end
end

#===============================================================================
#                     Adds Rock Climbing to $PokemonGlobal
#===============================================================================
class PokemonGlobalMetadata
  attr_accessor :rockclimbing

  alias advanceditemsfieldmoves_init initialize
  def initialize
    advanceditemsfieldmoves_init
    @rockclimbing = false
  end
end

class Game_Character
  attr_accessor :always_on_top
end

def onoff?
  if $PokemonGlobal&.rockclimbing
    pbMessage(_INTL("surfing is ON!"))
    return false
  else
    pbMessage(_INTL("surfing is OFF!"))
  end
end

#===============================================================================
#  Can Run? Rockclimb added to it
#===============================================================================
if PluginManager.findDirectory("v20.1 Hotfixes")
class Game_Player < Game_Character
  def can_run?
    return @move_speed > 3 if @move_route_forcing
    return false if $game_temp.in_menu || $game_temp.in_battle ||
    $game_temp.message_window_showing || pbMapInterpreterRunning?
    return false if !$player.has_running_shoes && !$PokemonGlobal.diving &&
    !$PokemonGlobal.surfing && !$PokemonGlobal.bicycle || $PokemonGlobal.rockclimbing
    return false if jumping?
    return false if pbTerrainTag.must_walk
    return ($PokemonSystem.runstyle == 1) ^ Input.press?(Input::BACK)
  end

  def set_movement_type(type)
    meta = GameData::PlayerMetadata.get($player&.character_ID || 1)
    new_charset = nil
    case type
    when :fishing
      new_charset = pbGetPlayerCharset(meta.fish_charset)
    when :surf_fishing
      new_charset = pbGetPlayerCharset(meta.surf_fish_charset)
    when :diving, :diving_fast, :diving_jumping, :diving_stopped
      self.move_speed = 3 if !@move_route_forcing
      new_charset = pbGetPlayerCharset(meta.dive_charset)
    when :surfing, :surfing_fast, :surfing_jumping, :surfing_stopped
      if !@move_route_forcing
        self.move_speed = (type == :surfing_jumping) ? 3 : 4
      end
      new_charset = pbGetPlayerCharset(meta.surf_charset)
    when :rockclimbing, :rockclimbing_fast, :rockclimbing_jumping, :rockclimbing_stopped
      if !@move_route_forcing
        self.move_speed = 5
      end
      new_charset = pbGetPlayerCharset(meta.dive_charset)
    when :cycling, :cycling_fast, :cycling_jumping, :cycling_stopped
      if !@move_route_forcing
        self.move_speed = (type == :cycling_jumping) ? 3 : 5
      end
      new_charset = pbGetPlayerCharset(meta.cycle_charset)
    when :running
      self.move_speed = 4 if !@move_route_forcing
      new_charset = pbGetPlayerCharset(meta.run_charset)
    when :ice_sliding
      self.move_speed = 4 if !@move_route_forcing
      new_charset = pbGetPlayerCharset(meta.walk_charset)
    else   # :walking, :jumping, :walking_stopped
      self.move_speed = 3 if !@move_route_forcing
      new_charset = pbGetPlayerCharset(meta.walk_charset)
    end
    @character_name = new_charset if new_charset
  end

  def update_move
    if !@moved_last_frame || @stopped_last_frame   # Started a new step
      if pbTerrainTag.ice
        set_movement_type(:ice_sliding)
      else#if !@move_route_forcing
        faster = can_run?
        if $PokemonGlobal&.diving
          set_movement_type((faster) ? :diving_fast : :diving)
        elsif $PokemonGlobal&.surfing
          set_movement_type((faster) ? :surfing_fast : :surfing)
        elsif $PokemonGlobal&.rockclimbing
          set_movement_type((faster) ? :rockclimbing_fast : :rockclimbing)
        elsif $PokemonGlobal&.bicycle
          set_movement_type((faster) ? :cycling_fast : :cycling)
        else
          set_movement_type((faster) ? :running : :walking)
        end
      end
      if jumping?
        if $PokemonGlobal&.diving
          set_movement_type(:diving_jumping)
        elsif $PokemonGlobal&.surfing
          set_movement_type(:surfing_jumping)
        elsif $PokemonGlobal&.rockclimbing
          set_movement_type(:rockclimbing_jumping)
        elsif $PokemonGlobal&.bicycle
          set_movement_type(:cycling_jumping)
        else
          set_movement_type(:jumping)   # Walking speed/charset while jumping
        end
      end
    end
    super
  end

  def update_stop
    if @stopped_last_frame
      if $PokemonGlobal&.diving
        set_movement_type(:diving_stopped)
      elsif $PokemonGlobal&.surfing
        set_movement_type(:surfing_stopped)
      elsif $PokemonGlobal&.rockclimbing
        set_movement_type(:rockclimbing_stopped)
      elsif $PokemonGlobal&.bicycle
        set_movement_type(:cycling_stopped)
      else
        set_movement_type(:walking_stopped)
      end
    end
    super
  end

  def pbUpdateVehicle
    if $PokemonGlobal&.diving
      $game_player.set_movement_type(:diving)
    elsif $PokemonGlobal&.surfing
      $game_player.set_movement_type(:surfing)
    elsif $PokemonGlobal&.rockclimbing
      $game_player.set_movement_type(:rockclimbing)
    elsif $PokemonGlobal&.bicycle
      $game_player.set_movement_type(:cycling)
    else
      $game_player.set_movement_type(:walking)
    end
  end
end
end

#===============================================================================
# Rock Field Move
#===============================================================================
def fmAscendRock
  return if $game_player.direction != 8   # Can't ascend if not facing up
  terrain = $game_player.pbFacingTerrainTag
  return if !terrain.can_climb
  oldthrough   = $game_player.through
  oldmovespeed = $game_player.move_speed
  $game_player.through    = true
  $game_player.move_speed = 4
  pbJumpToward
  pbCancelVehicles
  $PokemonEncounters.reset_step_count
  $PokemonGlobal.rockclimbing = true
  pbUpdateVehicle
  loop do
    $game_player.move_up
    terrain = $game_player.pbTerrainTag
    break if !terrain.can_climb
    while $game_player.moving?
      Graphics.update
      Input.update
      pbUpdateSceneMap
    end
  end
  $PokemonGlobal.rockclimbing = false
  pbJumpToward(0)
  pbWait(16)
  $game_player.through    = oldthrough
  $game_player.move_speed = oldmovespeed
  $game_player.increase_steps
  $game_player.check_event_trigger_here([1, 2])
end

def fmDescendRock
  return if $game_player.direction != 2   # Can't descend if not facing down
  terrain = $game_player.pbFacingTerrainTag
  return if !terrain.can_climb
  oldthrough   = $game_player.through
  oldmovespeed = $game_player.move_speed
  old_always_on_top = $game_player.always_on_top
  $game_player.through = true
  $game_player.move_speed = 4
  $game_player.always_on_top = true
  pbJumpToward
  pbCancelVehicles
  $PokemonEncounters.reset_step_count
  $PokemonGlobal.rockclimbing = true
  pbUpdateVehicle
  loop do
    $game_player.move_down
    terrain = $game_player.pbTerrainTag
    break if !terrain.can_climb
    while $game_player.moving?
      Graphics.update
      Input.update
      pbUpdateSceneMap
    end
  end
  $PokemonGlobal.rockclimbing = false
  pbJumpToward(0)
  pbWait(16)
  $game_player.through = oldthrough
  $game_player.move_speed = oldmovespeed
  $game_player.always_on_top = old_always_on_top
  $game_player.increase_steps
  $game_player.check_event_trigger_here([1, 2])
end

def fmRockClimb
  move = :ROCKCLIMB
  movefinder = $player.get_pokemon_with_move(move)
  if !pbCheckHiddenMoveBadge(Settings::BADGE_FOR_ROCKCLIMB, false) || (!$DEBUG && !movefinder)
    pbMessage(_INTL("The wall is very rocky. Could be climbed with the right move"))
    return false
  end
  if pbConfirmMessage(_INTL("The wall is very rocky.\nWould you like to use the {1}", GameData::Move.get(move).name))
    speciesname = (movefinder) ? movefinder.name : $player.name
    pbMessage(_INTL("{1} used {2}!", speciesname, GameData::Move.get(move).name))
    pbHiddenMoveAnimation(movefinder)
    case $game_player.direction
    when 8 # Looking up
      fmAscendRock
    when 2 # Looking down
      fmDescendRock
    end
    return true
  end
  return false
  pbWait(16)
end

EventHandlers.add(:on_player_interact, :rockclimb,
  proc {
    terrain = $game_player.pbFacingTerrainTag
    if terrain.rockclimb
      fmRockClimb
    end
  }
)

EventHandlers.add(:on_player_interact, :rockclimb_crest,
  proc {
    terrain = $game_player.pbFacingTerrainTag
    if terrain.rockclimb_crest
      fmRockClimb
    end
  }
)

HiddenMoveHandlers::CanUseMove.add(:ROCKCLIMB, proc { |move, pkmn, showmsg|
  next false if !pbCanUseMove(Item_RockClimb)
  if !$game_player.pbFacingTerrainTag.can_climb
    pbMessage(_INTL("You can't use that here.")) if showmsg
    next false
  end
  next true
  })

HiddenMoveHandlers::UseMove.add(:ROCKCLIMB, proc { |move, pokemon|
  fmRockClimb
  next true
  })
 

Bergium

Bergium#0216
Member
Joined
Jun 11, 2019
Posts
74
I finally solved it. But when I use rock climber it doesn't start the animation even though I put animations.rxdata in its place and the graphics in animations. I modified the scripts according to my needs so it may be that I have something wrong.

rock climb:
Expand Collapse Copy
#===============================================================================
# Adds Rock Climb to TerrainTag
#===============================================================================

module GameData
  class TerrainTag
    attr_reader :rockclimb   # The main part only, not the crest
    attr_reader :rockclimb_crest
    attr_reader :can_climb

    alias advanceditemsfieldmoves_init initialize
    def initialize(hash)
      advanceditemsfieldmoves_init(hash)
      @rockclimb              = hash[:rockclimb]              || false
      @rockclimb_crest        = hash[:rockclimb_crest]        || false
      @can_climb              = hash[:can_climb]              || false
      @whirlpool              = hash[:whirlpool]              || false

    end

    def can_surf_freely
      return @can_surf && !@waterfall && !@waterfall_crest && !@whirlpool
    end
  end
end
#===============================================================================
# More TerrainTag
#===============================================================================

GameData::TerrainTag.register({
  :id                     => :"Rock Climb",
  :id_number              => 26,
  :can_climb              => true,
  :rockclimb              => true
})

GameData::TerrainTag.register({
  :id                     => :"Rock Climb Crest",
  :id_number              => 27,
  :can_climb              => true,
  :rockclimb_crest        => true
})

#===============================================================================
#          Overwrites functions locally to add the Rock Climb section
#===============================================================================

class Game_Map
  def playerPassable?(x, y, d, self_event = nil)
    bit = (1 << ((d / 2) - 1)) & 0x0f
    [2, 1, 0].each do |i|
      tile_id = data[x, y, i]
      next if tile_id == 0
      terrain = GameData::TerrainTag.try_get(@terrain_tags[tile_id])
      passage = @passages[tile_id]
      if terrain
        # Ignore bridge tiles if not on a bridge
        next if terrain.bridge && $PokemonGlobal.bridge == 0
        # Make water tiles passable if player is surfing
        return true if $PokemonGlobal.surfing && terrain.can_surf && !terrain.waterfall && !terrain.whirlpool
        # Prevent cycling in really tall grass/on ice
        return false if $PokemonGlobal.bicycle && terrain.must_walk
        # Depend on passability of bridge tile if on bridge
        if terrain.bridge && $PokemonGlobal.bridge > 0
          return (passage & bit == 0 && passage & 0x0f != 0x0f)
        end
      end
      next if terrain&.ignore_passability
      # Regular passability checks
      return false if passage & bit != 0 || passage & 0x0f == 0x0f
      return true if @priorities[tile_id] == 0
    end
    return true
  end
end

#===============================================================================
#                     Adds Rock Climbing to $PokemonGlobal
#===============================================================================
class PokemonGlobalMetadata
  attr_accessor :rockclimbing

  alias advanceditemsfieldmoves_init initialize
  def initialize
    advanceditemsfieldmoves_init
    @rockclimbing = false
  end
end

class Game_Character
  attr_accessor :always_on_top
end

def onoff?
  if $PokemonGlobal&.rockclimbing
    pbMessage(_INTL("surfing is ON!"))
    return false
  else
    pbMessage(_INTL("surfing is OFF!"))
  end
end

#===============================================================================
#  Can Run? Rockclimb added to it
#===============================================================================
if PluginManager.findDirectory("v20.1 Hotfixes")
class Game_Player < Game_Character
  def can_run?
    return @move_speed > 3 if @move_route_forcing
    return false if $game_temp.in_menu || $game_temp.in_battle ||
    $game_temp.message_window_showing || pbMapInterpreterRunning?
    return false if !$player.has_running_shoes && !$PokemonGlobal.diving &&
    !$PokemonGlobal.surfing && !$PokemonGlobal.bicycle || $PokemonGlobal.rockclimbing
    return false if jumping?
    return false if pbTerrainTag.must_walk
    return ($PokemonSystem.runstyle == 1) ^ Input.press?(Input::BACK)
  end

  def set_movement_type(type)
    meta = GameData::PlayerMetadata.get($player&.character_ID || 1)
    new_charset = nil
    case type
    when :fishing
      new_charset = pbGetPlayerCharset(meta.fish_charset)
    when :surf_fishing
      new_charset = pbGetPlayerCharset(meta.surf_fish_charset)
    when :diving, :diving_fast, :diving_jumping, :diving_stopped
      self.move_speed = 3 if !@move_route_forcing
      new_charset = pbGetPlayerCharset(meta.dive_charset)
    when :surfing, :surfing_fast, :surfing_jumping, :surfing_stopped
      if !@move_route_forcing
        self.move_speed = (type == :surfing_jumping) ? 3 : 4
      end
      new_charset = pbGetPlayerCharset(meta.surf_charset)
    when :rockclimbing, :rockclimbing_fast, :rockclimbing_jumping, :rockclimbing_stopped
      if !@move_route_forcing
        self.move_speed = 5
      end
      new_charset = pbGetPlayerCharset(meta.dive_charset)
    when :cycling, :cycling_fast, :cycling_jumping, :cycling_stopped
      if !@move_route_forcing
        self.move_speed = (type == :cycling_jumping) ? 3 : 5
      end
      new_charset = pbGetPlayerCharset(meta.cycle_charset)
    when :running
      self.move_speed = 4 if !@move_route_forcing
      new_charset = pbGetPlayerCharset(meta.run_charset)
    when :ice_sliding
      self.move_speed = 4 if !@move_route_forcing
      new_charset = pbGetPlayerCharset(meta.walk_charset)
    else   # :walking, :jumping, :walking_stopped
      self.move_speed = 3 if !@move_route_forcing
      new_charset = pbGetPlayerCharset(meta.walk_charset)
    end
    @character_name = new_charset if new_charset
  end

  def update_move
    if !@moved_last_frame || @stopped_last_frame   # Started a new step
      if pbTerrainTag.ice
        set_movement_type(:ice_sliding)
      else#if !@move_route_forcing
        faster = can_run?
        if $PokemonGlobal&.diving
          set_movement_type((faster) ? :diving_fast : :diving)
        elsif $PokemonGlobal&.surfing
          set_movement_type((faster) ? :surfing_fast : :surfing)
        elsif $PokemonGlobal&.rockclimbing
          set_movement_type((faster) ? :rockclimbing_fast : :rockclimbing)
        elsif $PokemonGlobal&.bicycle
          set_movement_type((faster) ? :cycling_fast : :cycling)
        else
          set_movement_type((faster) ? :running : :walking)
        end
      end
      if jumping?
        if $PokemonGlobal&.diving
          set_movement_type(:diving_jumping)
        elsif $PokemonGlobal&.surfing
          set_movement_type(:surfing_jumping)
        elsif $PokemonGlobal&.rockclimbing
          set_movement_type(:rockclimbing_jumping)
        elsif $PokemonGlobal&.bicycle
          set_movement_type(:cycling_jumping)
        else
          set_movement_type(:jumping)   # Walking speed/charset while jumping
        end
      end
    end
    super
  end

  def update_stop
    if @stopped_last_frame
      if $PokemonGlobal&.diving
        set_movement_type(:diving_stopped)
      elsif $PokemonGlobal&.surfing
        set_movement_type(:surfing_stopped)
      elsif $PokemonGlobal&.rockclimbing
        set_movement_type(:rockclimbing_stopped)
      elsif $PokemonGlobal&.bicycle
        set_movement_type(:cycling_stopped)
      else
        set_movement_type(:walking_stopped)
      end
    end
    super
  end

  def pbUpdateVehicle
    if $PokemonGlobal&.diving
      $game_player.set_movement_type(:diving)
    elsif $PokemonGlobal&.surfing
      $game_player.set_movement_type(:surfing)
    elsif $PokemonGlobal&.rockclimbing
      $game_player.set_movement_type(:rockclimbing)
    elsif $PokemonGlobal&.bicycle
      $game_player.set_movement_type(:cycling)
    else
      $game_player.set_movement_type(:walking)
    end
  end
end
end

#===============================================================================
# Rock Field Move
#===============================================================================
def fmAscendRock
  return if $game_player.direction != 8   # Can't ascend if not facing up
  terrain = $game_player.pbFacingTerrainTag
  return if !terrain.can_climb
  oldthrough   = $game_player.through
  oldmovespeed = $game_player.move_speed
  $game_player.through    = true
  $game_player.move_speed = 4
  pbJumpToward
  pbCancelVehicles
  $PokemonEncounters.reset_step_count
  $PokemonGlobal.rockclimbing = true
  pbUpdateVehicle
  loop do
    $game_player.move_up
    terrain = $game_player.pbTerrainTag
    break if !terrain.can_climb
    while $game_player.moving?
      Graphics.update
      Input.update
      pbUpdateSceneMap
    end
  end
  $PokemonGlobal.rockclimbing = false
  pbJumpToward(0)
  pbWait(16)
  $game_player.through    = oldthrough
  $game_player.move_speed = oldmovespeed
  $game_player.increase_steps
  $game_player.check_event_trigger_here([1, 2])
end

def fmDescendRock
  return if $game_player.direction != 2   # Can't descend if not facing down
  terrain = $game_player.pbFacingTerrainTag
  return if !terrain.can_climb
  oldthrough   = $game_player.through
  oldmovespeed = $game_player.move_speed
  old_always_on_top = $game_player.always_on_top
  $game_player.through = true
  $game_player.move_speed = 4
  $game_player.always_on_top = true
  pbJumpToward
  pbCancelVehicles
  $PokemonEncounters.reset_step_count
  $PokemonGlobal.rockclimbing = true
  pbUpdateVehicle
  loop do
    $game_player.move_down
    terrain = $game_player.pbTerrainTag
    break if !terrain.can_climb
    while $game_player.moving?
      Graphics.update
      Input.update
      pbUpdateSceneMap
    end
  end
  $PokemonGlobal.rockclimbing = false
  pbJumpToward(0)
  pbWait(16)
  $game_player.through = oldthrough
  $game_player.move_speed = oldmovespeed
  $game_player.always_on_top = old_always_on_top
  $game_player.increase_steps
  $game_player.check_event_trigger_here([1, 2])
end

def fmRockClimb
  move = :ROCKCLIMB
  movefinder = $player.get_pokemon_with_move(move)
  if !pbCheckHiddenMoveBadge(Settings::BADGE_FOR_ROCKCLIMB, false) || (!$DEBUG && !movefinder)
    pbMessage(_INTL("The wall is very rocky. Could be climbed with the right move"))
    return false
  end
  if pbConfirmMessage(_INTL("The wall is very rocky.\nWould you like to use the {1}", GameData::Move.get(move).name))
    speciesname = (movefinder) ? movefinder.name : $player.name
    pbMessage(_INTL("{1} used {2}!", speciesname, GameData::Move.get(move).name))
    pbHiddenMoveAnimation(movefinder)
    case $game_player.direction
    when 8 # Looking up
      fmAscendRock
    when 2 # Looking down
      fmDescendRock
    end
    return true
  end
  return false
  pbWait(16)
end

EventHandlers.add(:on_player_interact, :rockclimb,
  proc {
    terrain = $game_player.pbFacingTerrainTag
    if terrain.rockclimb
      fmRockClimb
    end
  }
)

EventHandlers.add(:on_player_interact, :rockclimb_crest,
  proc {
    terrain = $game_player.pbFacingTerrainTag
    if terrain.rockclimb_crest
      fmRockClimb
    end
  }
)

HiddenMoveHandlers::CanUseMove.add(:ROCKCLIMB, proc { |move, pkmn, showmsg|
  next false if !pbCanUseMove(Item_RockClimb)
  if !$game_player.pbFacingTerrainTag.can_climb
    pbMessage(_INTL("You can't use that here.")) if showmsg
    next false
  end
  next true
  })

HiddenMoveHandlers::UseMove.add(:ROCKCLIMB, proc { |move, pokemon|
  fmRockClimb
  next true
  })
I don't know why you edit, is a pretty module script,
maybe DM in discord
but you have deleted the animation in the script, it is not there anymore
 

peppewarrior1

Novice
Member
Joined
Aug 3, 2022
Posts
13
I don't know why you edit, is a pretty module script,
maybe DM in discord
but you have deleted the animation in the script, it is not there anymore
I'm developing an old style fanmade pokemon with HN moves as before (ex. Platinum). I searched but I can't find the animation scripts I'll be stupid.
 

Bergium

Bergium#0216
Member
Joined
Jun 11, 2019
Posts
74
I'm developing an old style fanmade pokemon with HN moves as before (ex. Platinum). I searched but I can't find the animation scripts I'll be stupid.
you are missing the in your custom setup, but if you have taken the part of the script and mashed the together, you need to reach out on discord for me to be able to help

06_Field Move:
Expand Collapse Copy
      $scene.spriteset.addUserAnimation(AdvancedItemsFieldMoves::ROCKCLIMB_CONFIG[:move_up_id],$game_player.x,$game_player.y,true,1)
      $scene.spriteset.addUserAnimation(AdvancedItemsFieldMoves::ROCKCLIMB_CONFIG[:debris_id],$game_player.x,$game_player.y,true,1)
00_Config:
Expand Collapse Copy
  ROCKCLIMB_CONFIG = {
...
    :debris_id          => 19,                # Default: 19
    :move_up_id         => 20,                # Default: 20
...
    :move_down_id       => 23,                # Default: 23
  }

If you want the Rock Climb for the pack to be a Field Move you just have to put
Ruby:
Expand Collapse Copy
active => false
 

peppewarrior1

Novice
Member
Joined
Aug 3, 2022
Posts
13
you are missing the in your custom setup, but if you have taken the part of the script and mashed the together, you need to reach out on discord for me to be able to help

06_Field Move:
Expand Collapse Copy
      $scene.spriteset.addUserAnimation(AdvancedItemsFieldMoves::ROCKCLIMB_CONFIG[:move_up_id],$game_player.x,$game_player.y,true,1)
      $scene.spriteset.addUserAnimation(AdvancedItemsFieldMoves::ROCKCLIMB_CONFIG[:debris_id],$game_player.x,$game_player.y,true,1)
00_Config:
Expand Collapse Copy
  ROCKCLIMB_CONFIG = {
...
    :debris_id          => 19,                # Default: 19
    :move_up_id         => 20,                # Default: 20
...
    :move_down_id       => 23,                # Default: 23
  }

If you want the Rock Climb for the pack to be a Field Move you just have to put
Ruby:
Expand Collapse Copy
active => false
I solved it in the end. I simply replaced AdvancedItemsFieldMoves :: ROCKCLIMB_CONFIG [???] directly with the id and it works. But if I wanted to do the lateral as well, how should I do it?
 

Bergium

Bergium#0216
Member
Joined
Jun 11, 2019
Posts
74
I solved it in the end. I simply replaced AdvancedItemsFieldMoves :: ROCKCLIMB_CONFIG [???] directly with the id and it works. But if I wanted to do the lateral as well, how should I do it?
Could you please reach out to me on Discord?
 

Taymation

Novice
Member
Joined
Aug 9, 2022
Posts
15
So I am having issues where everything works fine, until the animation starts for rock climb, then I get this error:

[Pokémon Essentials version 20.1]
[v20.1 Hotfixes 1.0.2]

Exception: NoMethodError
Message: undefined method `>' for nil:NilClass

Backtrace:
009:RPG_Sprite:129:in `effect?'
009:RPG_Sprite:432:in `block in effect?'
009:RPG_Sprite:431:in `each'
009:RPG_Sprite:431:in `effect?'
067:Sprite_AnimationSprite:36:in `update'
067:Sprite_AnimationSprite:77:in `block in update'
067:Sprite_AnimationSprite:77:in `each'
067:Sprite_AnimationSprite:77:in `update'
032:Scene_Map:144:in `block in updateSpritesets'
032:Scene_Map:142:in `each'

I thought I had saved everything in the appropriate places, and there are no conflicting animation files that I can see. But hopefully someone can help me out.
 

Bergium

Bergium#0216
Member
Joined
Jun 11, 2019
Posts
74
I will look in to this later today
Trying to recreate it
 

Bergium

Bergium#0216
Member
Joined
Jun 11, 2019
Posts
74
So I am having issues where everything works fine, until the animation starts for rock climb, then I get this error:

[Pokémon Essentials version 20.1]
[v20.1 Hotfixes 1.0.2]

Exception: NoMethodError
Message: undefined method `>' for nil:NilClass

Backtrace:
009:RPG_Sprite:129:in `effect?'
009:RPG_Sprite:432:in `block in effect?'
009:RPG_Sprite:431:in `each'
009:RPG_Sprite:431:in `effect?'
067:Sprite_AnimationSprite:36:in `update'
067:Sprite_AnimationSprite:77:in `block in update'
067:Sprite_AnimationSprite:77:in `each'
067:Sprite_AnimationSprite:77:in `update'
032:Scene_Map:144:in `block in updateSpritesets'
032:Scene_Map:142:in `each'

I thought I had saved everything in the appropriate places, and there are no conflicting animation files that I can see. But hopefully someone can help me out.
can you poke me at discord?
Bergium#0216
 

ardicoozer

Cooltrainer
Member
Joined
Sep 29, 2020
Posts
173
I got this error' after use clearSky on Weather Gadget
I'm using PE v20.1

d dd.PNG
 
Back
Top