Tarot Redhand was right, all I had to do was to put
object oItem = GetItemActivated();
Before putting
if (GetTag(oItem) == "SRBwand")
{
// get the wand's activator and target, put target info into local vars on activator
object oPC = GetItemActivator();
object oMyTarget = GetItemActivatedTarget();
SetLocalObject(oPC, "BPWandTarget", oMyTarget);
location lTargetLoc = GetItemActivatedTargetLocation();
SetLocalLocation(oPC, "BPWandLoc", lTargetLoc);
//Make the activator start a conversation with itself
AssignCommand(oPC, ActionStartConversation(oPC, "everything", TRUE));
return;
}
So it'll look like this
object oItem = GetItemActivated();
if (GetTag(oItem) == "SRBwand")
{
// get the wand's activator and target, put target info into local vars on activator
object oPC = GetItemActivator();
object oMyTarget = GetItemActivatedTarget();
SetLocalObject(oPC, "BPWandTarget", oMyTarget);
location lTargetLoc = GetItemActivatedTargetLocation();
SetLocalLocation(oPC, "BPWandLoc", lTargetLoc);
//Make the activator start a conversation with itself
AssignCommand(oPC, ActionStartConversation(oPC, "everything", TRUE));
return;
}
Thanks alot guys. Sorry for bothering you with such a simple thing... I'm still new into scripting hahaha.