设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 1553|回复: 0
打印 上一主题 下一主题

[已经过期] 请问谁能帮我改改这个青魔法脚本?

 关闭 [复制链接]

Lv1.梦旅人

梦石
0
星屑
49
在线时间
195 小时
注册时间
2011-3-20
帖子
48
跳转到指定楼层
1
发表于 2011-7-1 10:55:51 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 fux2 于 2011-7-1 14:00 编辑

请问谁有青魔法脚本?
我用的那个一直出现问题……

以下为我在别的网站找的脚本:
  1. #_______________________________________________________________________________
  2. # MOG_Blue Magic V1.3            
  3. #_______________________________________________________________________________
  4. # By Moghunter            
  5. # [url]http://www.atelier-rgss.com[/url]
  6. #_______________________________________________________________________________
  7. # Permite que os personagens aprendam as magias dos inimigos.
  8. # Para definir quais magias serão aprendidas devemos criar um
  9. # atributo com o nome de "Blue Skill" e atribuir à habilidade
  10. # desejada, e após isso criar uma classe com o nome de "Blue Mage"
  11. # e atribuí-lo aos personagens que poderão aprender as magias.
  12. #_______________________________________________________________________________
  13. module MOG
  14.   #Nome da classe que poderá aprender as magias.  
  15.   CLASS_LEARN = "Blue Mage"
  16.   #Nome do atributo do banco do dados.(Skills que poderão ser
  17.   #aprendidas)
  18.   ELE_LEARN = "Blue Magic"
  19.   #Texto apresentado quando se aprende a Magia.
  20.   TEXT_LEARN = "Learned"
  21.   #Definição do som quando se aprende a Magia.
  22.   SE_LEARN = "056-Right02"
  23. end
  24. #===============================================================================
  25. # Scene_Battle
  26. #===============================================================================
  27. class Scene_Battle
  28. #--------------------------------------------------------------------------
  29. # Update Status
  30. #--------------------------------------------------------------------------  
  31.   alias mog55_update_phase4_step6 update_phase4_step6
  32.   def update_phase4_step6
  33.     if @active_battler.is_a?(Game_Enemy) and @active_battler.current_action.kind == 1
  34.       for tr in @target_battlers  
  35.         if not tr.dead?
  36.           learn_skill(tr,@active_battler.current_action.skill_id)
  37.         end
  38.       end
  39.     end   
  40.   mog55_update_phase4_step6  
  41.   end  
  42. #--------------------------------------------------------------------------
  43. # learn_skill
  44. #--------------------------------------------------------------------------  
  45.   def learn_skill(tr, skill_id)
  46.     unless tr.skill_learn?(skill_id)
  47.       if @skill.element_set.include?($data_system.elements.index(MOG::ELE_LEARN)) and
  48.         tr.class_name == MOG::CLASS_LEARN
  49.         tr.learn_skill(skill_id)
  50.         tr.damage = MOG::TEXT_LEARN
  51.         tr.damage_pop = true
  52.         Audio.se_play("Audio/SE/" + MOG::SE_LEARN, 100, 100) rescue nil   
  53.       end
  54.     return true
  55.     end
  56.   return false
  57.   end  
  58. end  
  59. $mog_rgss_Blue_Magic = true
复制代码
HI!!!
您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-4-29 11:23

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表