Tomb Raider Forums  

Go Back   Tomb Raider Forums > Tomb Raider Level Editor and Modding > Tomb Raider Level Editor > Tutorials and Resources

Closed Thread
 
Thread Tools
Old 17-10-13, 15:44   #1
A_De
Member
 
A_De's Avatar
 
Joined: Jan 2012
Posts: 1,320
Default TRNG - Making Lara scream when on fire

Ever wanted to make Lara scream when she’s burning? Now it is possible with TRNG variables and a global trigger. Script is written using TRNG 1.2.2.6.

First I made some diagnostics to see the special status of Lara in different situations. The tutorials about variables say when Lara is burning the value +8 is added to her special status. Then I found out that her special status can have these values:

4 = when Lara does almost everything
20 = when Lara is in crawlspace
68 = when Lara has a monkey ceiling above.

Actually the special status of Lara can also have some other values, but for a very short time so we can ignore them.
When Lara is burning +8 is adding to the values described above. We need a condition trigger group to determine if Lara is burning or not. Here it is:

; Set Trigger Type - FLIPEFFECT 244
; Exporting: TRIGGER(4607:0) for FLIPEFFECT(244)
; <#> : Variables. Memory. Copy to <&>Numeric Variable the (E)Savegame Memory value
; <&> : Current Value
; (E) : Lara. Special Status of Lara (Byte)
; Values to add in script command: $2000, 244, $11FF
; The special status of Lara is copied to a current value

; Set Trigger Type - CONDITION 48
; Exporting: CONDITION(48:0) for PARAMETER(12)
; <#> : Value= 12
; <&> : Variables. The Current Value variable is = than <#>Value
; (E) :
; Values to add in script command: $8000, 12, $30
; The special status of Lara: 4 + 8 = 12 - she burns simply

; Set Trigger Type - CONDITION 48
; Exporting: CONDITION(48:0) for PARAMETER(28)
; <#> : Value= 28
; <&> : Variables. The Current Value variable is = than <#>Value
; (E) :
; Values to add in script command: $8000, 28, $30
; The special status of Lara: 20 + 8 = 28 - she burns in a crawlspace

; Set Trigger Type - CONDITION 48
; Exporting: CONDITION(48:0) for PARAMETER(76)
; <#> : Value= 76
; <&> : Variables. The Current Value variable is = than <#>Value
; (E) :
; Values to add in script command: $8000, 76, $30
; The special status of Lara: 68 + 8 = 76 - she burns under the monkey ceiling

TriggerGroup= 1, $2000, 244, $11FF, $8000 + TGROUP_OR, 12, $30, $8000 + TGROUP_OR, 28, $30,>
$8000 + TGROUP_OR, 76, $30


And the second trigger group will contain the flipeffect for playing a suitable sound:

; Set Trigger Type - FLIPEFFECT 70
; Exporting: TRIGGER(7966:0) for FLIPEFFECT(70)
; <#> : Sound. Play <&>Sound sample of first group (0-255) for (E) time
; <&> : LARA_FALL 30 Ok f2f_scrm
; (E) : Perform one single time
; Values to add in script command: $2000, 70, $1F1E
; Here’s the sound Lara makes

; Set Trigger Type - FLIPEFFECT 51
; Exporting: TRIGGER(2066:0) for FLIPEFFECT(51)
; <#> : Keyboard. Disable <&>keyboard command for (E) time
; <&> : Save the game (special)
; (E) : 8 seconds
; Values to add in script command: $2000, 51, $812
; Disable saving for 8 seconds in order to not to make the useless save by accident

TriggerGroup= 2, $2000, 70, $1F1E, $2000, 51, $812

And finally we have to setup a global trigger:

GlobalTrigger= 1, FGT_SINGLE_SHOT_RESUMED, GT_LARA_HP_LESS_THAN, 800, 1, 2, IGNORE

Now Lara will scream every time she begins to burn when her health is lower than 800. Cruel death, isn’t it?
Replace those blue ID numbers with yours as they’re may be different for your script. If you use this script please give credit to AkyV and me

Last edited by Titak; 17-10-13 at 17:52.
A_De is offline  
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 19:06.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Tomb Raider Forums is not owned or operated by CDE Entertainment Ltd.
Lara Croft and Tomb Raider are trademarks of CDE Entertainment Ltd.