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

Project1

 找回密码
 注册会员
搜索

新人。。有2个问题问下大神们。。。。。来大神啊。。。

查看数: 2736 | 评论数: 16 | 收藏 0
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2013-8-20 20:31

正文摘要:

求大神帮帮忙啊{:2_270:}

回复

欧买歌 发表于 2013-8-21 13:24:05
脚本是什么意思?
恐惧剑刃 发表于 2013-8-21 13:21:28
好吧~!替换相应内容(这段脚本是默认的攻击、物防和魔防)
  1.     if @new_atk != nil
  2.       self.contents.font.color = system_color
  3.       self.contents.draw_text(160, 64, 40, 32, "→", 1)
  4.       if @new_atk > @actor.atk
  5.       self.contents.font.color = Color.new(120, 255, 120, 255)
  6.       elsif @new_atk < @actor.atk
  7.       self.contents.font.color = Color.new(255, 120, 120, 255)
  8.       elsif @new_atk = @actor.atk
  9.       self.contents.font.color = normal_color
  10.       end
  11.       self.contents.draw_text(200, 64, 36, 32, @new_atk.to_s, 2)
  12.     end
  13.     if @new_pdef != nil
  14.       self.contents.font.color = system_color
  15.       self.contents.draw_text(160, 96, 40, 32, "→", 1)
  16.       if @new_pdef > @actor.pdef
  17.       self.contents.font.color = Color.new(120, 255, 120, 255)
  18.       elsif @new_pdef < @actor.pdef
  19.       self.contents.font.color = Color.new(255, 120, 120, 255)
  20.       elsif @new_pdef = @actor.pdef
  21.       self.contents.font.color = normal_color
  22.       end
  23.       self.contents.draw_text(200, 96, 36, 32, @new_pdef.to_s, 2)
  24.     end
  25.     if @new_mdef != nil
  26.       self.contents.font.color = system_color
  27.       self.contents.draw_text(160, 128, 40, 32, "→", 1)
  28.       if @new_mdef > @actor.mdef
  29.       self.contents.font.color = Color.new(120, 255, 120, 255)
  30.       elsif @new_mdef < @actor.mdef
  31.       self.contents.font.color = Color.new(255, 120, 120, 255)
  32.       elsif @new_mdef = @actor.mdef
  33.       self.contents.font.color = normal_color
  34.       end
  35.       self.contents.draw_text(200, 128, 36, 32, @new_mdef.to_s, 2)
  36.     end
  37.   end
复制代码

点评

恩 这把行了,,,,,,好厉害 。 有没有qq啊 。我以后跟你学好不好。。。  发表于 2013-8-21 13:29

评分

参与人数 1星屑 +70 梦石 +1 收起 理由
弗雷德 + 70 + 1 你是一个好人

查看全部评分

j1747532399l 发表于 2013-8-21 12:51:31
不明觉厉,,难道不是   rmxp提问区  有事请教  吗?
不知道哪里违规了   
恐惧剑刃 发表于 2013-8-21 12:50:01
这。。。举一反三啊,都一样的。。
另外把>@actor.atk改为大于等于会好些,我怕没有等于会出错

点评

怎么都变成绿色的了,,,, 师傅。。。  发表于 2013-8-21 13:06
这就是脚本中的大于等于>=,小于等于<=  发表于 2013-8-21 13:03
长见识了 、、  发表于 2013-8-21 13:02
是不是这样 >= 还是 => ???  发表于 2013-8-21 13:02
>=  发表于 2013-8-21 13:01
恐惧剑刃 发表于 2013-8-21 12:34:00
  1.     if @new_atk != nil
  2.       self.contents.font.color = system_color
  3.       self.contents.draw_text(160, 64, 40, 32, "→", 1)
  4.       if @new_atk > @actor.atk
  5.       self.contents.font.color = Color.new(120, 255, 120, 255)
  6.       else
  7.       self.contents.font.color = Color.new(255, 120, 120, 255)
  8.       end
  9.       self.contents.draw_text(200, 64, 36, 32, @new_atk.to_s, 2)
  10.     end
复制代码

点评

下面还是出问题了,,,,好难的感觉  发表于 2013-8-21 12:47
真这样了。。。。。大神 ,好厉害啊 收不收 徒弟啊 ,,,,。。。。。。。。。。。。。。。  发表于 2013-8-21 12:39
在Window_EquipLeft替换相应东西看看吧~!  发表于 2013-8-21 12:34
拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

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

GMT+8, 2025-6-27 07:13

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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