www.tombraiderforums.com

www.tombraiderforums.com (https://www.tombraiderforums.com/index.php)
-   Tutorials and Resources (https://www.tombraiderforums.com/forumdisplay.php?f=28)
-   -   TRNG - TR3 Savegame Crystal (https://www.tombraiderforums.com/showthread.php?t=211988)

TR-Freak 29-08-15 10:50

TRNG - TR3 Savegame Crystal
 
Hi guys, I have a fully working TR3-Styled Save Crystal.

http://i.imgur.com/aAzPDGw.png

Information about this script:
  • Triggergroup 5 is used
    • TG 5 enables lighting AddEffect of the Crystal
    • TG 5 is called via an AnimCommand!
  • When implemented correctly, Savegame Crystal has to be triggered only
  • Make sure the SAVE_CRYSTAL sound effect is assigned to your WAD!
  • AddEffect 1,2,3 are used
  • PuzzleItem12 is the Inventory Item
  • Animating3 is the Collectable
    • Can be changed via #DEFINE CRYSTAL_COLLECTABLE
  • Uses 3 Triggergroups and 3 Global Triggers
    • GTs and TGs IDs are defined via #DEFINE. Change them freely, they're numbered sequenctially
  • #DEFINE CRYSTAL_INTENSITY changes the intensity of the Lighting


Here's the WAD(contains PuzzleItem12 and Animating3):


https://dl.dropboxusercontent.com/u/...21/Crystal.zip



Code:

#Define CRYSTAL_GT_ID 1
#Define CRYSTAL_TG_ID 2
#DEFINE CRYSTAL_COLLECTABLE ANIMATING3
GlobalTrigger=CRYSTAL_GT_ID,FGT_SINGLE_SHOT_RESUMED,GT_COLLIDE_SLOT,CRYSTAL_COLLECTABLE,IGNORE,CRYSTAL_TG_ID,IGNORE
Triggergroup=CRYSTAL_TG_ID,$2000, 48, $10B,$5000+TGROUP_USE_FOUND_ITEM_INDEX, 248, $10E,$2000, 70, $1FD4

; Set Trigger Type - FLIPEFFECT 48
; Exporting: TRIGGER(267:0) for FLIPEFFECT(48)
; <#> : Inventory-Item. Increase (+1) in (E)way the number of <&>inventory-item in inventory
; <&> : PUZZLE_ITEM12 Slot=186
; (E) : Show animation of item (like it was picked up)
; Values to add in script command: $2000, 48, $10B

; Set Trigger Type - ACTION 14
; Exporting: TRIGGER(270:0) for ACTION(248)
; <#> : ANIMATING3 ID 248 in sector (9,6) of Room18
; <&> : Enemy. Kill <#>object in (E) way
; (E) : Remove immediatly (disappear any item)
; Values to add in script command: $5000, 248, $10E

; Set Trigger Type - FLIPEFFECT 70
; Exporting: TRIGGER(8148:0) for FLIPEFFECT(70)
; <#> : Sound. Play <&>Sound sample of first group (0-255) for (E) time
; <&> : SAVE_CRYSTAL 212 Ok save
; (E) : Perform one single time
; Values to add in script command: $2000, 70, $1FD4

GlobalTrigger= CRYSTAL_GT_ID+1,FGT_REPLACE_MANAGEMENT,GT_SELECTED_INVENTORY_ITEM,PUZZLE_ITEM12,IGNORE,CRYSTAL_TG_ID+1,IGNORE
Triggergroup= CRYSTAL_TG_ID+1,$2000+TGROUP_SINGLE_SHOT_RESUMED, 53, $12
; Set Trigger Type - FLIPEFFECT 53
; Exporting: TRIGGER(18:0) for FLIPEFFECT(53)
; <#> : Keyboard. Simulate receivement of <&>keyboard comand in (E) way
; <&> :  Save the game (special)
; (E) : Single sending
; Values to add in script command: $2000, 53, $12

GlobalTrigger= CRYSTAL_GT_ID+2,IGNORE,GT_SAVED_SAVEGAME,IGNORE ,IGNORE,CRYSTAL_TG_ID+2,IGNORE
Triggergroup= CRYSTAL_TG_ID+2,$2000, 49, $B

; Set Trigger Type - FLIPEFFECT 49
; Exporting: TRIGGER(11:0) for FLIPEFFECT(49)
; <#> : Inventory-Item. Decrease (-1) number of <&>inventory-item in inventory
; <&> : PUZZLE_ITEM12 Slot=186
; (E) :
; Values to add in script command: $2000, 49, $B
#DEFINE CRYSTAL_INTENSITY 8

AddEffect= 1, ADD_LIGHT_FLAT, FADD_CONTINUE_EMIT, JOINT_SINGLE_MESH, IGNORE, -256, IGNORE, IGNORE, IGNORE, CRYSTAL_INTENSITY, IGNORE, MIST_COL_BLUE

AddEffect= 2, ADD_LIGHT_FLAT, FADD_CONTINUE_EMIT, JOINT_SINGLE_MESH, IGNORE, -256, IGNORE, IGNORE, IGNORE, CRYSTAL_INTENSITY, IGNORE, MIST_COL_BLUE

AddEffect= 3, ADD_LIGHT_FLAT, FADD_CONTINUE_EMIT, JOINT_SINGLE_MESH, IGNORE, -256, IGNORE, IGNORE, IGNORE, CRYSTAL_INTENSITY, IGNORE, MIST_COL_GREEN

Triggergroup= 5,$5000+TGROUP_USE_OWNER_ANIM_ITEM_INDEX, 248, $130,$5000+TGROUP_USE_OWNER_ANIM_ITEM_INDEX, 248, $230,$5000+TGROUP_USE_OWNER_ANIM_ITEM_INDEX, 248, $330
; Set Trigger Type - ACTION 48
; Exporting: TRIGGER(304:0) for ACTION(248)
; <#> : ANIMATING3 ID 248 in sector (9,6) of Room18
; <&> : Effect. Add to <#>Enemy the (E)AddEffect from script.txt
; (E) : AddEffect= 1
; Values to add in script command: $5000, 248, $130
; and Trigger for AddEffect 2 and 3
;
;Add a SetPosition anim command with following values:
;
;Set Position [-24575] [371] [5]
;
;Infos about exported trigger
;-------------------------------------------------------------------------------
;Set Trigger Type - FLIPEFFECT 371
;Exporting: TRIGGER(5:0) for FLIPEFFECT(371)
;<#> : TriggerGroup. Perform <&>TriggerGroup from script.dat (Single execution to use when in TriggerGroup there are only com
;<&> : TriggerGroup=    5
;(E) :
;
;AnimCommand: Frame=1 
;-------------------------------------------------------------------------------

Protip: Disable Saving the Game via
Code:

; Set Trigger Type - FLIPEFFECT 51
; Exporting: TRIGGER(18:0) for FLIPEFFECT(51)
; <#> : Keyboard. Disable <&>keyboard command for (E) time
; <&> :  Save the game (special)
; (E) : Forever (use other action/effect to disable it)
; Values to add in script command: $2000, 51, $12

for an authentic TR3- Feel ;)


Feel free to use, Happy Raiding and Crystal-Saving:)


All times are GMT. The time now is 13:26.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.