www.tombraiderforums.com

Go Back   www.tombraiderforums.com > Tomb Raider Modding > Tomb Raider Level Editor > Tomb Raider Level Editor Tutorials

Closed Thread
 
Thread Tools
Old 10-02-15, 09:14   #1
AkyV
Moderator
 
Join Date: Dec 2011
Location: Hungary
Posts: 2,505
Default TRNG Flycheat special

Instructions:

1. Copy the setup in your Script.
2. Build the Script.

Special instructions, if the Script doesn’t work/cannot be built:

1. Check TriggerGroup and GlobalTrigger ID’s and change them if you are already using the ID in another TriggerGroup/GlobalTrigger.
2. Open the Find Trigger Number window in Set Trigger Type panel, and copy-paste the underlined triggers there (one by one), to check them:

- If you changed TriggerGroup/GlobalTrigger ID’s, then you also need to change the TriggerGroup/GlobalTrigger ID in the trigger (if it is a trigger about a TriggerGroup/GlobalTrigger).
- Maybe you need to choose another variable, because you can’t use the variables (Global Byte Alfa1) I used in the setups. So choose another one now (if it is a trigger about variables), if it is needed.
You are never allowed to change Current Value variable!

Export the trigger you have changed, replacing the previous trigger in the Script.
3. Build the Script.

Condition:
If Lara X is just/is just not flying in DOZY mode

This condition could be useful mostly when you build your level. I mean, for example, you want to print some information on the screen when flycheat is working, but you want to remove the text when flycheat has just stopped.

TriggerGroup= 1, $2000, 244, $800, > ; put the DOZY status into Global Byte Alfa1 (GBA1) variable
$8000+X, 0, $32B; if GBA1=3

+X values are:
+ X doesn’t exist: is just in DOZY mode
+ TGROUP_NOT: is just not in DOZY mode

The easiest solutions to use the conditions:
- The TriggerGroup (1) ID is referred by a C15 trigger. There is a TRIGGER placed in the map, overlapped with the CONDITION trigger. The TRIGGER will be executed if Lara is in the trigger zone when the CONDITION is true.
- The TriggerGroup (1) ID is referred by the IdConditionTriggerGroup field of a GlobalTrigger.

Command:
X enable/disable flycheat

If the game is too hard at some points then maybe you should let noob players use flycheat there. After that point, you will disable flycheat again for everyone.

When flycheat is enabled, then you can type DOZY to activate DOZY mode.
When flycheat is disabled, then you can’t type DOZY to activate DOZY mode.

Activate this F279 trigger:

; Set Trigger Type - FLIPEFFECT 279
; Exporting: TRIGGER(3074:0) for FLIPEFFECT(279)
; <#> : Variables. Memory. Set in <&>Code Memory the (E)Value
; <&> : Script Dat. Option Flags (Use bit operations to read or write) (Byte)
; (E) : Value X
; Values to add in script command: $2000, 279, $Y02

X values are:
- enable (if PlayAnyLevel in Script is enabled): 15
- enable (if PlayAnyLevel in Script is disabled): 7
- disable (if PlayAnyLevel in Script is enabled): 14
- disable (if PlayAnyLevel in Script is disabled): 6

Y is the hexadecimal version of X.

Important!
This setup supposes that some classic Script flags exist in your Script: LoadSave= ENABLED, Title=ENABLED, DemoDisc= DISABLED.

(If you want checkpoints and that is why you disable save/load function with F51, that won't disturb this setup.)

You need to restore the original (scripted) situation everyway before jumping the level!

Condition:
If flycheat is X enabled/disabled

TriggerGroup= 1, $2000, 277, $2, > ;put the flycheat status into Current Value variable
$8000, 255, $X2B; if Current Value is X

X values are:
- enabled (if PlayAnyLevel in Script is enabled): F
- enabled (if PlayAnyLevel in Script is disabled): 7
- disabled (if PlayAnyLevel in Script is enabled): E
- disabled (if PlayAnyLevel in Script is disabled): 6

Important!
This setup supposes that some classic Script flags exist in your Script: LoadSave= ENABLED, Title=ENABLED, DemoDisc= DISABLED.

Made using TRNG 1.2.2.7.

Last edited by AkyV; 10-02-15 at 09:54.
AkyV is offline  
Closed Thread

Bookmarks

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 00:13.


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