本帖最后由 guoxiaomi 于 2019-8-24 02:31 编辑 现在很流行工具人的说法,在RMXP中也可以简单的召唤工具人帮你完成一些任务……简单的说就是以下3步: 1. 工具人角色加入到队伍里 2. 呼叫技能页面,即Scene_Skil ...
# encoding: utf-8# How to Use# 1. $scene = Scene_Skill_Toolsman(10)# 2. $scene = Scene_Item_Toolsman(1 => 10, 2 => 1) class Scene_Skill_Toolsman < Scene_Skill def initialize(actor_id) @actor = $game_actors[actor_id] $game_party.actors.push(@actor) super(-1, 0) end def update_skill super if $scene.is_a?(Scene_Menu) $scene = Scene_Map.new $game_party.actors.delete(@actor) end endend class Scene_Item_Toolsman < Scene_Item def initialize(items = {}) @items = $game_party.instance_variable_get(:@items) $game_party.instance_variable_set(:@items, items) super() end def update_item super if $scene.is_a?(Scene_Menu) $scene = Scene_Map.new $game_party.instance_variable_set(:@items, @items) end endend
# encoding: utf-8 # How to Use # 1. $scene = Scene_Skill_Toolsman(10) # 2. $scene = Scene_Item_Toolsman(1 => 10, 2 => 1) class Scene_Skill_Toolsman < Scene_Skill def initialize(actor_id) @actor = $game_actors[actor_id] $game_party.actors.push(@actor) super(-1, 0) end def update_skill super if $scene.is_a?(Scene_Menu) $scene = Scene_Map.new $game_party.actors.delete(@actor) end end end class Scene_Item_Toolsman < Scene_Item def initialize(items = {}) @items = $game_party.instance_variable_get(:@items) $game_party.instance_variable_set(:@items, items) super() end def update_item super if $scene.is_a?(Scene_Menu) $scene = Scene_Map.new $game_party.instance_variable_set(:@items, @items) end end end
折叠内容标题(非必须)
折叠内容
站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作
GMT+8, 2024-11-23 17:19
Powered by Discuz! X3.1
© 2001-2013 Comsenz Inc.