Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
Joined: Nov 2017
T
stranger
OP Offline
stranger
T
Joined: Nov 2017
Hello

I'm creating my own GM campaign, but I'm stuck in a no-problem and my little experience does not help me. I would like to hide the secret passages in the mini-game and I would also not allow players simply moving the camera to see the walls of the secret rooms, is there a way to make it black until the characters open the door or enter the area? Both in the game and in the minimap?

Joined: Dec 2013
old hand
Offline
old hand
Joined: Dec 2013
That's what SecretRegionTrigger is for. Look for it in the root templates under triggers.


DOS2 Mods: Happily Emmie After and The Noisy Crypt

Steam Workshop
Nexus Mods
Joined: Nov 2017
T
stranger
OP Offline
stranger
T
Joined: Nov 2017
Mmmh, ok i set thesecretregiontrigger and now it doesnt appear on minimap and in game and it's cool but... when i open the secret wall is still black, and if i go inside is still dark smirk

I need a script?!

Joined: Dec 2013
old hand
Offline
old hand
Joined: Dec 2013
Ah, apparently so, I had forgotten that. Looks like you need to call UnlockSecretRegion() with the trigger GUID you want to unlock.


DOS2 Mods: Happily Emmie After and The Noisy Crypt

Steam Workshop
Nexus Mods
Joined: Nov 2017
T
stranger
OP Offline
stranger
T
Joined: Nov 2017
So, the way is.

I put the secret region trigger.

Storyscript/addnewsubitem

IF
Characterenteredtrigger(_Player, triggerguid)
THEN
Unlocksecretregion(triggerGUID);

Is this correct!?

Joined: Dec 2013
old hand
Offline
old hand
Joined: Dec 2013
That's the gist of it. You may need to register your trigger so that it generates Osiris events though. In the INIT section of the same goal you may need to add TriggerRegisterForPlayers(triggerGUID)


DOS2 Mods: Happily Emmie After and The Noisy Crypt

Steam Workshop
Nexus Mods
Joined: Nov 2017
T
stranger
OP Offline
stranger
T
Joined: Nov 2017
Okay, I'm trying for two hours and I do not have the least of how to do it smirk It's frustrating

Joined: Dec 2013
old hand
Offline
old hand
Joined: Dec 2013
Post your code here and maybe we can sort it out.


DOS2 Mods: Happily Emmie After and The Noisy Crypt

Steam Workshop
Nexus Mods
Joined: Sep 2017
veteran
Offline
veteran
Joined: Sep 2017
Make sure these things are in place, and it should work:

1) - Have the secretregiontrigger in place, and being both sufficiently below ground and above what ever should be hidden.

[Linked Image]

2) - The trigger needs to know it's locked. Put "LockSecretRegion(TRIGGERGUID_SecretRegionTrigger_000_117f85c7-0f28-4636-a01b-5c3ddb614853);" in the INIT section.

[Linked Image]

3) - Make the hidden region unlock after an event of your choice, in my example case after clicking the "Rabbit Goes Boom Lever". Yes, I like exploding rabbits.

Add this under THEN in KB section.
"UnlockSecretRegion(TRIGGERGUID_SecretRegionTrigger_000_117f85c7-0f28-4636-a01b-5c3ddb614853);"
[Linked Image]

4) - And likely the missing cause in your case, open Level > Level Data and make sure "Hide Shroud" is set to 'False'.

[Linked Image]



Then it should work.

[Linked Image]





Moderated by  Larian_KVN 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.5