Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Onenter script woes

Page: 1 of 1
 Fallen Guardian
05-22-2011, 1:14 AM
#1
So, with my "beautiful" onenter script there is one problem. For some reason, it does not execute old_k_pdan_14b_area.

void main()
{


if (!GetLocalBoolean(OBJECT_SELF, 40) && (GetEnteringObject() == GetFirstPC())) {


if (GetGlobalBoolean("MERC_ASSIGN")){

SetLocalBoolean(OBJECT_SELF, 40, TRUE);


CreateObject(OBJECT_TYPE_CREATURE, "n_merc02", Location(Vector(559.64, 50.61, 7.70), 0.0));
CreateObject(OBJECT_TYPE_CREATURE, "n_doha", Location(Vector(566.85, 51.61, 7.57), 180.0));
CreateObject(OBJECT_TYPE_CREATURE, "n_merc01", Location(Vector(560.04, 53.33, 7.76), 0.0));
CreateObject(OBJECT_TYPE_CREATURE, "n_aramil", Location(Vector(561.50, 52.10, 7.72), 0.0));

}
ExecuteScript("old_k_pdan14b_area", OBJECT_SELF);
}
}

Can anyone help?
 TimBob12
05-22-2011, 2:34 AM
#2
I may be mistaken and thinking of dialogue but I do believe that filenames cannot be more than 16 characters. Yours is 18. Try reducing it to something different.
 Fallen Guardian
05-22-2011, 10:49 AM
#3
Well it worked before and I think you were the one who told me to do that. But, I'll try that.
 Fallen Guardian
05-22-2011, 4:50 PM
#4
Wow, after intense study of my script I have realized I made one of the stupidest mistakes ever. The file name for the script that was supposed to execute was wrong, so problem solved. If a mod could close this thread?
Page: 1 of 1