View Single Post
Old 03-30-2013, 03:40 AM   #11
arsenalforever
Rookie
 
Join Date: Apr 2012
Posts: 65
So my final code will be:

Code:
void main()
{
ExecuteScript("k_ai_master", OBJECT_SELF, KOTOR_DEFAULT_EVENT_ON_HEARTBEAT);

if(GetLastPerceived() == GetFirstPC)
{
ExecuteScript("talk", OBJECT_SELF);
}
}
right?

The script me and zbyl2 made is saved by the name of "talk.ncs" on the desktop.
Also, I have a few questions regarding the above script:

1. What do the second and third parameter indicate in the ExecuteScript function?
2. Can you explain what the if condition actually means? What does it do? Thanks.
3. What name should I save the above script as? What should I do next?
4. What should I write in place of "KOTOR_DEFAULT_EVENT_ON_HEARTBEAT"?

Last edited by arsenalforever; 03-30-2013 at 03:56 AM.
arsenalforever is offline   you may: quote & reply,