Johannes Schickel
6c672d92f0
Changed Kyra2 script debug printfs to be consistent with Kyra1 ones.
...
svn-id: r31150
2008-03-16 18:42:29 +00:00
Johannes Schickel
18fa238cd3
- implemented skip flag handling in wsa related opcodes
...
- implemented skip flag handling in o2_isVoicePlaying
- fixed skip flag handling when making the cauldron appear.
svn-id: r31149
2008-03-16 18:24:45 +00:00
Johannes Schickel
79cc924d0e
Implemented opcode 16: o2_soundFadeOut
...
svn-id: r31146
2008-03-16 15:35:12 +00:00
Johannes Schickel
042666ca04
Implemented opcode 34: o2_removeItemSlotFromInventory
...
svn-id: r31145
2008-03-16 15:30:57 +00:00
Johannes Schickel
2bbaadbf95
Implemented opcodes:
...
- 15: o2_customCharacterChat
- 18: o2_restoreTalkTextMessageBkgd
- 94: o2_setCauldronState
- 154: o2_setupSceneAnimation
svn-id: r31144
2008-03-16 15:28:05 +00:00
Johannes Schickel
ef72d8e7bf
Moved KyraEngine_v2::setupOpcodeTable from kyra_v2.cpp to script_v2.cpp
...
svn-id: r31141
2008-03-16 13:40:54 +00:00
Johannes Schickel
3bfa70bc3e
Implemented opcode 30: o2_addItemToCurScene
...
svn-id: r31140
2008-03-16 13:39:40 +00:00
Johannes Schickel
2a95c653eb
- Impelemented opcode 155: o2_stopSceneAnimation
...
- fixed crash while switching chapters
svn-id: r31139
2008-03-16 13:31:18 +00:00
Florian Kagerer
b75c790c7a
- add opcode 146 - resetInputColorCode()
...
- add updateWaterFlasks()
- some fixes for mouse pointer positioning in sjis mode
- bug fix for tim player
svn-id: r31136
2008-03-16 02:00:14 +00:00
Torbjörn Andersson
7074132276
Fixed warning about unused variable.
...
svn-id: r31135
2008-03-15 21:33:01 +00:00
Johannes Schickel
db3e317ab3
Implemented opcodes:
...
- 27: o2_displayWsaSequence
- 99: o2_setDrawNoShapeFlag
- 129: o2_chapterChange
- 159: o2_processPaletteIndex
svn-id: r31133
2008-03-15 21:03:35 +00:00
Florian Kagerer
fd7ed046bb
- some more opcodes for wsa and tim sequences
...
- adding some code to inputSceneChange
svn-id: r31132
2008-03-15 20:24:26 +00:00
Johannes Schickel
f88a2923cd
Implemented opcodes:
...
- 36: o2_removeItemFromInventory
- 64: o2_disableAnimObject
- 65: o2_enableAnimObject
- 101: o2_showLetter
- 115: o2_setSceneAnimPosAndUpdate
svn-id: r31131
2008-03-15 19:55:05 +00:00
Florian Kagerer
dc319c719f
- implement opcode 127 (entering the color code for the skull in the rat cave now works)
...
- minor bug fix for mouse cursor (which sometimes would show when it shouldn't)
svn-id: r31129
2008-03-15 14:40:00 +00:00
Johannes Schickel
850868536b
Fixed bug in o2_countItemInInventory.
...
svn-id: r31126
2008-03-15 10:55:32 +00:00
Johannes Schickel
91adba9842
Implement opcodes:
...
- 7: o2_getCharacterScene
- 54: o2_delaySecs
- 103: o2_fillRect
svn-id: r31125
2008-03-15 09:57:41 +00:00
Johannes Schickel
05f68b17d4
- implemented cauldron handling for HoF (needs some more testing though)
...
- fixed bug in updateCharFacing
- added 'give' command to HoF debugger, which allows setting the hand item to a specified item
svn-id: r31087
2008-03-09 14:46:24 +00:00
Florian Kagerer
faeb81fb62
palette bug fix (inventory turned blue when leaving the scene after eating the mushroom)
...
svn-id: r30915
2008-02-22 07:00:12 +00:00
Florian Kagerer
3969249b93
two more opcodes (Zanthia's random chats and mushroom drug effects) and some cleanup
...
svn-id: r30914
2008-02-22 00:33:56 +00:00
Florian Kagerer
896b46323f
the script countdown needs to be divided by _ticklength
...
svn-id: r30904
2008-02-18 23:22:22 +00:00
Florian Kagerer
bcdfe6ade0
some more opcodes (the fly tree is now operational) and some bug fixes
...
svn-id: r30903
2008-02-18 23:04:37 +00:00
Florian Kagerer
2032965063
scripting bug fix (npc scene startup scripts were executed twice)
...
svn-id: r30899
2008-02-17 21:58:46 +00:00
Florian Kagerer
753536fa61
committing patch 1891492 : dialogue (dlg/tim) support for HoF
...
- 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-02-17 02:06:04 +00:00
Johannes Schickel
c4ad0a1c0d
Commit slightly modified patch #1880670 "KYRA: Hof: Zanthia chat fix for towns and floppy versions".
...
svn-id: r30694
2008-01-28 22:21:47 +00:00
Jordi Vilalta Prat
66e9d4f5e8
Removed trailing spaces.
...
svn-id: r30664
2008-01-27 19:47:41 +00:00
Johannes Schickel
dd3a8672be
Fix for some problems introduced (like wrong text display) with last commit.
...
svn-id: r30654
2008-01-27 15:53:09 +00:00
Johannes Schickel
28a57c434a
Cleanup(/formatting).
...
svn-id: r29983
2007-12-24 22:27:30 +00:00
Johannes Schickel
be01daccdb
- implemented opcodes:
...
-> o2_setHiddenItemsEntry 147
-> o2_getHiddenItemsEntry 148
-> o2t_fadeScenePal 3
- added o2t_playSoundEffect to the temporary opcode list
svn-id: r29494
2007-11-13 15:49:21 +00:00
Johannes Schickel
2e46b741a3
- Implemented opcodes:
...
-> o2_removeHandItem 43
-> o2_makeBookOrCauldronAppear 42
- Implemented inventory WSA functionality
svn-id: r29485
2007-11-12 17:56:49 +00:00
Oystein Eftevaag
af3b84c297
TIM file loading/unloading for HoF
...
svn-id: r29217
2007-10-14 16:58:11 +00:00
Johannes Schickel
706888358d
HoF:
...
- implemented opcodes
-> o2_checkForItem 32
-> o2_countItemInInventory 37
-> o2_setMousePos 47
-> o2_countItemInstances 136
svn-id: r29211
2007-10-13 19:17:58 +00:00
Johannes Schickel
8d678b8705
HoF:
...
- implemented opcode
-> o2_setCharacterPos 1
svn-id: r29210
2007-10-13 18:53:49 +00:00
Oystein Eftevaag
7f7b08b42e
Forgot to rename a variable
...
svn-id: r29209
2007-10-13 18:53:02 +00:00
Oystein Eftevaag
4f93e96d5f
Implemented the o2_setCharacterAnimFrame opcode and made sure o2_delay does game updates during the delay
...
svn-id: r29208
2007-10-13 18:47:52 +00:00
Johannes Schickel
da9479dfb8
- moved some voice functionallity from KyraEngine_v1 to KyraEngine
...
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-13 06:57:47 +00:00
Johannes Schickel
1764f165a7
HoF:
...
- Subclassed TextDisplayer for use with Kyra2
- Implemented opcodes:
-> o2_zanthiaChat 169
-> o2_customChat 152
-> o2_customChatFinish 153
svn-id: r29187
2007-10-12 00:58:59 +00:00
Johannes Schickel
d896894631
- Made some sound functions a bit more generic for use with Kyra1 and Kyra2
...
HoF:
- Added sound support (sfx sound wrong currently though)
- Implemented opcodes:
-> o2_loadMusicTrack
-> o2_playWanderScoreViaMap
-> o2_playSoundEffect
-> o2t_playSoundEffect
svn-id: r29183
2007-10-10 09:06:15 +00:00
Johannes Schickel
598e35bab8
Fixed bug in o2_addSpecialExit.
...
svn-id: r29182
2007-10-10 05:22:29 +00:00
Johannes Schickel
ca0161b76a
HoF
...
- Implemented opcodes
-> o2_switchScene 0x51
-> o2_getShapeFlag1 0x52
svn-id: r29180
2007-10-09 09:15:12 +00:00
Johannes Schickel
99efa084fe
HoF
...
- fixed o2_runTemporaryScript
- fixed trySceneChange, now stopping movement should work correctly
svn-id: r29179
2007-10-09 09:03:57 +00:00
Johannes Schickel
dd1b43a5a9
HoF:
...
- 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-09 08:44:45 +00:00
Johannes Schickel
cf3fd283bb
HoF:
...
- 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-10-09 04:47:41 +00:00
Max Horn
50537d3ae0
Fixed some warnings
...
svn-id: r28308
2007-07-29 17:37:08 +00:00
Johannes Schickel
1140fca82e
- Kyrandia 1 works again
...
- Added timer class for timer handling
- Little bit more resturcturing
- A little bit (almost nothing but a start!) Kyrandia 2 support
svn-id: r28297
2007-07-29 16:33:11 +00:00