PDA

View Full Version : Help with Scripts.


DarthNandis
05-30-2009, 07:19 PM
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;

R2-X2
05-31-2009, 02:01 AM
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(),"dlg_filename");
}

For a normal NPC's conversation use that:

void main() {
object oNPC=GetObjectByTag("npc_tag");
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("npc_tag");
location lMe=GetLocation(GetFirstPC());
ActionDoCommand(SetCommandable(TRUE,oNPC));
AssignCommand (oNPC,ActionForceMoveToLocation(lMe,FALSE));
AssignCommand (oNPC, ActionStartConversation(GetFirstPC()));
}