| 
 
| 赞 | 18 |  
| VIP | 94 |  
| 好人卡 | 0 |  
| 积分 | 111 |  
| 经验 | 60791 |  
| 最后登录 | 2022-2-2 |  
| 在线时间 | 1155 小时 |  
 Lv4.逐梦者 ST戰士 
	梦石11 星屑82 在线时间1155 小时注册时间2007-5-5帖子3489 
 | 
| 复制代码# 注意!!!在对话后得到技能,请在对话后先用事件等待3帧,否则对话框来不及消失。
# 开关定义:
$不显示技能视窗 = 1
# 以上开关,当打开的时候,获得技能将不会提示,比如默认打开1号开关,获得技能不再提示
# ————————————————————————————————————
class Interpreter
  #--------------------------------------------------------------------------
  # ● 增减技能
  #--------------------------------------------------------------------------
  def command_318
    actor = $game_actors[@parameters[0]]
    if actor != nil
      if @parameters[1] == 0
        actor.learn_skill(@parameters[2])
      else
        actor.forget_skill(@parameters[2])
      end
    end
   
    if $game_switches[$不显示技能视窗]==false
      skill_item = $data_skills[@parameters[2]]
      skill = Window_Base.new((640-260)/2,192,200,64)
      skill.contents = Bitmap.new(skill.width - 32, skill.height - 32)
      actor = $game_actors[@parameters[0]]
    if @parameters[1] == 0
      skill.contents.draw_text(0 + 92,0,240,32,"生效!") 
      #──声效,可以自己改
      Audio.se_play("Audio/SE/"+"005-System06",80,100)
    else
      skill.contents.draw_text(0 + 92,0,240,32,"失效!") 
      #──声效,可以自己改
      Audio.se_play("Audio/SE/"+"005-System05",80,100)
    end
    skill.contents.draw_text(0 + 16,0, 212, 32, skill_item.name, 0)
    skill.opacity = 160
    for i in 0..50
      Graphics.update
    end
    for i in 0..10
      skill.opacity -= 30
      skill.contents_opacity -= 30
      Graphics.update
    end
      skill.dispose
    end
    return true
  end
end
希望是你要的东西~ {/hx} {/hx}
 系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~
 | 
 |