Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
Joined: May 2017
Location: Europe (GMT+1)
enthusiast
OP Offline
enthusiast
Joined: May 2017
Location: Europe (GMT+1)
With scripting opened for GM Mode levels I thought I'd do a little test with teleporting between levels within the same project. It seems to work just fine, but only once.

I can teleport from A to B, or B to A but not teleport back, or again after switching the scene as GM.

I am aware of it's limited use but would realy like to get this to work.
Any suggestions?


My GM Add-ons on Steam.
Joined: Sep 2017
veteran
Offline
veteran
Joined: Sep 2017
Not that I've done any testing on it myself, but how are you initiating the teleport? Typically if you want to teleport cross levels, the triggers must be set to global and you could also use the TeleportParties call to teleport the entire party. Is some at a glance thoughts anyway.

Joined: May 2017
Location: Europe (GMT+1)
enthusiast
OP Offline
enthusiast
Joined: May 2017
Location: Europe (GMT+1)
I'm using hatches or doors, tried both. Tested as GM, posessed NPC and player.
What bugs me is that it works, but only once.
Only way to have it work once again seems to be creating a new GM Campaign.

TeleportParties? Sounds like scripting to me.
Is it a standard script I can set to the door/hatch??


My GM Add-ons on Steam.
Joined: May 2017
Location: Europe (GMT+1)
enthusiast
OP Offline
enthusiast
Joined: May 2017
Location: Europe (GMT+1)
Thanks to a tip from The Composer (make it a story goal) and RestingLichFace who was kind enough to write the script it works!
So automated teleporting between levels in GM Mode now is possible.
The funny thing is that it even teleports a single player (who will be stuck in the destination level untill the GM activates that level) if you don't set the script to actually teleport the whole party.

He're is a copy of the script for those who like me don't script themselves.

Quote
INIT
DB_Redunzgofasta_Teleporters( <EnterEventTrigger>, <TeleportDestinationTrigger>);

KB
IF
CharacterEnteredTrigger((CHARACTERGUID)_Char,(TRIGGERGUID)_Trig)
AND
DB_Redunzgofasta_Teleporters(_Trig,_Destination)
THEN
TeleportTo(_Char,_Destination,"InsertEventNameIfYouWant",0); //change 0 to 1 if you want to teleport all characters in party)

[Linked Image]
Use an Event Trigger for the teleporter and a Teleport Trigger for the destination.
Don't forget to set the name of your OnEnter Event of the triggers to the name of your script!

Last edited by Redunzgofasta; 20/09/18 06:09 PM.

My GM Add-ons on Steam.

Moderated by  Larian_KVN 

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