3DMGAME 3DM首页 新闻中心 前瞻 | 评测 游戏库 热门 | 最新 攻略中心 攻略 | 秘籍 下载中心 游戏 | 汉化 购买正版 论坛

注册 登录

QQ登录

只需一步,快速开始

查看: 4940|回复: 9
打印 上一主题 下一主题

[求助] 这样一段GECK里的设置热键的Script,为什么总是保存不了?是有错误,还是权限问题,还是别的问题?

  [复制链接]

78

主题

603

帖子

753

积分

超级玩家

Rank: 5Rank: 5

贡献度
78
金元
4413
积分
753
精华
0
注册时间
2009-1-14
跳转到指定楼层
主题
发表于 2011-2-16 23:19 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
这样一段GECK里的设置热键的Script,为什么总是保存不了?是有错误,还是权限问题,还是别的问题?

————————————————————————————————————————————————————————

scn GhostNightvision

short DoOnce
short buttonToggle
short buttonPressed

begin onEquip
set DoOnce to 1
end

begin onUnEquip
player.RemoveSpell CatNightVision
set buttonPressed to 0
set DoOnce to 0
end

Begin GameMode
if DoOnce == 1
         if IsKeyPressed 48 != buttonToggle
              set buttonToggle to IsKeyPressed 48
                   if buttonToggle && buttonPressed == 0 ; Button pressed
                      player.AddSpellNS CatNightVision
                        set buttonPressed to 1
                 elseif buttonToggle && buttonPressed == 1 ; Button released
                   player.RemoveSpell CatNightVision
                 set buttonPressed to 0
          endif
      endif
   endif
End

——————————————————————————————————————————————————————————————————

高手帮帮我啊,谢谢!(实现的功能是设置快捷键N,用于夜视镜的开关,CatNightVision是我定义的夜视效果。)(N网上的夜视镜我不喜欢,想自己弄)
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|3DMGAME ( 京ICP备14006952号-1  沪公网安备 31011202006753号

GMT+8, 2026-4-10 21:15 , Processed in 0.515948 second(s), 16 queries , Memcached On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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