Marius Fett Posted December 31, 2007 Share Posted December 31, 2007 I'm trying to make it so that when a NPC dies a dialog fired. I compiled this script: void main() { ActionStartConverstaion(GetFirstPC(), "void_end", 0, 0, 0, "", "", "", "", "", "", 0); } And set it as the NPC's OnDeath script. But it's not working! What did I do wrong? Link to comment Share on other sites More sharing options...
tk102 Posted December 31, 2007 Share Posted December 31, 2007 Hmm, kind of like a Catch-22 there. To get the NPC's dialog to start, you have to kill the NPC, but... Link to comment Share on other sites More sharing options...
Silveredge9 Posted December 31, 2007 Share Posted December 31, 2007 It's not working because your script tells the NPC that the script is attached to, to start the dialogue with the PC. But since you killed him, he's unable do that. Your best bet would be to make it so the PC is the entity that is responsible for starting the dialogue. Something like... void main() { object oPC = GetFirstPC(); AssignCommand(oPC,ActionStartConversation(GetFirstPC(),"void_end")); } (Take the space out of "GetFirstPC". It isn't displaying correctly) Link to comment Share on other sites More sharing options...
Marius Fett Posted December 31, 2007 Author Share Posted December 31, 2007 Thanks Silver! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.