Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
Joined: Sep 2017
M
monzua Offline OP
member
OP Offline
member
M
Joined: Sep 2017
HI I use: PUZ_Raanaar_PressurePlate_1_4 3e3e6912-6f0a-447c-8abc-1b2d6bad00a3

How do I Setup that it teleports Player if user steps on it? From my understanding OnUse doesnt work because i dont use it but step on. Any idea?

thx

Joined: Sep 2017
M
monzua Offline OP
member
OP Offline
member
M
Joined: Sep 2017
And god please dont tell me to put a trigger above it - haha - that would result in so much work for me xD

Joined: Jun 2013
addict
Offline
addict
Joined: Jun 2013
Put a trigger above it. That way, you are sure it won't work, and you won't know why, while wasting hours into it. I tried it myself, it worked great ;-)


Un chemin de 1000 lieues commence par un premier pas.

Project:
Steam workshop Frontiere
Joined: Sep 2017
M
monzua Offline OP
member
OP Offline
member
M
Joined: Sep 2017
I understood I need to create an Event for "EventOn" to attach it to PUZZLE_PressurePlate. But how can I create an Event and how do I declare that I want to teleport _Player to specific Location?

Thanks!

Edit: Lol crom xD

Last edited by monzua; 09/10/17 02:12 PM.
Joined: Oct 2017
Location: United Kingdom
journeyman
Offline
journeyman
Joined: Oct 2017
Location: United Kingdom
Could put an event trigger over the pressure plate then set its region bounds over the pressure plate. Then a teleport trigger somewhere. Then in a script:

Code
IF
CharacterEnteredTrigger(your-CHARACTERGUID,yourtriggerGUID)
THEN
TeleportTo(your-CHARACTERGUID,your-teleport-TRIGGERGUID);

Joined: Sep 2017
M
monzua Offline OP
member
OP Offline
member
M
Joined: Sep 2017
yes I can do that but thats bad practice I guess if there is already a script in place from the item to execute Code -I just dont know how to do it.

Joined: Dec 2013
old hand
Offline
old hand
Joined: Dec 2013
I haven't used that specific item but I would expect it to work similarly to the pressure plate items I used. In the scripts property of the plate, make sure PUZZLE_PressurePlate is attached. Then look at the properties. You will see EventOff and EventOn input variables. You can enter text strings there and whenever they are activated you will get an associated CharacterItemEvent event to fire.

For instance, my pressure plates had 'activate' for EventOn and 'deactivate' for EventOff. I would catch the plates triggering with:

Code
IF
CharacterItemEvent(_, ITEMGUID_PUZ_PressurePlate_Floor_Left_891a0d4f-4ced-446d-ad8c-fa34b6b4c086, "activate")
THEN
...

IF
CharacterItemEvent(_, ITEMGUID_PUZ_PressurePlate_Floor_Left_891a0d4f-4ced-446d-ad8c-fa34b6b4c086, "deactivate")
THEN
...


The first argument is the character GUID, which I did not need, but you could grab that value and use it to teleport the character that activated the plate.


DOS2 Mods: Happily Emmie After and The Noisy Crypt

Steam Workshop
Nexus Mods
Joined: Sep 2017
M
monzua Offline OP
member
OP Offline
member
M
Joined: Sep 2017
thanks <3


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