diff --git a/Koramu/Koramu.vcxproj b/Koramu/Koramu.vcxproj index b9eef3e..d6607ac 100644 --- a/Koramu/Koramu.vcxproj +++ b/Koramu/Koramu.vcxproj @@ -308,6 +308,8 @@ + + diff --git a/Koramu/Koramu.vcxproj.filters b/Koramu/Koramu.vcxproj.filters index a0f694c..5c0abf0 100644 --- a/Koramu/Koramu.vcxproj.filters +++ b/Koramu/Koramu.vcxproj.filters @@ -120,6 +120,9 @@ {3a6c60b8-2f92-4942-ac03-53c15cae6a8a} + + {066a35a5-68c4-4a1a-9cbe-90fc3d172797} + @@ -588,5 +591,11 @@ Lua Skripts\Objects\NPCs + + Lua Skripts\Quests\prologue + + + Lua Skripts\Quests\prologue + \ No newline at end of file diff --git a/Koramu/PlayState.cpp b/Koramu/PlayState.cpp index cf5bf4e..4cf8408 100644 --- a/Koramu/PlayState.cpp +++ b/Koramu/PlayState.cpp @@ -79,7 +79,7 @@ void FiniteStateMachine::PlayState::onEnter() i->onCreate(); } - // Die Funktion onGameStart der Quest wird aufgerufen (es wird nicht empfohlen onGameStart tatsächlich für eine QUest zu implementieren) + // Die Funktion onGameStart der Quest wird aufgerufen (es wird nicht empfohlen onGameStart tatsächlich für eine Quest zu implementieren) TheScriptManager::Instance()->getScriptById(TheGame::Instance()->getStory()->getPartQuest()).callFunction("onGameStart"); TheGame::Instance()->logStandard() << "Der 'PlayState' wurde betreten." << std::endl << std::endl; diff --git a/Koramu/Scripts/Quests/prologue/prologue.lua b/Koramu/Scripts/Quests/prologue/prologue.lua new file mode 100644 index 0000000..5b980f5 --- /dev/null +++ b/Koramu/Scripts/Quests/prologue/prologue.lua @@ -0,0 +1,25 @@ +-- prologue.lua + +--[[ + prologue ist die allererste Quest im Spiel. + Sie endet sobald der Spieler sich aus seinem Haus (ownHouse) begibt. +]]-- + +local prologue = {} + +function prologue:onStart () + TheGame:addNote ("It has been two days since I have left London in order to visit my uncle's estate in X. He died at young age - for unknown reasons - having left no heir but me to take") + TheGame:addNote ("care of his properties. However, I don't consider the possibility of leading a peaceful and quiet life at my uncle's estate worth giving up my occupation as a detective for Scotland") + TheGame:addNote ("Yard. For the small, sleepy town his villa is located in, is way too quiet for my taste. Since my arival at X in the morning I have not met a single person. Even more") + TheGame:addNote ("disturbing is the fact, that in the very moment my coach passed the first building of this town, my watch stopped. Although I am not the superstitious kind of man,") + TheGame:addNote ("I still feel that behind those closed curtains and locked doos something is going terribly wrong.") +-- Das Notizbuch wird geöffnet + TheGame:openNotebook () +end + + +function prologue:onDone () + +end + +return prologue \ No newline at end of file diff --git a/Koramu/Scripts/Quests/prologue/startGame.lua b/Koramu/Scripts/Quests/prologue/startGame.lua new file mode 100644 index 0000000..c58782d --- /dev/null +++ b/Koramu/Scripts/Quests/prologue/startGame.lua @@ -0,0 +1,15 @@ +-- startGame.lua +--[[ + Diese Quest ist direkt abgeschlossen, damit + onStart der ersten Quest aufgerufen werden kann. + Es wird lediglich die Map des eigenen hauses aufgestapelt. +]]-- + +local startGame = {} + +function startGame:onGameStart () + TheGame:enterMap ("ownHouse") + TheGame:nextQuest () +end + +return startGame \ No newline at end of file diff --git a/Koramu/xmlFiles/quests.xml b/Koramu/xmlFiles/quests.xml index 5414566..b873233 100644 --- a/Koramu/xmlFiles/quests.xml +++ b/Koramu/xmlFiles/quests.xml @@ -2,6 +2,10 @@ - + + + + + \ No newline at end of file diff --git a/Koramu/xmlFiles/save.xml b/Koramu/xmlFiles/save.xml index f30a0e0..4759be8 100644 --- a/Koramu/xmlFiles/save.xml +++ b/Koramu/xmlFiles/save.xml @@ -1,6 +1,6 @@ - + diff --git a/Koramu/xmlFiles/scripts.xml b/Koramu/xmlFiles/scripts.xml index 3d1a81b..7e5b9af 100644 --- a/Koramu/xmlFiles/scripts.xml +++ b/Koramu/xmlFiles/scripts.xml @@ -28,6 +28,8 @@ +