Exile007
06-19-2008, 12:10 AM
Hello there Holowan,
I have NO idea why the hell this script is not working! It is fine as far as I can tell, yet for some reason it will not work!:firemad:
What I'm trying to do is fairly simple. I'm trying to start a conversation that will only fire off once, as soon as I enter a module. I have attached it to the OnEnter part of the .are file. :firemad:
void main()
{
int i = GetGlobalNumber("833_sith");
if(i==0) {
object oPC=GetFirstPC();
object oSith=GetObjectByTag("g_cradus");
ActionDoCommand(SetCommandable(TRUE, oSith));
AssignCommand(oSith, ActionStartConversation(oPC, "open"));
SetGlobalNumber("833_sith", 1);
}
}
If someone could tell me what I did wrong, I would greatly appreciate it. I probably missed something too.
Please excuse me if I sound too pissed off, you must understand I have been at trying to make this work for three days. :p
I have NO idea why the hell this script is not working! It is fine as far as I can tell, yet for some reason it will not work!:firemad:
What I'm trying to do is fairly simple. I'm trying to start a conversation that will only fire off once, as soon as I enter a module. I have attached it to the OnEnter part of the .are file. :firemad:
void main()
{
int i = GetGlobalNumber("833_sith");
if(i==0) {
object oPC=GetFirstPC();
object oSith=GetObjectByTag("g_cradus");
ActionDoCommand(SetCommandable(TRUE, oSith));
AssignCommand(oSith, ActionStartConversation(oPC, "open"));
SetGlobalNumber("833_sith", 1);
}
}
If someone could tell me what I did wrong, I would greatly appreciate it. I probably missed something too.
Please excuse me if I sound too pissed off, you must understand I have been at trying to make this work for three days. :p