Greetings.
I have been now for over a day attempting to work on a script that goes on 'On perception Script' of a NPC.
What I am looking to attempt is to make it so the NPC will check a PC when it comes into the NPC's perception field for the invisibility effect and if true, it will run up to him and fire up a conversation.
So far I have not been able to see what I am doing wrong, but here's the coding I have so far:
void main()
{
object oPC = GetLastPerceived();
int GetEffectType = oPC;
if (!GetIsPC(oPC)) return;
if (!GetLastPerceptionSeen()) return;
if (GetEffectType(EFFECT_TYPE_INVISIBILITY, oPC))
{
ActionStartConversation(oPC, "CONVERSATION");
}
}
Being fairly new myself to scripting, I thank anyone that might be able to help me with this in advance.





Retour en haut






