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 12-03-12, 08:43   #1
Titak
Moderator
 
Titak's Avatar
 
Joined: Jul 2003
Posts: 33,359
Default TRNG - Underwater Actions

In this thread you will find tutorials about how to make Lara interact with objects when she is underwater.


---- How to open a floortrapdoor when underwater ----

Last edited by Titak; 12-03-12 at 08:46.
Titak is offline  
Old 12-03-12, 08:45   #2
Titak
Moderator
 
Titak's Avatar
 
Joined: Jul 2003
Posts: 33,359
Default

---- How to open a floortrapdoor when underwater ----


Tutorial by Team Larabricole


Quote:
Originally Posted by Larabricole View Post
Hi everybody, I will present you the work of our group! The good point is this post is like a tutorial . This idea was developed by all the Team of Larabricole!

First of all, let's show you videos :




What you need for:
  1. Animation: Opening a submarine floor_trapdoor
    The animation
  2. The Floor-Trapdoor from the Library Wad (HERE)
  3. and the Script revisited by Quasar:
  1. The script has been enhanced! Now we don't need to place external triggers in NGLE, everything works with script.


Here's the new code. Copy it into your script :

Code:
; Opening animation :
Animation=      464, KEY1_ACTION, -1, FAN_ALIGN_TO_ENV_POS, ENV_MULT_CONDITION, 1, -1, -108
MultEnvCondition=   1, ENV_ITEM_TEST_POSITION, 1, -1, ENV_CONDITION_TRIGGER_GROUP, 1, -1
TestPosition=      1, -1, FLOOR_TRAPDOOR1, -600, 600, -2100, 0, -1024, -256, -10000, 10000, -15000, 4000, -500, 500
TriggerGroup=      1, TGROUP_USE_FOUND_ITEM_INDEX+$5000, -1, $36, $2000, 256, $4FF, $8000, 255, $2B

; Test for the opening :
GlobalTrigger=      1, -1, GT_CONDITION_GROUP, -1, 2, 3, -1
TriggerGroup=      2, $8000, 1, $10, TGROUP_AND+$8000, 464, $1E
TriggerGroup=      3, $2000, 127, $1

; Frozing keyboard commands (TG4), opening the trapdoor (TG5) and playing underwater sound (TG6) :
Organizer=      1, FO_TICK_TIME, -1, 0, 4, 21, 5, 26, 6
TriggerGroup=      4, $2000, 51, $500
TriggerGroup=      5, TGROUP_USE_FOUND_ITEM_INDEX+$5000, -1, $11A
TriggerGroup=      6, $2000, 70, $1F32
Remember to update the IDs of animation, TriggerGroups, etc...

Details for "Opening animation" part:

; Exporting: TRIGGER(54:0) for ACTION(1)
; <#> : ???
; <&> : Variables. Set the index of <#> moveable as Selected Item
; (E) :
; Values to add in script command: $5000, ???, $36

You can type any value for "???". TRNG will ignore it because of TGROUP_USE_FOUND_ITEM_INDEX constant.

; Exporting: TRIGGER(1279:0) for FLIPEFFECT(256)
; <#> : Variables. Memory. Copy to <&> Numeric Variable the (E)Selected Item Memory
; <&> : Current Value
; (E) : State Id Now (Short)
; Values to add in script command: $2000, 256, $4FF

; Exporting: CONDITION(43:62) for PARAMETER(255)
; <#> : Current Value
; <&> : Variables. The <#> Numeric Variable is = than (E) Value
; (E) : Value= 0
; Values to add in script command: $8000, 255, $2B

When Lara's position is correct, the TriggerGroup 1 will use the ID of detected floor_trapdoor. If closed (StateId = 0), the animation will be performed.


Details for "Test for the opening" part:

; Exporting: CONDITION(16:62) for PARAMETER(1)
; <#> : MultEnvCondition= 1
; <&> : Multiple condition of <#> MultEnvCondition script command in (E) way
; (E) : In AND way. (All ENV conditions have to be true)
; Values to add in script command: $8000, 1, $10

The second value is the ID of MultEnvCondition= command which test Lara's position.

; Exporting: CONDITION(30:62) for PARAMETER(464)
; <#> : Animation= 464
; <&> : Lara. (Animation) Lara is performing <#> animation
; (E) :
; Values to add in script command: $8000, 464, $1E

The second value is the ID of MultEnvCondition= command which tests Lara's opening animation.

; Exporting: TRIGGER(1:62) for FLIPEFFECT(127)
; <#> : Organizer. Enable <&> Organizer
; <&> : Organizer= 1
; (E) :
; Values to add in script command: $2000, 127, $1

The third value is the ID of Organizer= command which opens the detected trapdoor. This value is hexadecimal.


Details for opening part:

; Exporting: TRIGGER(1792:0) for FLIPEFFECT(51)
; <#> : Keyboard. Disable <&>keyboard command for (E) time
; <&> : All keyboard commands
; (E) : 5 seconds
; Values to add in script command: $2000, 51, $500

; Exporting: TRIGGER(282:0) for ACTION(552)
; <#> : ???
; <&> : Trigger. (Door) (E)Open/Close <#>door
; (E) : Open the door
; Values to add in script command: $5000, ???, $11A

You can type any value for "???". TRNG will ignore it because of TGROUP_USE_FOUND_ITEM_INDEX constant.

; Exporting: TRIGGER(7986:0) for FLIPEFFECT(70)
; <#> : Sound. Play <&>Sound sample of first group (0-255) for (E) time
; <&> : UNDERWATER_DOOR 50 Ok uw_door
; (E) : Perform one single time
; Values to add in script command: $2000, 70, $1F32


Lara's Animation:

Download the file with the animation (at the top) and extract it of course. When you have open WadMerger and open the Animation Editor with Lara in, import the 3 animations (TRW) and set these values :
The First: "Framerate 2, StateID 13, NextAnim (the following one)"
The Second: "Framerate 2, StateID 13, NextAnim (the following one)"
Then the Last: "Framerate 1, StateID 13, NextAnim 108"

Last edited by Titak; 24-01-21 at 19:24.
Titak 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 10:22.


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.