图片跟随地图移动
# @taroxd metadata 1.0
# @id picture_with_map
# @display 图片跟随地图移动
# @require taroxd_core
# @help 编号大于 50 的图片会跟随地图移动。
Taroxd::PictureWithMap = true

class Game_Picture
  # 图片是否随地图移动
  def move_with_map?
    @number > 50
  end

  def_with :x do |old|
    move_with_map? ? $game_map.adjust_x(old / 32.0) * 32 : old
  end

  def_with :y do |old|
    move_with_map? ? $game_map.adjust_y(old / 32.0) * 32 : old
  end
end
计步器
# @taroxd metadata 1.0
# @id pedometer
# @display 计步器
# @require taroxd_core
#   事件脚本
#      start_pedometer(var_id[, count])
#        变量 var_id 开始计步。若 count 存在,将该变量设为 count。
#
#      stop_pedometer([var_id])
#        变量 var_id 停止计步。若 var_id 不存在,则停止所有计步器。

Taroxd::Pedometer = true

class Game_Party < Game_Unit

  def_after(:initialize) { @pedometer = [] }

  def start_pedometer(var_id, count = nil)
    @pedometer << var_id unless @pedometer.include?(var_id)
    $game_variables[var_id] = count if count
  end

  def stop_pedometer(var_id = nil)
    var_id ? @pedometer.delete(var_id) : @pedometer.clear
  end

  def_after :on_player_walk do
    @pedometer.each { |var_id| $game_variables[var_id] += 1 }
  end
end

class Game_Interpreter

  def start_pedometer(var_id, count = nil)
    $game_party.start_pedometer(var_id, count)
  end

  def stop_pedometer(var_id = nil)
    $game_party.stop_pedometer(var_id)
  end
end
被动技能状态
# @taroxd metadata 1.0
# @id passive
# @display 被动技能状态
# @require taroxd_core
#   在技能/状态上备注<passive x>,
#   表示习得该技能/获得该状态等同于装备了x号武器。

Taroxd::Passive = true

RPG::Skill.note_i :passive
RPG::State.note_i :passive

class Game_Actor < Game_Battler

  # 带有被动技能效果的所有实例
  def passive_objects
    @skills.map { |id| $data_skills[id] } + states
  end
  # 特性表和能力中加上被动武器
  def_with(:feature_objects) { |old| old + passive_weapons }

  def_with :param_plus do |old, param_id|
    passive_weapons.sum(old) { |item| item.params[param_id] }
  end

  # 被动技能/状态对应的武器实例构成的数组
  def passive_weapons
    passive_objects.map { |obj| $data_weapons[obj.passive] }.compact
  end
end