Large Scorpion pickup solved

builders help builders

Moderator: eTux

Post Reply
User avatar
justin
Senior Member
Senior Member
Posts: 1967
Joined: 08 Dec 2001 01:38
Location: CT, USA

Large Scorpion pickup solved

Post by justin » 04 Aug 2019 20:19

Hi everyone! So I know this has always been a weird issue with TR4: the Big Scorpion can't hold an item to be dropped. Franky asked me what the problem is, and I remembered that it was the way it is. But I knew there must be a way around it.

I'm not sure if anyone else has toyed with this, but I found a solution:

First, place your big scorpion, for me, ID 837

Second, place the item you want him to "hold" somewhere hidden from sight, my item ID is 838

Next, add a triggergroup in your script for "Scorpion is dead" (or use a globaltrigger for enemy is dead if you like):
triggergroup= 110,$9000, 837, $E

Next up, the fun part, a trigger to grab the position of the scorpion, and then to move the puzzle item to said position:
triggergroup= 111,$5000, 837, $37,$5000,838, $39

$5000, 837, $37 saves the position of an item's x,y,z,room info to a Variable, in this case: Store LongA
$5000,838, $39 moves an item to the stored position of Store LongA (centering the item correctly)

Then we just add the global trigger to make it happen, and we have all of this in the script:

triggergroup= 110,$9000, 837, $E ;Scorpion is dead
triggergroup= 111,$5000, 837, $37,$5000,838, $39 ;Save position of scorpion, move item to saved position
globaltrigger= 30,FGT_SINGLE_SHOT,GT_CONDITION_GROUP,IGNORE,110,111,IGNORE


I know it will help Franky, figured it could help others :)
Dark Skies loom...
Image

User avatar
franky
Newbie
Newbie
Posts: 51
Joined: 10 Jan 2012 11:32

Re: Large Scorpion pickup solved

Post by franky » 05 Aug 2019 11:57

justin wrote:
04 Aug 2019 20:19
Hi everyone! So I know this has always been a weird issue with TR4: the Big Scorpion can't hold an item to be dropped. Franky asked me what the problem is, and I remembered that it was the way it is. But I knew there must be a way around it.

I'm not sure if anyone else has toyed with this, but I found a solution:

First, place your big scorpion, for me, ID 837

Second, place the item you want him to "hold" somewhere hidden from sight, my item ID is 838

Next, add a triggergroup in your script for "Scorpion is dead" (or use a globaltrigger for enemy is dead if you like):
triggergroup= 110,$9000, 837, $E

Next up, the fun part, a trigger to grab the position of the scorpion, and then to move the puzzle item to said position:
triggergroup= 111,$5000, 837, $37,$5000,838, $39

$5000, 837, $37 saves the position of an item's x,y,z,room info to a Variable, in this case: Store LongA
$5000,838, $39 moves an item to the stored position of Store LongA (centering the item correctly)

Then we just add the global trigger to make it happen, and we have all of this in the script:

triggergroup= 110,$9000, 837, $E ;Scorpion is dead
triggergroup= 111,$5000, 837, $37,$5000,838, $39 ;Save position of scorpion, move item to saved position
globaltrigger= 30,FGT_SINGLE_SHOT,GT_CONDITION_GROUP,IGNORE,110,111,IGNORE


I know it will help Franky, figured it could help others :)
Hi Justin
To say that you are exceptional is little, you are really very good and very clear in your explanations and I do not know how to thank you, you are a genius.

I followed your instructions to the letter and would like some explanation:
My SCORPION has ID = 1487
My PUZZLE_ITEM11 has ID = 1490


so in my SCRIPT I added:
triggergroup = 110, $ 9000, 1487, $ E
triggergroup = 111, $ 5000, 1487, $ 37, $ 5000.1490, $ 39
globaltrigger = 40, FGT_SINGLE_SHOT, GT_CONDITION_GROUP, IGNORE, 110,111, IGNORE

1st) triggergroup = 110, $ 9000, 1487, $ E
QUESTION: what is the explosion of the exported trigger?
 
2nd) triggergroup = 111, $ 5000, 1487, $ 37, $ 5000.1490, $ 39
QUESTION: what is the explosion of exported triggers?

P. S .: I would never have arrived alone

Hi and thanks again
Franky

User avatar
justin
Senior Member
Senior Member
Posts: 1967
Joined: 08 Dec 2001 01:38
Location: CT, USA

Re: Large Scorpion pickup solved

Post by justin » 05 Aug 2019 15:04

Of course! Also, you can easily find the trigger info by copying the script, like $ 9000, 1487, $ E, going into NGLE, click on the trigger window, and select Find Trigger Number, then paste in $ 9000, 1487, $ E

it will give you
Object
Scorpion ID 1487
Condition
Creature. <#>Creature is currently (E)
Enemy is dead

Sometimes it doesn't translate it completely, like it may have the (E)xtra: field blank

So $ 9000, 1487, $ E is:

; Set Trigger Type - Condition 14
; Exporting: Condition(14:62) for Object(1487)
; <#> : Scorpion ID 1487 in sector
; <&> : Creature. <#>Creature is currently (E)
; (E) : Enemy is dead
; Values to add in script command: $ 9000, 1487, $ E


$ 5000, 1487, $ 37 is:

; Set Trigger Type - Action 55
; Exporting: Trigger(55:62) for Action(1487)
; <#> : Scorpion ID 1487 in sector
; <&> : Variables. Save the position of <#>Moveable from (E)Store Variable (x,y,z,room)
; (E) : Store Long A
; Values to add in script command: $ 5000, 1487, $ 37

$ 5000, 1490, $ 39 is:

; Set Trigger Type - Action 57
; Exporting: Trigger(57:62) for Action(1490)
; <#> : Puzzle Item ID 1490 in sector
; <&> : Variables. Move <#>Moveable to position saved from (E)Store Variable (center)
; (E) : Store Long A
; Values to add in script command: $ 5000, 1490, $ 39
Dark Skies loom...
Image

User avatar
Titak
Member
Member
Posts: 881
Joined: 04 Sep 2003 10:47
Location: Drenthe, The Netherlands

Re: Large Scorpion pickup solved

Post by Titak » 17 Aug 2019 11:31

Nice one justin! :2thumbsup:


Btw, are you a member over at TRF?
Because we have a tutorial section there and this info would be a nice tutorial. :D
Or if you are not a member there, may I post it, giving you credits?
Nothing is in contradiction with nature,
only in contradiction with what we know of it.


Image

User avatar
justin
Senior Member
Senior Member
Posts: 1967
Joined: 08 Dec 2001 01:38
Location: CT, USA

Re: Large Scorpion pickup solved

Post by justin » 17 Aug 2019 15:46

I defected from trf during the Lara's Home mess years ago :)

Before that happened, I was the sole Level Editor mod for them :D

So as it stands, you can totally post this info there on my behalf :)
Dark Skies loom...
Image

User avatar
Titak
Member
Member
Posts: 881
Joined: 04 Sep 2003 10:47
Location: Drenthe, The Netherlands

Re: Large Scorpion pickup solved

Post by Titak » 18 Aug 2019 20:18

Thanks. :2thumbsup:


Btw, shouldn't the GlobalTrigger be inactive at first?
Because "enemy is dead" also means "not triggered yet".
Or am I mistaken here? :thinking:


Here it is: https://www.tombraiderforums.com/newthr ... hread&f=28
Good this way?
Nothing is in contradiction with nature,
only in contradiction with what we know of it.


Image

User avatar
justin
Senior Member
Senior Member
Posts: 1967
Joined: 08 Dec 2001 01:38
Location: CT, USA

Re: Large Scorpion pickup solved

Post by justin » 18 Aug 2019 21:37

As far as I know, "creature is dead" is not the same as "creature hasn't yet been active." Either way, it appears to have worked with a few tests as is :)
Dark Skies loom...
Image

User avatar
Titak
Member
Member
Posts: 881
Joined: 04 Sep 2003 10:47
Location: Drenthe, The Netherlands

Re: Large Scorpion pickup solved

Post by Titak » 20 Aug 2019 12:04

Then it is good this way. :2thumbsup:
Nothing is in contradiction with nature,
only in contradiction with what we know of it.


Image

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests