Is there any trigger for a script that checks selected party member. Meaning, I only want the script to trigger if he is selected. If I select a different party member, their script is triggered.

Selected party member trigger
#1
-wolpak-
Posted 19 March 2014 - 06:00 PM
#2
Posted 20 March 2014 - 01:14 AM
No. The closest is IsGabber(<playerno>) but that only triggers in a dialogue.
-Y-
'Go for the optics, Chiktikka. GO FOR THE OPTICS!!' - Tali vas Neema
DLTCEP Tutorials Update Page
DLTCEP Tutorials Main Page
Yovaneth's AI Scripts for BG1, BG2-SoA and IWD1
Fishing for Trouble - a quest mod for Shadows of Amn
#3
Posted 20 March 2014 - 01:39 AM
I'm not sure, but it sounds very much like "Select Kelsey and press K" thingy that only works if Kelsey is selected. To make it happen, you add a short script to Kelsey's script file.
Maybe it's worth it to just add short scripts to all possible party members, Jaheira, Coran, etc? Would require lots of hassle, though, if it's not one specific NPC.
IWD NPC, Xan, The Sellswords, Back to Brynnlaw, Assassinations, Dungeon Crawl, Reunion, Branwen, Coran, Tiax, Xan BG1 Friendship
BG1 NPC, Romantic Encounters
#4
-wolpak-
Posted 20 March 2014 - 04:52 AM
Basically I have tokens that are displayed on the record screen, but right now, they don't make sense since they are displaying ALL players tokens and not just the highlighted player.
It's possible editing the tokentext.2da file, but that only runs on startup, thus, if the variable changes, I have to log out and log back in to see it.