I feel so stupid asking this, but I've been working on it for 3 days with absolutely no success. I've hit a brick wall. I know how stupid this is, but I just can't figure it out.
Here's what I'm trying to do.
PC asks bartender about jobs. Bartender says to go to quest door. Map pin enables at quest house.
Here is the action script attached to the barkeeps covo node...
#include "x0_i0_partywide"
void main()
{
object oTarget;
// Get the PC who is in this conversation.
object oPC = GetPCSpeaker();
// Set a local integer.
SetLocalIntOnAll(oPC, "StachleyMapped", 1);
// Unlock "WidowStachleyDoor".
oTarget = GetObjectByTag("WidowStachleyDoor");
SetLocked(oTarget, FALSE);
SetMapPinEnabled(GetObjectByTag("WidowStanchleysHome"), 1);
}
As you can see I used LS-TK to generate it and modified it with the map pin command.
It's not working. The script compiles but when I test the module no map pin appears, and the quest door stays locked.
I know I must be doing something totally stupid because this isn't my first module. I'm no scripter, but I'm also not a complete noob.
While researching I found a forum thread that suggested the map pin command needed to be in the same area as the pin waypoint so I tried enabling it in a separate script using the integer variable in an if/then. Nothing.
ARRRGHHHH. What am I doing wrong!