www.tombraiderforums.com  

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

Reply
 
Thread Tools
Old 11-04-21, 20:49   #1
Richard_trle
Explorer
 
Richard_trle's Avatar
 
Join Date: Aug 2003
Location: Brazil
Posts: 747
Default Specific order walkaround puzzle

Hey everyone, Richard in here!

I came up with the idea of puzzle

There are a set of 4 tiles



If Lara walks on the on the right order, the puzzle is activated.

But the question is, how would I achieve such a thing?
Richard_trle is offline   Reply With Quote
Old 11-04-21, 21:12   #2
Raider99
Professor
 
Raider99's Avatar
 
Join Date: Nov 2011
Location: Serbia
Posts: 4,817
Default

I did similar setup, only with switches. I used local variables combined with conditions inside a TriggerGroup. So each square can have one TriggerGroup trigger on it (multiple performing to check conditions) and the setup was like this:

Each time you step on right square, value is increased by 1 in variable of your choosing (let's say Local byte alfa 1), so the next square has TG that checks if value is 1, if so, it is increased to 2, if not, it's set back to 0 as a reset.

So if the order there (from left to right) is like 1 3 2 4, first checks is value 1, second square checks if value is 3, then 2 and 4. If not, variable is reset to 0, if it's correct, it gets incremented.

Hopefully my explanation wasn't too confusing and maybe someone has simpler solution for this!
Raider99 is offline   Reply With Quote
Old 11-04-21, 22:40   #3
Mulf
Archaeologist
 
Mulf's Avatar
 
Join Date: May 2001
Location: Hamburg, Germany
Posts: 1,241
Default

Well, I would simply use Trigger Triggerers. Freeze all triggers except those on the first ('correct') tile, stepping on which activates the TT on tile #2 while the rest remain frozen; and so on.
Mulf is offline   Reply With Quote
Old 12-04-21, 01:06   #4
Richard_trle
Explorer
 
Richard_trle's Avatar
 
Join Date: Aug 2003
Location: Brazil
Posts: 747
Default

Quote:
Originally Posted by Raider99 View Post
I did similar setup
Yes, I was pretty much thinking that way,

I have a question, does a TGROUP_ELSE works with a TGROUP_NOT? I have a condition which checks if the variables IS NOT equal to lets say 1, but I think TRNG has no direct check or parse similar to != (not equal)

or am I mistaken?

/edit But Mulf, how would I reset the order with TTs? If Lara steps on the wrong obj

/edit2

THANKS EVERYONE!!!

I made it, the puzzle works, thank you very much!

Last edited by Richard_trle; 12-04-21 at 03:38.
Richard_trle is offline   Reply With Quote
Old 12-04-21, 07:10   #5
Mulf
Archaeologist
 
Mulf's Avatar
 
Join Date: May 2001
Location: Hamburg, Germany
Posts: 1,241
Default

Quote:
Originally Posted by Richard_trle View Post
/edit But Mulf, how would I reset the order with TTs? If Lara steps on the wrong obj
Well, that's where the old rollingball trick would come in. To be honest, I'm not sure whether the setup would be any less complex than scripting variables, objectively speaking. But I'm old-school, so for me it looks like it. Also, I'm never quite sure which script commands make it into a savegame and which don't.
But since you got it to work anyway, no need to dwell on it. Congrats!

Last edited by Mulf; 12-04-21 at 07:13.
Mulf 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 22:27.


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