noname35 Posted February 26, 2012 Share Posted February 26, 2012 I'm currently working on a recruitment mod and I'm at the testing stage. I used tk's dlg editor to attach a script to dialog, but when I get in game nothing fires . So, any help would be appreciated. Link to comment Share on other sites More sharing options...
Fastmaniac Posted February 26, 2012 Share Posted February 26, 2012 Maybe you should post the code of the script for us to check... Link to comment Share on other sites More sharing options...
noname35 Posted February 26, 2012 Author Share Posted February 26, 2012 Here you go: void main() { RemoveAvailableNPC(5); AddAvailableNPCByTemplate(5, "p_bendak"); ClearAllActions(); DelayCommand(1.5,ShowPartySelectionGUI()); } Link to comment Share on other sites More sharing options...
Fastmaniac Posted February 26, 2012 Share Posted February 26, 2012 void main() { RemoveAvailableNPC(5); AddAvailableNPCByTemplate(5, "p_bendak"); ClearAllActions(); DelayCommand(1.5,ShowPartySelectionGUI()); } Seems right to me... Did you put the dialog file and the compiled script into the override? Also, are you sure to trigger the node with the script attached? Link to comment Share on other sites More sharing options...
noname35 Posted February 26, 2012 Author Share Posted February 26, 2012 Yes. Maybe my template resref isn't p_bendak. I should check that.... Link to comment Share on other sites More sharing options...
Fastmaniac Posted February 26, 2012 Share Posted February 26, 2012 It depends on what string you put in the "TemplateResref" field. Link to comment Share on other sites More sharing options...
noname35 Posted February 26, 2012 Author Share Posted February 26, 2012 Yea I know I think I put new_npc there I'll start editing it and if the problem is fixed I'll tell you. Thanks for your help. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.