Hi all,
I have a complicated quest I'd like to set up and would like advice on if I'm going about it the right way or if there's a better way to do it.
The quest involves knights finding 7 shrines. Each discovery will give the knight a new variable...(For instance: find a shrine, get variable 1, find another shrine, change 1 to 2, and so on)... and once they've found all 7 (meaning their variable is now 7), they return to the knight's hall where they'll receive a reward.
It doesn't matter which order they find the shrines in and they should only do this one time.
So, the script would go something like this and be placed on each shrine?
(used LilacSoul's generator)
//Put this script OnUsed
void main()
{
object oPC = GetLastUsedBy();
if (!GetIsPC(oPC)) return;
int DoOnce = GetLocalInt(oPC, GetTag(OBJECT_SELF));
if (DoOnce==TRUE) return;
SetLocalInt(oPC, GetTag(OBJECT_SELF), TRUE);
int nInt;
nInt = GetLocalInt(oPC, "Virtue Shrine");
nInt += 1;
SetLocalInt(oPC, "Virtue Shrine", nInt);
}
Thanks in advance.
'>