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

Project1

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

[已经解决] FUKI对话角色名读取问题

[复制链接]

Lv2.观梦者 (版主)

迷途知返,恍如隔世

梦石
0
星屑
488
在线时间
1355 小时
注册时间
2011-2-17
帖子
1216

开拓者

跳转到指定楼层
1
发表于 2013-7-23 20:08:32 | 显示全部楼层 回帖奖励 |倒序浏览 |阅读模式

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

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

x
我用的fuki脚本可以设定主角名

“Player_Name = 'pn' # 代表主角名字的字符”

我的初始角色有8个选择。
然后我想让对话的时候不论是那个角色名字都直接用Pn来显示,
就在后面加了
(99变量是所选人物的序号,每个角色都是不同人物的)
“       if name_text == Player_Name
          if $game_variables[99] =1
          name_text = $game_actors[2].name
          end
          if $game_variables[99] =2
          name_text = $game_actors[3].name
        end
          if $game_variables[99] =3
          name_text = $game_actors[4].name
        end
          if $game_variables[99] =4
          name_text = $game_actors[5].name
        end
          if $game_variables[99] =5
          name_text = $game_actors[6].name
        end
          if $game_variables[99] =6
          name_text = $game_actors[7].name
        end
          if $game_variables[99] =7
          name_text = $game_actors[8].name
        end
          if $game_variables[99] =8
          name_text = $game_actors[9].name
          end
        end

带入后,发现在游戏环境中,无论这个变量是多少,输pn进去都是9号角色的名字。
球大神解答,今天第二问!
您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

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

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

GMT+8, 2024-5-16 16:20

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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