Jump to content

Home

Help with Scripts.


Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...