Tomb Raider Forums  

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

Reply
 
Thread Tools
Old 17-09-11, 11:03   #1
Laras Boyfr.
Member
 
Laras Boyfr.'s Avatar
 
Joined: Jul 2009
Posts: 4,742
Default Enter "Walking" mode?

Hello there

As Im in need for this of my own project I wanted to ask how I can force Lara to enter the walking mode like in AoD.
So if I press Shift a small icon on the right bottom appears and Lara enters walking mode. If I press shift again to make the icon dissappear and exit walking mode.
So I basically thought to register a variable value for the first time when shift is pressed and with a GT that the variable is X the Walking key would be forced by the engine. But I fear that this would end up in a loop and the variable would be activated the whole time again and again.
Maybe someone can help me in this matter?
Laras Boyfr. is offline   Reply With Quote
Old 17-09-11, 11:57   #2
Raymond
Member
 
Joined: Nov 2007
Posts: 1,689
Default

Why donīt you do simply a GT, which displays the wished image on pressing the shift-key?
Raymond is offline   Reply With Quote
Old 17-09-11, 12:08   #3
Laras Boyfr.
Member
 
Laras Boyfr.'s Avatar
 
Joined: Jul 2009
Posts: 4,742
Default

Quote:
Originally Posted by Raymond View Post
Why donīt you do simply a GT, which displays the wished image on pressing the shift-key?
Hmm have you played AoD, Raymond?

I mean it like that: If you press the "Walk" button once, Lara will enter walk mode and will walk if you simply press the direction keys ( in classic TR you need to HOLD the "walk" key) and she can't run without you pressing "walk" again ( where she exits "walk" mode)
I hope I expressed myself right
Laras Boyfr. is offline   Reply With Quote
Old 17-09-11, 12:35   #4
Raymond
Member
 
Joined: Nov 2007
Posts: 1,689
Default

No,didnīt play AoD.
So simply keep the Walk-button pressed via GT. Whatīs the problem? Why use a variable?
Just experiment and see.
Probieren geht über studieren!
Raymond is offline   Reply With Quote
Old 17-09-11, 13:41   #5
Laras Boyfr.
Member
 
Laras Boyfr.'s Avatar
 
Joined: Jul 2009
Posts: 4,742
Default

Quote:
Originally Posted by Raymond View Post
No,didnīt play AoD.
So simply keep the Walk-button pressed via GT. Whatīs the problem? Why use a variable?
Just experiment and see.
Probieren geht über studieren!
lol yeah I need to know theory before I go into practice lol
But how can I exit from the "walking mode" then, so Lara can run again?
If I force the walk button with a GT Lara wont be able to run at all
Laras Boyfr. is offline   Reply With Quote
Old 17-09-11, 13:54   #6
AODfan
Member
 
AODfan's Avatar
 
Joined: Jun 2010
Posts: 1,503
Default

Maybe you could disable the "press walk key to enable walking mode" GT once she is in the walking mode and enable the "press walk key to enable running mode" GT
AODfan is offline   Reply With Quote
Old 17-09-11, 14:08   #7
Raymond
Member
 
Joined: Nov 2007
Posts: 1,689
Default

You need two GT then and yes,you have to work with a variable.
The first GT forces the walking, sets the bit in a choosen variable and shows the pic under the conditions, that the variable bit is clear and the walk-key pressed. The second GT releases the walk-key, removes the pic and clears the bit under the conditions, that the bit is set and the walk-key pressed.
edit: wait, you have to choose another key to end the walking. To use the walk-key again wouldnīt work, I think.

Last edited by Raymond; 17-09-11 at 14:12.
Raymond is offline   Reply With Quote
Old 17-09-11, 14:29   #8
Laras Boyfr.
Member
 
Laras Boyfr.'s Avatar
 
Joined: Jul 2009
Posts: 4,742
Default

hmm

I tried it with a few GTs and TGs and an Organizer but it wouldnt work properly:

Code:
GlobalTrigger=1,FGT_SINGLE_SHOT_RESUMED,GT_GAME_KEY1_COMMAND,KEY1_WALK,IGNORE,1,IGNORE
TriggerGroup=1,$2000,109,$100, $2000,109,$201, $2000,127,$1   ; disables GT1/ enables GT2 / start Organizer 1
TriggerGroup=3,$2000, 53, $1407 ; simulates pressing of walk button 35 seconds
Organizer=1,FO_TICK_TIME,FO_LOOP,1,3
GlobalTrigger=2,FGT_SINGLE_SHOT_RESUMED+FGT_DISABLED,GT_GAME_KEY1_COMMAND,KEY1_WALK,IGNORE,2,IGNORE
TriggerGroup=2,$2000, 128, $1,$2000, 109, $200,$2000, 109, $101 ; stops Organizer 1 / disables GT2 / enables GT1
Lara would receive the walk command only for a single frame apparently

Last edited by Laras Boyfr.; 17-09-11 at 15:01.
Laras Boyfr. is offline   Reply With Quote
Old 17-09-11, 14:45   #9
Titak
Moderator
 
Titak's Avatar
 
Joined: Jul 2003
Posts: 33,359
Default

Quote:
TriggerGroup=1,$2000, 109, $100,$2000, 109, $201, ; disables GT1/ enables GT2 / start Organizer 1
I don't see the trigger for enabling that Organizer in this TG...
Titak is offline   Reply With Quote
Old 17-09-11, 15:00   #10
Laras Boyfr.
Member
 
Laras Boyfr.'s Avatar
 
Joined: Jul 2009
Posts: 4,742
Default

Quote:
Originally Posted by Titak View Post
I don't see the trigger for enabling that Organizer in this TG...
I just wanted to do this: as I realized that it didnt do any difference

I updated the script btw...
Laras Boyfr. 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 20:48.


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.