class Game_Party
#--------------------------------------------------------------------------
# ● 角色入队到指定位置
#--------------------------------------------------------------------------
# 使用方法:
# 事件脚本 $game_party.cld99_add_actor(id,pos)
# id:角色的数据库id
# pos:角色入队的位置 队首为0 其他依次递增 缺省值为队尾
# 例: $game_party.cld99_add_actor(1,0) #让数据库id为1的艾里克加入队首
#--------------------------------------------------------------------------
def cld99_add_actor(actor_id, position = @actors.length)
@actors.insert(position,actor_id) unless @actors.include?(actor_id)
$game_player.refresh
$game_map.need_refresh = true
end
end
class Game_Party
#--------------------------------------------------------------------------
# ● 角色入队到指定位置
#--------------------------------------------------------------------------
# 使用方法:
# 事件脚本 $game_party.cld99_add_actor(id,pos)
# id:角色的数据库id
# pos:角色入队的位置 队首为0 其他依次递增 缺省值为队尾
# 例: $game_party.cld99_add_actor(1,0) #让数据库id为1的艾里克加入队首
#--------------------------------------------------------------------------
def cld99_add_actor(actor_id, position = @actors.length)
@actors.insert(position,actor_id) unless @actors.include?(actor_id)
$game_player.refresh
$game_map.need_refresh = true
end
end