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

Project1

 找回密码
 注册会员
搜索
查看: 316|回复: 3
打印 上一主题 下一主题

[有事请教] 求大佬们帮忙

[复制链接]

Lv1.梦旅人

梦石
0
星屑
110
在线时间
16 小时
注册时间
2023-9-26
帖子
1
跳转到指定楼层
1
发表于 2024-1-23 10:17:09 | 显示全部楼层 回帖奖励 |倒序浏览 |阅读模式

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

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

x
在论坛里找到大佬20年的一个帖子,里面有一个天赋脚本。
我下下来并用到游戏里,但是显示
line 304:nomethoderror occurred.undefined method‘[]’for nil:nilclass
的错误。
def update_help_text
    ch = contents.height
    cw = contents.width
    skill_name = cursor_at[1] == 1 ? $data_skills[cursor_at[2]].name : $data_states[cursor_at[1]].name
    draw_text(0,ch-70,cw,line_height,"学习新技能")
    draw_text(0,ch-70,cw,line_height,skill_name,2)
    draw_text(0,ch-40,cw,line_height,"消耗技能点")
    draw_text(0,ch-40,cw,line_height,@skills4actor[@cursor_index][4],2)
  end
求教大佬们怎么解决这个错误....
您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

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

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

GMT+8, 2024-5-13 22:04

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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