资深玩家
有事微信联系,微信号:simon9122
![Rank: 9](static/image/common/star_level3.gif) ![Rank: 9](static/image/common/star_level3.gif) ![Rank: 9](static/image/common/star_level1.gif)
- 贡献度
- 1982
- 金元
- 51847
- 积分
- 13133
- 精华
- 2
- 注册时间
- 2009-1-10
![3DMer](static/image/common/medal2.gif)
![QQ](static//image/common/qq_big.gif)
|
本帖最后由 sumizai1989 于 2011-8-27 14:55 编辑
scn lynzxcv
short lynzxcv
short ButtonOther
Begin MenuMode
if lynzxcv == 1 ; 至于怎么触发这个条件, 就由你自己来操作了, 菜单的脚本就大概是这样
set ButtonOther to GetButtonPressed
if ButtonOther == -1
Return
elseif ButtonOther == 0
Player.placeatme guard1 1 50
player.AddItem lynRadio 1 1
Return
elseif ButtonOther == 1
Player.placeatme guard2 1 50
player.AddItem lynRadio 1 1
Return
elseif ButtonOther == 2
Player.placeatme guard3 1 50
player.AddItem lynRadio 1 1
Return
elseif ButtonOther == 3
Player.placeatme guard4 1 50
player.AddItem lynRadio 1 1
Return
elseif zxcv == 4
removeme
endif
endif
End
1-4加Return不是必须的, 这加上不过是为了只让按下按钮后的命令运行一次, 而不会无限的运行, 主要不知道你整个菜单是想怎么写, 所以就加个Rutrun上去先
·············································
ps:
if ButtonOther == -1
Return
这只是类似一个检查的惯例写法而已, 不能在这加任何其它的指令(如你帖子那加的additem这都是错误的)
·············································
有很多种Begin的, 你在GECK里看原版脚本就能找到不少, 或者去GECK得网站那搜索Begin |
|