I want to check for item when PC opens door then set random of 4 chooses local int on pc and party.
Here's what I have so far.
object oPC = GetLastOpenedBy();
if (!GetIsPC(oPC)) return;
if (GetItemPossessedBy(oPC, "mg_key1")== OBJECT_INVALID)
object oPartyM = GetFirstFactionMember(oPC);
// If not in party avoid loop
oPartyM = GetNextFactionMember(oPC);
thnx in advance as always