So, I'm new to scripting and (re)started a module and want to implement new stuff into it.
So I started with something fairly simple:
#include "x2_inc_switches"
void main()
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;
}
The thing is: I don't see any error in this script but it's saying that "if (GetTag(oItem) == "SRBwand")" is wrong "Unknows State in Compiler" I already searched everywhere but when I compare the correct scripts, they look exactly the same as mine. I don't know what to do.





Retour en haut






