赞 | 0 |
VIP | 12 |
好人卡 | 2 |
积分 | 6 |
经验 | 14000 |
最后登录 | 2024-2-13 |
在线时间 | 464 小时 |
Lv2.观梦者
- 梦石
- 0
- 星屑
- 552
- 在线时间
- 464 小时
- 注册时间
- 2009-10-11
- 帖子
- 407
|
j433463 发表于 2013-3-20 01:02 ![]()
呃?原本的?如果您要改 6.times 的數字位置,請到 Window_Base 的 def draw_actor_param 去改,
其實我在 ...
我又把你給我的寫法運行,結果常常出現小數點出現6.33333等等的狀況,
參考其他腳本的寫法自己弄弄 改良下變成這樣寫法^_^ .舉迴避率做例子!!
change_color(system_color)
draw_text(x + 95, y + line_height * 2, 120, line_height, "物攻迴避")
change_color(normal_color)
draw_text(x + 155, y + line_height * 2, 36, line_height, sprintf("%.1f", @actor.xparam(1) * 100).to_i, 2)
其實 sprintf("%.1f", @actor.xparam(1) * 100).to_f 好像也可以,只是四捨五入數值變不精準了。
|
|