- 注册时间
- 2010-8-3
- 最后登录
- 2013-3-2
③业余
- 积分
- 104
|
发表于 2010-8-3 16:16:59
|
显示全部楼层
- class Sprite_Battler < RPG::Sprite
-   alias gods_eyes_update update
-   def update
-     gods_eyes_update
-     if @battler != nil && @battler.is_a?(Game_Actor)
-       if @memory_kind == nil
-         @memory_kind = @battler.current_action.kind
-       end
-       if @memory_active == nil
-         @memory_active = false
-       end
-       if @memory_basic == nil
-         @memory_basic = @battler.current_action.basic
-       end
-       if @battler.current_action.kind != @memory_kind
-         @memory_kind = @battler.current_action.kind
-         case @battler.current_action.kind
-         when 1
-           self.bitmap = RPG::Cache.battler(@battler_name + "_特技", @battler_hue)
-         when 2
-           self.bitmap = RPG::Cache.battler(@battler_name + "_物品", @battler_hue)
-         end
-         if @battler.current_action.kind == 0
-           @memory_basic = @battler.current_action.basic
-           case @battler.current_action.basic
-           when 0
-             #p "fuck 0"a
-             self.bitmap = RPG::Cache.battler(@battler_name + "_攻击", @battler_hue)
-           when 1
-             self.bitmap = RPG::Cache.battler(@battler_name + "_防御", @battler_hue)
-           when 2
-             self.bitmap = RPG::Cache.battler(@battler_name + "_逃跑", @battler_hue)
-           end
-         end
-       end
-       if @battler.current_action.basic != @memory_basic
-         if @battler.current_action.kind == 0
-           @memory_basic = @battler.current_action.basic
-           case @battler.current_action.basic
-           when 0
-             #p "fuck 0"
-             self.bitmap = RPG::Cache.battler(@battler_name + "_攻击", @battler_hue)
-           when 1
-             self.bitmap = RPG::Cache.battler(@battler_name + "_防御", @battler_hue)
-           when 3
-             self.bitmap = RPG::Cache.battler(@battler_name + "_逃跑", @battler_hue)
-           end
-         end
-       end
-     end
-   end
- end
复制代码 使用方法:将此脚本插入到Main前面
在Battle准备如下图片 角色战斗图名称+_攻击
+_防御
+_逃跑
+_特技
+_物品
在心中默念三遍“谢谢”即可使用 |
|