www.tombraiderforums.com

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

Reply
 
Thread Tools
Old 04-08-19, 10:04   #1
TR-Freak
Professor
 
TR-Freak's Avatar
 
Join Date: Jan 2008
Location: Deutschland
Posts: 4,560
Angry Global Triggers aren't working

I have a weird issue where Global Triggers do not want to work at all.

I have the following script:

Code:
Parameters=	PARAM_SET_CAMERA, 1, IGNORE, IGNORE, -4096, 5472, 15
#DEFINE	TG_DEATH_CAM	42
GlobalTrigger=	112, IGNORE, GT_LARA_HP_LESS_THAN, 1, IGNORE, TG_DEATH_CAM, IGNORE
TriggerGroup=	TG_DEATH_CAM, $2000, 214, $1
; Set Trigger Type - FLIPEFFECT 214
; Exporting: TRIGGER(1:0) for FLIPEFFECT(214) {Tomb_NextGeneration}
; <#> : Camera. Change camera mode with <&>Parameters for (E)time
; <&> : Parameters=PARAM_SET_CAMERA,     1
; (E) : Forever (use other action/effect to disable it)
; Values to add in script command: $2000, 214, $1
It's straight forward:
Once Lara's HP is less than 1 (i.e. equal to 0), switch to the Camera set in PARAM_SET_CAMERA 1.

However, it does not work.
I noticed that not a single Global Trigger works!
I tried doing it even simpler, without any defines or includes.
I tried different GT_ Flags to do other stuff (e.g. killing Lara by using an Inventory Item or killing lara just with GT_ALWAYS) but even then, it does not work.
I dont have any GTs or Scripts that could interfere and no plugins installed.
Anyone know where the issue lies?
__________________
"Your perception of good timing is...bad!"

Last edited by TR-Freak; 04-08-19 at 10:28.
TR-Freak is offline   Reply With Quote
Old 04-08-19, 10:14   #2
klona
Gold Contributor
 
klona's Avatar
 
Join Date: Oct 2009
Posts: 10,927
Default

Your trigger group doesn't have an ID.

This is your TG:
Quote:
TriggerGroup= TG_DEATH_CAM, $2000, 214, $1
Replace the bold part with the ID. In this case I assume it's 42.
__________________
Never felt that, never heard of that, never tasted that, never smelled that...
klona is offline   Reply With Quote
Old 04-08-19, 10:21   #3
TR-Freak
Professor
 
TR-Freak's Avatar
 
Join Date: Jan 2008
Location: Deutschland
Posts: 4,560
Default

Quote:
I tried doing it even simpler, without any defines or includes.
Already tried that
__________________
"Your perception of good timing is...bad!"
TR-Freak is offline   Reply With Quote
Old 04-08-19, 10:36   #4
Dustie
Relic Hunter
 
Dustie's Avatar
 
Join Date: Apr 2005
Location: Poland
Posts: 9,212
Default

have you tried with really basic setups with GT ALWAYS and actual TGs for conditions, like when Lara's health goes below X flash the screen in green or play sound?
Dustie is offline   Reply With Quote
Old 04-08-19, 10:51   #5
TR-Freak
Professor
 
TR-Freak's Avatar
 
Join Date: Jan 2008
Location: Deutschland
Posts: 4,560
Default

Yes. Like this:

Code:
GlobalTrigger=	1,FGT_SINGLE_SHOT_RESUMED,GT_CONDITION_GROUP,IGNORE,1,2,IGNORE
Triggergroup=	1,$8000,1,$0023 ; LARA Holding Pistols
Triggergroup=	2,$2000,89,$0012 ; Decrease Lara HP by 10 percent
it simply doesnt work


Tried GT_ALWAYS instead of GT_CONDITION_GROUP, too
__________________
"Your perception of good timing is...bad!"

Last edited by TR-Freak; 04-08-19 at 10:54.
TR-Freak is offline   Reply With Quote
Old 04-08-19, 11:19   #6
LoreRaider
Archaeologist
 
LoreRaider's Avatar
 
Join Date: Jul 2016
Location: Italy
Posts: 1,173
Default

Try to reinstall NG_center, it happens sometimes that when you add or remove folders from it, scripted triggers doesn't work unless you reinstall the program
__________________
"Everybody lies, no exceptions."
LoreRaider is offline   Reply With Quote
Old 04-08-19, 11:23   #7
Dustie
Relic Hunter
 
Dustie's Avatar
 
Join Date: Apr 2005
Location: Poland
Posts: 9,212
Default

Maybe check if ANY changes to your script file work? Maybe there is a permissions issue and your script file isn't actually being saved or is being saved elsewhere, maybe caught by the Compatibility Layer thing in Windows or idk what else...
Dustie is offline   Reply With Quote
Old 04-08-19, 11:47   #8
TR-Freak
Professor
 
TR-Freak's Avatar
 
Join Date: Jan 2008
Location: Deutschland
Posts: 4,560
Default

Quote:
Originally Posted by LoreRaider View Post
Try to reinstall NG_center, it happens sometimes that when you add or remove folders from it, scripted triggers doesn't work unless you reinstall the program
that was it. reinstalling helped.
TRNG is retarded
__________________
"Your perception of good timing is...bad!"
TR-Freak is offline   Reply With Quote
Old 04-08-19, 16:44   #9
SrDanielPonces
Relic Hunter
 
SrDanielPonces's Avatar
 
Join Date: Apr 2012
Location: Portugal
Posts: 8,694
Default

I would tell you to replace Tomb_NextGeneration.dll with the one in ng_center because that usually solves the issue, but i'm glad it's working now
SrDanielPonces is offline   Reply With Quote
Old 04-08-19, 16:56   #10
JMN
Historian
 
Join Date: Sep 2006
Posts: 479
Default

When you add a new TRLE folder in NG Center, you need to restart it and go through the Updates flow again to make sure the folder is using the latest TRNG version.
JMN is offline   Reply With Quote
Reply

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 04:25.


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