查看: 1947|回复: 2

[已经过期] 这里的能力判定的问题···

[复制链接]
梦石
0
星屑
9292
在线时间
2504 小时
注册时间
2011-5-20
回帖
14521

开拓者

发表于 2014-12-28 11:29:18 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
[pre lang="ruby" line="1"]Game_Actor.send :define_method, name do
    #taroxd_paramex(@level, actor_features, const)
    case name
    when :hitp
    taroxd_paramex(@add_hitp, actor_features, const)
    when :hitm
    taroxd_paramex(@add_hitm, actor_features, const)
    when :eavp
    taroxd_paramex(@add_evap, actor_features, const)
    when :evam
    taroxd_paramex(@add_evam, actor_features, const)
    when :abp
    taroxd_paramex(@add_abp, actor_features, const)
    when :abm
    taroxd_paramex(@add_abm, actor_features, const)
    when :minp
    taroxd_paramex(@add_minp, actor_features, const)
    when :minm
    taroxd_paramex(@add_minm, actor_features, const)
    when :maxp
    taroxd_paramex(@add_maxp, actor_features, const)
    when :maxm
    taroxd_paramex(@add_maxm, actor_features, const)
    when :vamp
    taroxd_paramex(@add_vamp, actor_features, const)
    when :vamm
    taroxd_paramex(@add_vamm, actor_features, const)
    when :vatp
    taroxd_paramex(@add_vatp, actor_features, const)
    when :vatm
    taroxd_paramex(@add_vatm, actor_features, const)
    when :rebp
    taroxd_paramex(@add_rebp, actor_features, const)
    when :rebm
    taroxd_paramex(@add_rebm, actor_features, const)
    when :retp
    taroxd_paramex(@add_retp, actor_features, const)
    when :retm
    taroxd_paramex(@add_retm, actor_features, const)
    when :sucp
    taroxd_paramex(@add_sucp, actor_features, const)
    when :sucm
    taroxd_paramex(@add_sucm, actor_features, const)
    when :sutp
    taroxd_paramex(@add_sutp, actor_features, const)
    when :sutm
    taroxd_paramex(@add_sutm, actor_features, const)
    when :feep
    taroxd_paramex(@add_feep, actor_features, const)
    when :feem
    taroxd_paramex(@add_feem, actor_features, const)
    when :fetp
    taroxd_paramex(@add_fetp, actor_features, const)
    when :fetm
    taroxd_paramex(@add_fetm, actor_features, const)
    when :crip
    taroxd_paramex(@add_crip, actor_features, const)
    when :crim
    taroxd_paramex(@add_crim, actor_features, const)
    when :cevp
    taroxd_paramex(@add_cevp, actor_features, const)
    when :cevm
    taroxd_paramex(@add_cevm, actor_features, const)
    when :crpp
    taroxd_paramex(@add_crpp, actor_features, const)
    when :crpm
    taroxd_paramex(@add_crpm, actor_features, const)
    end
end[/pre]
@VIPArcher @喵呜喵5
表示鼓捣了个把小时后用条件分歧解决掉了角色部分但是还是有问题···能力太多了可能会写错用@add_{name}来代替@add_crpp之类的也会出错···
[img]http://service.t.sina.com.cn/widget/qmd/5339802982/c02e16bd/7.png

…あたしは天

梦石
0
星屑
2308
在线时间
4033 小时
注册时间
2010-10-4
回帖
10548

开拓者贵宾

发表于 2014-12-28 11:34:38 | 显示全部楼层
不带这么毁人家的脚本的
回复

使用道具 举报

梦石
0
星屑
9292
在线时间
2504 小时
注册时间
2011-5-20
回帖
14521

开拓者

 楼主| 发表于 2014-12-28 11:38:12 | 显示全部楼层
taroxd 发表于 2014-12-27 18:34
不带这么毁人家的脚本的

因为能力太多了嘛···VIP之前给的一个默认能力的脚本让我想到了可以直接在最后的属性设定上改
[img]http://service.t.sina.com.cn/widget/qmd/5339802982/c02e16bd/7.png
回复

使用道具 举报

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

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部