TheProphet Posted August 11, 2005 Share Posted August 11, 2005 Hey everyone, I am having a problem, I have made a script for the ebon hawk module that makes a dialog fire when it starts. I put the script on the onEnter struct of the .are file. And the tag for the character as well as the dlg name in the script match the only thing i am doing differently is the npc that is supposed to speak the dialog comes in with the player from another module, but has the tag im looking for. Shouldnt he say the dialog when the player enters? Or should i put it on the OnHearbeat. Link to comment Share on other sites More sharing options...
stoffe Posted August 11, 2005 Share Posted August 11, 2005 I am having a problem, I have made a script for the ebon hawk module that makes a dialog fire when it starts. I put the script on the onEnter struct of the .are file. And the tag for the character as well as the dlg name in the script match the only thing i am doing differently is the npc that is supposed to speak the dialog comes in with the player from another module, but has the tag im looking for. Shouldnt he say the dialog when the player enters? Or should i put it on the OnHearbeat. Don't know if this is the problem in your case, but anything that interacts with the player character in an OnEnter script should be delayed by about a second or so to allow the player object time to properly spawn in the area. I've noticed that strange things can happen if you don't do this. Also note that the OnEnter script does not only fire when the player character is spawned into the area, but any time any creature is spawned into the arena. Thus if you haven't blocked out the script so it only does things if it's the player that enters, chances are that your code has already been triggered before the player has entered the area when one of the pre-placed NPCs (if any) are spawned. Link to comment Share on other sites More sharing options...
TheProphet Posted August 11, 2005 Author Share Posted August 11, 2005 Well that has never happened to me before with onEnter script. Also, there are no npc's in the module, save the ones I already have. EDIT: Also, when i go to the character he does not say his dialog which is in the module. Link to comment Share on other sites More sharing options...
TheProphet Posted August 11, 2005 Author Share Posted August 11, 2005 AAAAAAAAAAAAAAHHHHHHHAAAAAAAAAAAA!!!!!!!! I figured it out, the tags in the dlg listener struct did not match ace's tag. STUPID STUPID STUPID! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.