Tomb Raider Forums  

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

Reply
 
Thread Tools
Old 16-06-22, 14:14   #1
angeljs
Member
 
angeljs's Avatar
 
Joined: Feb 2004
Posts: 173
Default TR2-Type Secret Rewards

I've found a tutorial that shows how to add Tomb Raider 2-type secrets, e.g. dragons or whatever I decide to use.

The only thing I'm not sure about is how to add more pickups when Lara finds all three secrets. Here is the code that adds a large medipack as a reward:

Code:
; Set Trigger Type - FLIPEFFECT 48
; Exporting: TRIGGER(365:0) for FLIPEFFECT(48)
; <#> : Inventory-Item. Increase (+1) in (E)way the number of <&>inventory-item in inventory
; <&> : BIGMEDI_ITEM Slot=368
; (E) : Show animation of item (like it was picked up)
; Values to add in script command: $2000, 48, $16D
What would I need to add if I wanted more rewards, such as ammo or weapons, for example?
angeljs is offline   Reply With Quote
Old 16-06-22, 14:38   #2
SrDanielPonces
Member
 
SrDanielPonces's Avatar
 
Joined: Apr 2012
Posts: 10,346
Default

You would have to import this trigger in the trigger panel, change the item you want it to give and export it back to the script
SrDanielPonces is offline   Reply With Quote
Old 16-06-22, 17:31   #3
AkyV
Moderator
 
Joined: Dec 2011
Posts: 4,881
Default

@angeljs, are you talking about this, right?

Then here is an example:

Original, from the tutorial:

Quote:
GlobalTrigger= 1, FGT_SINGLE_SHOT, GT_CONDITION_GROUP, IGNORE, 1, 2, IGNORE
TriggerGroup= 1, $8000, 231, $2, $8000, 232, $2, $8000, 233, $2
TriggerGroup= 2, $2000, 48, $16D, $2000, 48, $16D
Extended - just type further/other triggers in the row:

Quote:
GlobalTrigger= 1, FGT_SINGLE_SHOT, GT_CONDITION_GROUP, IGNORE, 1, 2, IGNORE
TriggerGroup= 1, $8000, 231, $2, $8000, 232, $2, $8000, 233, $2
TriggerGroup= 2, $2000, 48, $016D, $2000, 48, $016D, $2000,48,$0160
($16D or $016D - they are the same, but the one with the plus 0 was exported from TE. The first one is still exported from NGLE.
So no problem, 0 digit like that is just a "dummy zero", an unnecessary TE addendum.)

; Trigger for FlipEffect
; <#> Inventory-Item. Increase (+1) in (E)way the number of <&>inventory-item in inventory (F48)
; <&> BIGMEDI_ITEM Slot=368
; <E> Show animation of item (like it was picked up)
; Copy following values to your script:
; $2000,48,$016D

; Trigger for FlipEffect
; <#> Inventory-Item. Increase (+1) in (E)way the number of <&>inventory-item in inventory (F48)
; <&> SHOTGUN_ITEM Slot=353
; <E> Show animation of item (like it was picked up)
; Copy following values to your script:
; $2000,48,$0160

So your rewards now are two big medipacks and the shotgun.

Note:
If you want to add eg. 100 bullets, then you don't need to type the trigger 100 times, but you can also use eg. F249, like I say at the bottom of the tutorial.
However, it has no animation at the bottom right corner of the screen, so alternative solutions:
- my Plugin#1 has extended inventory triggers, or
- ring inventory plugin also has inventory triggers.

Last edited by AkyV; 16-06-22 at 17:33.
AkyV is offline   Reply With Quote
Reply

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:51.


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.