DarthNandis Posted May 30, 2009 Share Posted May 30, 2009 I need some scripts for K1, can you help me? Thanks! 1- NPC1 shows up weapon and shoots NPC2, NPC3, and NPC4, and they die; 1a- After Killing, it opens a conversation; Link to comment Share on other sites More sharing options...
R2-X2 Posted May 31, 2009 Share Posted May 31, 2009 For just starting a basic conversation (you'd have to insert the speakers tag/resref in the speaker row everytime, because if you don't, the air will speak), use this: void main() { ActionStartConversation(GetFirstPC(),"[color="Cyan"]dlg_filename[/color]"); } For a normal NPC's conversation use that: void main() { object oNPC=GetObjectByTag("[color=cyan]npc_tag[/color]"); ActionDoCommand(SetCommandable(TRUE,oNPC)); AssignCommand (oNPC, ActionStartConversation(GetFirstPC())); } To make the NPC walk up to you and then start his conversation, use this script: void main() { object oNPC=GetObjectByTag("[color="Cyan"]npc_tag[/color]"); location lMe=GetLocation(GetFirstPC()); ActionDoCommand(SetCommandable(TRUE,oNPC)); AssignCommand (oNPC,ActionForceMoveToLocation(lMe,FALSE)); AssignCommand (oNPC, ActionStartConversation(GetFirstPC())); } Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.