aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/script_v2.cpp
AgeCommit message (Collapse)Author
2008-03-17remove unnecessary code duplicationFlorian Kagerer
svn-id: r31163
2008-03-17- implement debugger commands: gamespeed and pass_codesFlorian Kagerer
- implement opcode 151: meanWhileScene() - fix dragon flight scene: this is still totally messed up, but at least the screen doesn't stay blank any more svn-id: r31152
2008-03-16Changed Kyra2 script debug printfs to be consistent with Kyra1 ones.Johannes Schickel
svn-id: r31150
2008-03-16- implemented skip flag handling in wsa related opcodesJohannes Schickel
- implemented skip flag handling in o2_isVoicePlaying - fixed skip flag handling when making the cauldron appear. svn-id: r31149
2008-03-16Implemented opcode 16: o2_soundFadeOutJohannes Schickel
svn-id: r31146
2008-03-16Implemented opcode 34: o2_removeItemSlotFromInventoryJohannes Schickel
svn-id: r31145
2008-03-16Implemented opcodes:Johannes Schickel
- 15: o2_customCharacterChat - 18: o2_restoreTalkTextMessageBkgd - 94: o2_setCauldronState - 154: o2_setupSceneAnimation svn-id: r31144
2008-03-16Moved KyraEngine_v2::setupOpcodeTable from kyra_v2.cpp to script_v2.cppJohannes Schickel
svn-id: r31141
2008-03-16Implemented opcode 30: o2_addItemToCurSceneJohannes Schickel
svn-id: r31140
2008-03-16- Impelemented opcode 155: o2_stopSceneAnimationJohannes Schickel
- fixed crash while switching chapters svn-id: r31139
2008-03-16- add opcode 146 - resetInputColorCode()Florian Kagerer
- add updateWaterFlasks() - some fixes for mouse pointer positioning in sjis mode - bug fix for tim player svn-id: r31136
2008-03-15Fixed warning about unused variable.Torbjörn Andersson
svn-id: r31135
2008-03-15Implemented opcodes:Johannes Schickel
- 27: o2_displayWsaSequence - 99: o2_setDrawNoShapeFlag - 129: o2_chapterChange - 159: o2_processPaletteIndex svn-id: r31133
2008-03-15- some more opcodes for wsa and tim sequencesFlorian Kagerer
- adding some code to inputSceneChange svn-id: r31132
2008-03-15Implemented opcodes:Johannes Schickel
- 36: o2_removeItemFromInventory - 64: o2_disableAnimObject - 65: o2_enableAnimObject - 101: o2_showLetter - 115: o2_setSceneAnimPosAndUpdate svn-id: r31131
2008-03-15- implement opcode 127 (entering the color code for the skull in the rat ↵Florian Kagerer
cave now works) - minor bug fix for mouse cursor (which sometimes would show when it shouldn't) svn-id: r31129
2008-03-15Fixed bug in o2_countItemInInventory.Johannes Schickel
svn-id: r31126
2008-03-15Implement opcodes:Johannes Schickel
- 7: o2_getCharacterScene - 54: o2_delaySecs - 103: o2_fillRect svn-id: r31125
2008-03-09- implemented cauldron handling for HoF (needs some more testing though)Johannes Schickel
- fixed bug in updateCharFacing - added 'give' command to HoF debugger, which allows setting the hand item to a specified item svn-id: r31087
2008-02-22palette bug fix (inventory turned blue when leaving the scene after eating ↵Florian Kagerer
the mushroom) svn-id: r30915
2008-02-22two more opcodes (Zanthia's random chats and mushroom drug effects) and some ↵Florian Kagerer
cleanup svn-id: r30914
2008-02-18the script countdown needs to be divided by _ticklengthFlorian Kagerer
svn-id: r30904
2008-02-18some more opcodes (the fly tree is now operational) and some bug fixesFlorian Kagerer
svn-id: r30903
2008-02-17scripting bug fix (npc scene startup scripts were executed twice)Florian Kagerer
svn-id: r30899
2008-02-17committing patch 1891492 : dialogue (dlg/tim) support for HoFFlorian Kagerer
- talking to NPCs is now possible. - Zanthia's talks when entering a new scene for the first time now work - using items on Zanthia is now possible. svn-id: r30886
2008-01-28Commit slightly modified patch #1880670 "KYRA: Hof: Zanthia chat fix for ↵Johannes Schickel
towns and floppy versions". svn-id: r30694
2008-01-27Removed trailing spaces.Jordi Vilalta Prat
svn-id: r30664
2008-01-27Fix for some problems introduced (like wrong text display) with last commit.Johannes Schickel
svn-id: r30654
2007-12-24Cleanup(/formatting).Johannes Schickel
svn-id: r29983
2007-11-13- implemented opcodes:Johannes Schickel
-> o2_setHiddenItemsEntry 147 -> o2_getHiddenItemsEntry 148 -> o2t_fadeScenePal 3 - added o2t_playSoundEffect to the temporary opcode list svn-id: r29494
2007-11-12- Implemented opcodes:Johannes Schickel
-> o2_removeHandItem 43 -> o2_makeBookOrCauldronAppear 42 - Implemented inventory WSA functionality svn-id: r29485
2007-10-14TIM file loading/unloading for HoFOystein Eftevaag
svn-id: r29217
2007-10-13HoF:Johannes Schickel
- implemented opcodes -> o2_checkForItem 32 -> o2_countItemInInventory 37 -> o2_setMousePos 47 -> o2_countItemInstances 136 svn-id: r29211
2007-10-13HoF:Johannes Schickel
- implemented opcode -> o2_setCharacterPos 1 svn-id: r29210
2007-10-13Forgot to rename a variableOystein Eftevaag
svn-id: r29209
2007-10-13Implemented the o2_setCharacterAnimFrame opcode and made sure o2_delay does ↵Oystein Eftevaag
game updates during the delay svn-id: r29208
2007-10-13- moved some voice functionallity from KyraEngine_v1 to KyraEngineJohannes Schickel
HoF: - added voice support - implemented opcodes -> o2_setVocHigh 167 -> o2_getVocHigh 168 -> o2_isVoiceEnabled 170 -> o2_isVoicePlaying 171 -> o2_stopVoicePlaying 172 -> o2_getGameLanguage 173 svn-id: r29201
2007-10-12HoF:Johannes Schickel
- Subclassed TextDisplayer for use with Kyra2 - Implemented opcodes: -> o2_zanthiaChat 169 -> o2_customChat 152 -> o2_customChatFinish 153 svn-id: r29187
2007-10-10- Made some sound functions a bit more generic for use with Kyra1 and Kyra2Johannes Schickel
HoF: - Added sound support (sfx sound wrong currently though) - Implemented opcodes: -> o2_loadMusicTrack -> o2_playWanderScoreViaMap -> o2_playSoundEffect -> o2t_playSoundEffect svn-id: r29183
2007-10-10Fixed bug in o2_addSpecialExit.Johannes Schickel
svn-id: r29182
2007-10-09HoFJohannes Schickel
- Implemented opcodes -> o2_switchScene 0x51 -> o2_getShapeFlag1 0x52 svn-id: r29180
2007-10-09HoFJohannes Schickel
- fixed o2_runTemporaryScript - fixed trySceneChange, now stopping movement should work correctly svn-id: r29179
2007-10-09HoF:Johannes Schickel
- More input handling (should be rather complete now, not finished but nearlly) - Implemented the following opcodes: -> o2_trySceneChange 0x0d -> o2_setHandItem 0x2a -> o2_handItemSet 0x2c -> o2_setCharPalEntry 0x3c -> o2_drawSceneShape 0x3e -> o2_update 0x4b -> o2_fadeScenePal 0x4d -> o2_enterNewSceneEx 0x50 -> o2_setZanthiaPos 0x56 -> o2_runTemporaryScript 0x6e -> o2t_defineNewShape 0x00 -> o2t_setCurrentFrame 0x01 -> o2t_setShapeFlag 0x04 svn-id: r29178
2007-10-09HoF:Johannes Schickel
- added support for dropping items into scenes - added const to some static data - implemented opcode 0x55 o2_setLayerFlag - fixed a bug in Screen_v2::drawShape svn-id: r29175
2007-07-29Fixed some warningsMax Horn
svn-id: r28308
2007-07-29- Kyrandia 1 works againJohannes Schickel
- Added timer class for timer handling - Little bit more resturcturing - A little bit (almost nothing but a start!) Kyrandia 2 support svn-id: r28297