Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
trs:scripting_tr4_tr5 [2017/06/17 15:16] – [Script Opcodes] zdimensiontrs:scripting_tr4_tr5 [2021/04/29 21:45] (current) – [Script Opcodes] zdimension
Line 1: Line 1:
 +{{indexmenu_n>11}}
 +
 ====== Scripting in TR4 and TR5 ====== ====== Scripting in TR4 and TR5 ======
  
Line 28: Line 30:
 ^  ''0x0004'' ^  2 | ''TitleEnabled'' -- Specifies if title screen should be displayed or not. If not set, game will start right away after user has launched an application. | ^  ''0x0004'' ^  2 | ''TitleEnabled'' -- Specifies if title screen should be displayed or not. If not set, game will start right away after user has launched an application. |
 ^  ''0x0008'' ^  3 | ''PlayAnyLevel'' -- Gives an access to any level from the title screen. | ^  ''0x0008'' ^  3 | ''PlayAnyLevel'' -- Gives an access to any level from the title screen. |
-^  ''0x0070'' ^  4 | ''Language'' |+^  ''0x0070'' ^  4 | ''Language'' -- Chooses which loading picture (US, GR, FR or UK) is showed |
 ^  ::: ^  5 | ::: | ^  ::: ^  5 | ::: |
 ^  ::: ^  6 | ::: | ^  ::: ^  6 | ::: |
Line 145: Line 147:
 |  ''0x91'' **XXX**  |  ''LoadCamera''  |  ''int32_t srcX''  ||||||||||||  ''int32_t srcY''  ||||||||||||  ''int32_t srcZ''  ||||||||||||  ''int32_t targX''  ||||||||||||  ''int32_t targY''  ||||||||||||  ''int32_t targZ''  ||||||||||||  ''uint8_t room''  |||||||||||| |  ''0x91'' **XXX**  |  ''LoadCamera''  |  ''int32_t srcX''  ||||||||||||  ''int32_t srcY''  ||||||||||||  ''int32_t srcZ''  ||||||||||||  ''int32_t targX''  ||||||||||||  ''int32_t targY''  ||||||||||||  ''int32_t targZ''  ||||||||||||  ''uint8_t room''  ||||||||||||
 |  ''0x92'' ''0x91'' ''ResetHUB''  |  ''uint8_t levelIndex''  |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |  ''0x92'' ''0x91'' ''ResetHUB''  |  ''uint8_t levelIndex''  ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-|  ''0x93'' ''0x92'' ''KEY_ITEM1''  |  ''uint16_t stringIndex''  ||||||||||||  ''uint16_t height''  ||||||||||||  ''uint16_t size''  ||||||||||||  ''uint16_t yAngle''  ||||||||||||  ''uint16_t zAngle''  ||||||||||||  ''uint16_t xAngle''  ||||||||||||  ''uint16_t unknown''  ||||||||||||+|  ''0x93'' ''0x92'' ''KEY_ITEM1''  |  ''uint16_t stringIndex''  ||||||||||||  ''uint16_t height''  ||||||||||||  ''uint16_t size''  ||||||||||||  ''uint16_t yAngle''  ||||||||||||  ''uint16_t zAngle''  ||||||||||||  ''uint16_t xAngle''  ||||||||||||  ''uint16_t flags''  ||||||||||||
 |  ''0x94'' ''0x93'' ''KEY_ITEM2''  |:::||||||||||||:::||||||||||||:::||||||||||||:::||||||||||||:::||||||||||||:::||||||||||||:::|||||||||||| |  ''0x94'' ''0x93'' ''KEY_ITEM2''  |:::||||||||||||:::||||||||||||:::||||||||||||:::||||||||||||:::||||||||||||:::||||||||||||:::||||||||||||
 |  ''0x95'' ''0x94'' ''KEY_ITEM3''  |:::||||||||||||:::||||||||||||:::||||||||||||:::||||||||||||:::||||||||||||:::||||||||||||:::|||||||||||| |  ''0x95'' ''0x94'' ''KEY_ITEM3''  |:::||||||||||||:::||||||||||||:::||||||||||||:::||||||||||||:::||||||||||||:::||||||||||||:::||||||||||||
Line 216: Line 218:
 |  ''0xD8'' ''0xD7'' ''PICKUP_ITEM4_COMBO1''  |:::||||||||||||:::||||||||||||:::||||||||||||:::||||||||||||:::||||||||||||:::||||||||||||:::|||||||||||| |  ''0xD8'' ''0xD7'' ''PICKUP_ITEM4_COMBO1''  |:::||||||||||||:::||||||||||||:::||||||||||||:::||||||||||||:::||||||||||||:::||||||||||||:::||||||||||||
 |  ''0xD9'' ''0xD8'' ''PICKUP_ITEM4_COMBO2''  |:::||||||||||||:::||||||||||||:::||||||||||||:::||||||||||||:::||||||||||||:::||||||||||||:::|||||||||||| |  ''0xD9'' ''0xD8'' ''PICKUP_ITEM4_COMBO2''  |:::||||||||||||:::||||||||||||:::||||||||||||:::||||||||||||:::||||||||||||:::||||||||||||:::||||||||||||
-|  **XXX**  |  ''0xD9'' ''UNKNOWN_0xD9''  |  ''uint16_t unknown''  |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| +|  **XXX**  |  ''0xD9'' ''GiveItemAtStartup''  |  ''uint16_t itemNumber''  |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 
- **XXX**  |  ''0xDA'' ''UNKNOWN_0xDA''  |  ''uint16_t unknown''  ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||+|:::|  ''0xDA'' ''LoseItemAtStartup''  |  ''uint16_t itemNumber''  ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
  
 The ''%%uint16_t%%'' values ''%%levelOptions%%'' and ''%%titleOptions%%'' are actually //bit fields// containing several boolean options, and are laid out as follows (per-bit description): The ''%%uint16_t%%'' values ''%%levelOptions%%'' and ''%%titleOptions%%'' are actually //bit fields// containing several boolean options, and are laid out as follows (per-bit description):
Line 224: Line 226:
   * //Bit 1// (''%%0x0002%%'') — Weather   * //Bit 1// (''%%0x0002%%'') — Weather
   * //Bit 2// (''%%0x0004%%'') — Horizon   * //Bit 2// (''%%0x0004%%'') — Horizon
-  * //Bit 4// (''%%0x0010%%'') — Layer2 used (?) +  * //Bit 3// (''%%0x0008%%'') — Layer1 used 
-  * //Bit 3// (''%%0x0008%%'') — Horizon (has to be paired with 3)+  * //Bit 4// (''%%0x0010%%'') — Layer2 used
   * //Bit 5// (''%%0x0020%%'') — Starfield   * //Bit 5// (''%%0x0020%%'') — Starfield
   * //Bit 6// (''%%0x0040%%'') — Lightning   * //Bit 6// (''%%0x0040%%'') — Lightning
Line 232: Line 234:
   * //Bit 9// (''%%0x0200%%'') — ColAddHorizon   * //Bit 9// (''%%0x0200%%'') — ColAddHorizon
   * //Bit 10// (''%%0x0400%%'') — ResetHUB used   * //Bit 10// (''%%0x0400%%'') — ResetHUB used
-  * //Bit 11// (''%%0x0800%%'') — ColAddHorizon (has to be paired with 10)+  * //Bit 11// (''%%0x0800%%'') — LensFlare used
   * //Bit 12// (''%%0x1000%%'') — Timer   * //Bit 12// (''%%0x1000%%'') — Timer
   * //Bit 13// (''%%0x2000%%'') — Mirror used   * //Bit 13// (''%%0x2000%%'') — Mirror used
-  * //Bit 14// (''%%0x4000%%'') — RemoveAmulet+  * //Bit 14// (''%%0x4000%%'') — Remove Horus amulet from inventory
   * //Bit 15// (''%%0x8000%%'') — NoLevel   * //Bit 15// (''%%0x8000%%'') — NoLevel
  
trs/scripting_tr4_tr5.1497712563.txt.gz · Last modified: 2017/06/17 15:16 by zdimension
Back to top
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0