okay here is a small script for a quest that I have been working on. Basically what it does it destroys the first NPC that is talking and basically replaces it with a hostile creature that the pc needs to kill.
void main(){PWSetMinLocalIntPartyPCSpeaker("p021state_SubstituteMs", 4);PWSetMinLocalIntPartyPCSpeaker("p021state", 4);object oTarget;object oTarget;object oSpawn;effect eVFX;object oSelf = OBJECT_SELF;// Get the PC who is in this conversation.object oPC = GetPCSpeaker();// Destroy an object (not fully effective until this script ends).eVFX = EffectVisualEffect(VFX_FNF_HOWL_ODD);ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX, oSelf);DestroyObject(oSelf, 3.0);// Spawn "creature006".oTarget = GetWaypointByTag("WP_SHE_MANTIS_001");oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "creature006", GetLocation(oTarget));AssignCommand(oSpawn, DetermineCombatRound(oPC));}
though I do seem to be getting an error with: AssignCommand(oSpawn, DetermineCombatRound(oPC));
ERROR: UNDEFINED IDENTIFIER (DetermineCombatRound).
so what did I do wrong here?





Retour en haut







