Difference between revisions of "Talk:Scripting Tutorial: My Second Script"
Talk:Scripting Tutorial: My Second Script (edit)
Revision as of 16:45, 30 May 2006
, 16:45, 30 May 2006it isn't supposed to open
imported>Jeepcreep |
imported>TheImperialDragon (it isn't supposed to open) |
||
Line 11: | Line 11: | ||
::I've tested it and it only works that way anyhow. The first version simply does not produce the desired result: setting the controlvar to -1 after a wrong answer won't get you in the If-block of the OnActive-block again (as it tested for "controlvar == 0"), resulting in the cupboard actually not responding at all, you had two chances: either give the correct answer and open it and be happy or give the wrong answer, be punished and never be able to open it anyway.... --[[User:Jeepcreep|Jeepcreep]] 16:34, 30 May 2006 (EDT) | ::I've tested it and it only works that way anyhow. The first version simply does not produce the desired result: setting the controlvar to -1 after a wrong answer won't get you in the If-block of the OnActive-block again (as it tested for "controlvar == 0"), resulting in the cupboard actually not responding at all, you had two chances: either give the correct answer and open it and be happy or give the wrong answer, be punished and never be able to open it anyway.... --[[User:Jeepcreep|Jeepcreep]] 16:34, 30 May 2006 (EDT) | ||
:::Yeah, but isn't that the way it's supposed to work? I copied this from the article itself. | |||
===What do we want?=== | |||
"Before we really start writing our tutorial script we should decide what we want it to do! For this tutorial we are going to make a '''Riddle Cupboard: The cupboard will ask a riddle and only the right answer will open the cupboard. If the player provides the wrong answer, a trap will go off, hurting the player, and the cupboard can't be opened.''' That’s a fairly complex undertaking, but we will take it step by step and see that it's not so bad after all." | |||
:::So I assume after one wrong answer, it is supposed to be sealed forever, unless the player reloads a save game. [[User:TheImperialDragon|TheImperialDragon]] 16:45, 30 May 2006 (EDT) |