jewelswey 发表于 2011-5-11 23:10

- -. 请问这段脚本问题在哪里。 (重新编辑)

本帖最后由 jewelswey 于 2011-5-12 18:02 编辑

添加script spell关联脚本,持续时间1秒。
脚本法术释放1秒结束后启用。定义finish为0,添加一件装备并穿上,输出一行字。
定义timer以秒变化,当timer大于等于60后定义finish为1,a为0.
当finish为1时若a为0卸下身上的装备然后定义a为1并输出一行字,当finish为1时若a为1,移除装备。
结束。
进游戏里放技能没反应- -。 问题在哪里?






scn HowlingSoulScript

ref me
short finish
short a
float timer
ref cuirass

begin scripteffectstart

set finish to 0
if finish == 0
      me.additemNS HowlingShadowCuirass 1
                if me.getisreference player == 1
                        me.equipitemNS HowlingShadowCuirass 1
                              message "Your Howling Soul has been Waken Up !"
                endif
      set timer to timer + getsecondspassed
      if timer >= 60
                set finish to 1
                set a to 0
      endif

endif


if finish == 1
      if a == 1
                me.removeitemNS HowlingShadowCuirass 1
      endif
      

      if a == 0
                me.unequipitemNS HowlingShadowCuirass 1
                message "Your seem to be Calm Down !"
                set a to 1
      endif
endif

end

jewelswey 发表于 2011-5-11 23:14

beginscripteffectstart 。 这句是怎么写出来的我也忘记了- - 。 无视掉就好

wudigongzi 发表于 2011-5-11 23:50

坐板凳说话

没看明白你想要 什么样的目的。

ME一般都是CS里 复制粘贴数据变更,OK   别人的成果也享受到了。THANK THEM

sunwentao 发表于 2011-5-12 11:41

回复 1# jewelswey


1. 对,是指upperbody,上下身都占的话return的objectid应该是一样的;

2. 不清楚,只知道是个变量;

3. 教程: http://cs.elderscrolls.com/constwiki/index.php/Main_Page

         OBSE: http://obse.silverlock.org/obse_command_doc.html

jewelswey 发表于 2011-5-12 12:23

回复 4# sunwentao


   嗯,非常感谢。    早上起来把改了下脚本发现还是调用不了。 看教程继续捣鼓- -

jewelswey 发表于 2011-5-12 18:07

- - 嗯。 继续求助。

newalbert 发表于 2011-5-13 18:45

1,首先确认你的法术是self或者area型的

2,ScriptEffectStart 块只会执行一次,所以18行以后的等于没写

3,如果效果帧数大于0,会每帧调用ScriptEffectUpdate块,你应该把18行后的放到这里

LZ貌似没搞懂这些begin开头的块的执行时机,建议回炉。。。

jewelswey 发表于 2011-5-13 19:00

回复 7# newalbert


   - - 恩。在回炉。   发了好久没人回,现在已经好了。
页: [1]
查看完整版本: - -. 请问这段脚本问题在哪里。 (重新编辑)