jastey Posted October 6, 2018 Share Posted October 6, 2018 I'm adding script blocks to SoD's bdrom01.bcs which should be triggered by any party-related creature, hence I am using [PC] for detection. But neither "Detect([PC])", "IsOverMe([PC])", nor "Range([PC],20)" makes the script do anything if my party is on it. Is this a known thing or am I doing something wrong? IsOverMe(Player1) works. I could live with an OR(6) for all party members, but I know there are area trigger scripts in BGII that use "Detect([PC]) Range([PC],20)" (for example "VAMPSTTP.bcs") so I thought it should be a valid trigger if I also want familiars or charmed creatures to activate the trigger. Quote Link to comment
DavidW Posted October 6, 2018 Share Posted October 6, 2018 Why it’s not triggering, I’ve no idea. But use [GOODCUTOFF] rather than [PC] if you want to catch allies. Quote Link to comment
Jarno Mikkola Posted October 6, 2018 Share Posted October 6, 2018 Isn't [PC] just the Player Character, not his allies ? Quote Link to comment
Ardanis Posted October 6, 2018 Share Posted October 6, 2018 (edited) Is this a known thing or am I doing something wrong? Yes, some of SoD's romance triggers have visibility issues. Dynamic objects like [PC] or [GOODCUTOFF] require them to be within script owner's direct line of sight to return true. With doors and ground triggers the script's coordinates are at the center of bounding box, so with very large triggers or obstacles over them it's possible for script to not see the entire trigger's area. Or for a door to be blind on its southern side. Use static objects, like PlayerX or death variable name. If you need it to be any friendly creature, however, then it might get complicated, because as David says you do need a wildcard to match them. I could suggest to split the trigger into few smaller ones, sharing the script. It might be possible to activate both parts of it simultaneously, so to avoid duplication you may need to move the desired action into area script and have the trigger only set the activation variable. Edited October 6, 2018 by Ardanis Quote Link to comment
jastey Posted October 7, 2018 Author Share Posted October 7, 2018 Thank you all for the info! I didn't know about the visibility issues due to the huge trigger areas. So far, using OR(6) Player1-6 works for my purpose, and that's also acceptable. Quote Link to comment
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.