This wiki is a copy of the original Oblivion CS wiki created and maintained by the UESP.net. See CSwiki:Copy Notice for more info.

Difference between revisions of "Talk:Scripting Tutorial: My Second Script"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Jeepcreep
 
imported>Jeepcreep
Line 3: Line 3:
2nd) in case of a a wrong answer the controlvar has to be reset to "0" not to "-1". I already corrected it in your last code-example.
2nd) in case of a a wrong answer the controlvar has to be reset to "0" not to "-1". I already corrected it in your last code-example.
--[[User:Jeepcreep|Jeepcreep]] 15:32, 30 May 2006 (EDT)
--[[User:Jeepcreep|Jeepcreep]] 15:32, 30 May 2006 (EDT)
for the sake of consistency: changed it in the previous code snippets as well.
N.B.: Setting the controlvar to "-1" prevents to OnActivate from ever succeeding. The if-condition "==" could've been changed to "<" but then you're explanation regarding the double-equal sign would've been inconsistent. Hope this is ok. --[[User:Jeepcreep|Jeepcreep]] 15:40, 30 May 2006 (EDT)

Revision as of 15:40, 30 May 2006

1st) thanks for this great tutorial! Really well made!

2nd) in case of a a wrong answer the controlvar has to be reset to "0" not to "-1". I already corrected it in your last code-example. --Jeepcreep 15:32, 30 May 2006 (EDT)

for the sake of consistency: changed it in the previous code snippets as well. N.B.: Setting the controlvar to "-1" prevents to OnActivate from ever succeeding. The if-condition "==" could've been changed to "<" but then you're explanation regarding the double-equal sign would've been inconsistent. Hope this is ok. --Jeepcreep 15:40, 30 May 2006 (EDT)