It's really pretty easy you just have to compare two things, the variables on the party leader and the activator of the device or the conversation speaker. What do you have so far for a script?
So panic buttons indicate the variables on an item in the PC's possesson,or a converstion node? Just wondering since panic button just is not enough of a definition, as conversations cannot be started while in combat, which might be one reason to panic. Anyway probably easier to use something like my teleport to party leader method and alter it, then put it into a conversation node.
http://nwvault.ign.c....detail&id=2345
Oh, and just pointing out what may be obvious and abundantly clear to you is not necessarily so to others.
but you could probably do it with just a few lines.
object oPC = GetPCSpeaker();
object oPCL = GetFactionLeader(oPC);
//object oItem ToCheck = GetItemPossessedBy(oPC, "tagofitem"); if the varibles are on an item. then instead you would have to add one for each the oPC and the oPCL and check them against eachother.
if (((GetLocalInt(oPCL, "variable")==TRUE) && (GetLocalInt(oPC, "variable")==TRUE) || (GetLocalInt(oPC, "variableA")==TRUE)))//just add or for additional varibles
{
AssignCommand(oPC, JumpToObject(oPCL));
}
else if //restate the case for other variable on leader etc...
//if failure occurs, the variables don't allow the teleportation
{
SendMessageToPC(oPC, "You can't teleport to your leader with the current configuration of the atlantis pr-gression.");
return;
}
Modifié par ffbj, 20 octobre 2011 - 11:28 .