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

→‎What do we want?: Chest -> Cupboard
imported>Grundulum
imported>Grundulum
(→‎What do we want?: Chest -> Cupboard)
Line 42: Line 42:


===What do we want?===
===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 Chest: The chest will ask a riddle and only the right answer will open the chest. If the player provides the wrong answer, a trap will go off, hurting the player, and the chest 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.
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.


===Writing the script===
===Writing the script===
Anonymous user