I am starting this topic for a second time, because it's driving me nuts. The ga_lock is quite straightforward, yet it fails me like nothing else does. To take the matter from the top:
I have a door, which is locked. When clicked, a conversation starts. Through the conversation, it can be unlocked.
Here is what I've tried:
First of all, the gp_talk_door didn't work, so I made this, which actually fires a convo with an ipoint placeable. It worked.
void main()
{
object oPC = GetFirstPC();
object iPointSpeaker = GetObjectByTag("ips_door_hideout");
AssignCommand(oPC, ActionStartConversation(iPointSpeaker));
}
On the conversation itself now, since this is solved. (However, gp_talk_door is bugged? No idea but I don't care since my script made it work after all ).
ga_lock with params "dr_doc_thug_out" , 0
Not worked.
Fine, I made mine.
void main(string sTag, int bLock)
{
object oTarget = GetObjectByTag(sTag);
SetLocked(oTarget, bLock);
}
Same params, didn't work.
Went to Lilacs:
void main()
{
object oTarget;
// Get the PC who is in this conversation.
object oPC = GetPCSpeaker();
// Unlock "dr_doc_thug_out".
oTarget = GetObjectByTag("dr_doc_thug_out");
SetLocked(oTarget, FALSE);
}
Nope. The only common things all these have, is that they try to unlock the same door, and use SetLocked. I checked the tags a thousand times and all are fine. Also, in case it matters, I've tried to make the door locked, with DC 200. Tried locked with key required, but the key tag blank, tried all together... nothing seems to work. What's going on
?
is it maybe that the ipoint placeable trying to unlock the door can't work? Shouldn't matter, it's just a conversation... Anyway, any ideas appreciated. Thanks a lot!
Edit: The door is from City Hak. Just in case... But I have set it with hp, saving throws and all.





Retour en haut






