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

Project1

 找回密码
 注册会员
搜索
12
返回列表 发新帖
楼主: dbshy
打印 上一主题 下一主题

新手求教 关于魔法的问题

 关闭 [复制链接]
头像被屏蔽

Lv1.梦旅人 (禁止发言)

梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-3-29
帖子
826
11
发表于 2008-6-30 06:21:30 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复 支持 反对

使用道具 举报

Lv1.梦旅人

辉瑞中国首席研究员<

梦石
0
星屑
50
在线时间
142 小时
注册时间
2008-1-18
帖子
2129
12
 楼主| 发表于 2008-6-30 23:41:24 | 只看该作者
3535,你在哪
回复 支持 反对

使用道具 举报

头像被屏蔽

Lv1.梦旅人 (禁止发言)

梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-3-29
帖子
826
13
发表于 2008-7-1 01:58:19 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复 支持 反对

使用道具 举报

Lv1.梦旅人

辉瑞中国首席研究员<

梦石
0
星屑
50
在线时间
142 小时
注册时间
2008-1-18
帖子
2129
14
 楼主| 发表于 2008-7-1 06:33:01 | 只看该作者
再次召唤3535,等着你的好方法{/hx}

不行的话,还是用我的废柴方法{/hx}
来6r就是等某位仁兄的巨坑

褴褛着身行无端,囊中羞涩空心酸。
平生几无得意事,倒塔泡面宅寝室。
惟羡隔壁高帅富,雨露春风月夜声。
青丝无处觅其踪,只有硬盘苍井空。
莫云男儿空悲愁,鸿鹄岂不天际游。
坐断天下执鹿首,千百金帛万兜鍪。
夜深忽梦某年月,再见女神欲语迟。
吊丝终有逆袭日,木耳再无回粉时。
回复 支持 反对

使用道具 举报

Lv1.梦旅人

辉瑞中国首席研究员<

梦石
0
星屑
50
在线时间
142 小时
注册时间
2008-1-18
帖子
2129
15
 楼主| 发表于 2008-7-2 20:53:16 | 只看该作者
召唤高手
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
2 小时
注册时间
2008-5-2
帖子
140
16
发表于 2008-7-3 19:44:14 | 只看该作者
最后一次自顶.....
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
142
在线时间
264 小时
注册时间
2006-11-22
帖子
1057
17
发表于 2008-7-4 22:40:13 | 只看该作者
OK
  1. module Question
  2.   
  3.   NEWSCOPESKILLID = [1,2,3] # 用此效果的技能
  4.   
  5. end

  6. class Scene_Battle
  7.   #--------------------------------------------------------------------------
  8.   # ● 产生技能行动结果
  9.   #--------------------------------------------------------------------------
  10.   def make_skill_action_result
  11.     @skill = $data_skills[@active_battler.current_action.skill_id]
  12.     unless @active_battler.current_action.forcing
  13.       unless @active_battler.skill_can_use?(@skill.id)
  14.         $game_temp.forcing_battler = nil
  15.         @phase4_step = 1
  16.         return
  17.       end
  18.     end
  19.     @active_battler.sp -= @skill.sp_cost
  20.     @status_window.refresh
  21.     @help_window.set_text(@skill.name, 1)
  22.     @animation1_id = @skill.animation1_id
  23.     @animation2_id = @skill.animation2_id
  24.     @common_event_id = @skill.common_event_id
  25.     # 设定对像方战斗者
  26.     if Question::NEWSCOPESKILLID.include?(@skill.id)
  27.       set_target_battlers(8)
  28.     else
  29.       set_target_battlers(@skill.scope)
  30.     end
  31.     for target in @target_battlers
  32.       target.skill_effect(@active_battler, @skill)
  33.     end
  34.   end
  35.   #--------------------------------------------------------------------------
  36.   # ● 设定物品或技能目标方的战斗者
  37.   #     scope : 技能或者是物品的范围
  38.   #--------------------------------------------------------------------------
  39.   alias set_target set_target_battlers
  40.   def set_target_battlers(scope)
  41.     set_target(scope)
  42.     if @active_battler.is_a?(Game_Actor)
  43.       if scope == 8
  44.         for actor in @active_battler.current_action.target_index
  45.           @target_battlers.push($game_party.smooth_target_actor(actor))
  46.         end
  47.       end
  48.     end
  49.   end
  50.   #--------------------------------------------------------------------------
  51.   # ● 更新画面 (角色命令回合 : 选择技能)
  52.   #--------------------------------------------------------------------------
  53.   def update_phase3_skill_select
  54.     @skill_window.visible = true
  55.     @skill_window.update
  56.     if Input.trigger?(Input::B)
  57.       $game_system.se_play($data_system.cancel_se)
  58.       end_skill_select
  59.       return
  60.     end
  61.     if Input.trigger?(Input::C)
  62.       @skill = @skill_window.skill
  63.       if @skill == nil or not @active_battler.skill_can_use?(@skill.id)
  64.         $game_system.se_play($data_system.buzzer_se)
  65.         return
  66.       end
  67.       $game_system.se_play($data_system.decision_se)
  68.       @active_battler.current_action.skill_id = @skill.id
  69.       @skill_window.visible = false
  70.       if @skill.scope == 1
  71.         start_enemy_select
  72.         # 改
  73.       elsif @skill.scope == 3 or @skill.scope == 5 or Question::NEWSCOPESKILLID.include?(@skill.id)
  74.         start_actor_select
  75.       else
  76.         end_skill_select
  77.         phase3_next_actor
  78.       end
  79.       return
  80.     end
  81.   end
  82.   #--------------------------------------------------------------------------
  83.   # ● 开始选择敌人
  84.   #--------------------------------------------------------------------------
  85.   alias start_actor start_actor_select
  86.   def start_actor_select(yes=false)
  87.     @yes = yes
  88.     start_actor
  89.   end
  90.   #--------------------------------------------------------------------------
  91.   # ● 更新画面 (角色指令回合 : 选择角色)
  92.   #--------------------------------------------------------------------------
  93.   def update_phase3_actor_select
  94.     @actor_arrow.update
  95.     if Input.trigger?(Input::B)
  96.       $game_system.se_play($data_system.cancel_se)
  97.       end_actor_select
  98.       return
  99.     end
  100.     if Input.trigger?(Input::C)
  101.       $game_system.se_play($data_system.decision_se)
  102.       @active_battler.current_action.target_index = @actor_arrow.index
  103.       # 改
  104.       @skill = @skill_window.skill
  105.       if Question::NEWSCOPESKILLID.include?(@skill.id)
  106.         if @yes
  107.           @temptarget_index.push(@actor_arrow.index)
  108.           @active_battler.current_action.target_index = @temptarget_index
  109.         else
  110.           @temptarget_index = [@actor_arrow.index]
  111.           @actor_arrow.dispose
  112.           start_actor_select(true)
  113.           return
  114.         end
  115.       end
  116.       end_actor_select
  117.       if @skill_window != nil
  118.         end_skill_select
  119.       end
  120.       if @item_window != nil
  121.         end_item_select
  122.       end
  123.       phase3_next_actor
  124.     end
  125.   end
  126. end
复制代码

系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~
回复 支持 反对

使用道具 举报

头像被屏蔽

Lv1.梦旅人 (禁止发言)

梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-3-29
帖子
826
18
发表于 2008-7-4 23:16:22 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复 支持 反对

使用道具 举报

Lv1.梦旅人

辉瑞中国首席研究员<

梦石
0
星屑
50
在线时间
142 小时
注册时间
2008-1-18
帖子
2129
19
 楼主| 发表于 2008-7-5 00:24:33 | 只看该作者
扼,没达到我想要的效果,我还是用我的废柴方法 = =bb

来6r就是等某位仁兄的巨坑

褴褛着身行无端,囊中羞涩空心酸。
平生几无得意事,倒塔泡面宅寝室。
惟羡隔壁高帅富,雨露春风月夜声。
青丝无处觅其踪,只有硬盘苍井空。
莫云男儿空悲愁,鸿鹄岂不天际游。
坐断天下执鹿首,千百金帛万兜鍪。
夜深忽梦某年月,再见女神欲语迟。
吊丝终有逆袭日,木耳再无回粉时。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

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

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

GMT+8, 2025-8-8 11:10

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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