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 not working

Page: 1 of 1
 Scorge
11-22-2011, 5:20 PM
#1
Ok, so I have a script that starts a conversation when you enter into the module, I opened the .are file, and change the OnEnter script to the name of my script and then i save it. When I test the module to see if it works, nothing happens. Can someone help me with this? I made sure I got the character tag a name right and everything right, It actually worked before but now it doesnt.
 newbiemodder
11-22-2011, 6:21 PM
#2
First, give us a copy of the script to it can be checked. Second, make sure you are not warping back to the area in a saved game in which you have already been to that area.
 Scorge
11-22-2011, 6:37 PM
#3
 Scorge
11-24-2011, 1:29 PM
#4
Has anybody checked the script yet?
 Fastmaniac
11-24-2011, 1:35 PM
#5
Well, the way I'd do it is the swap the objects:


void main() {

object oNPC=GetObjectByTag("p_quatar01");

ActionDoCommand(SetCommandable(TRUE,oNPC));
AssignCommand (GetFirstPC(), ActionStartConversation(oNPC));

}

It makes more sense to me, the way it is now. Though there might be a problem to trigger the script in the first place...
Page: 1 of 1