Jump to content

Home

[Modding Question] Instant dialog when enter module.


Nick Vader

Recommended Posts

In the onenter slot for the module. It can be found in the ARE file.

 

You put in a script like:

 

void main() {
 object oNPC=GetObjectByTag("[color="DarkRed"]npc_tag[/color]");
 location lMe=GetLocation(GetFirstPC());
   ActionDoCommand(SetCommandable(TRUE,oNPC));
 AssignCommand (oNPC,ActionForceMoveToLocation(lMe,FALSE));
 AssignCommand (oNPC, ActionStartConversation(GetFirstPC()));
}

 

In than npc's utc file put in the name for the dialog in the conversation slot.

Link to comment
Share on other sites

In the onenter slot for the module. It can be found in the ARE file.

 

You put in a script like:

 

void main() {
 object oNPC=GetObjectByTag("[color="DarkRed"]npc_tag[/color]");
 location lMe=GetLocation(GetFirstPC());
   ActionDoCommand(SetCommandable(TRUE,oNPC));
 AssignCommand (oNPC,ActionForceMoveToLocation(lMe,FALSE));
 AssignCommand (oNPC, ActionStartConversation(GetFirstPC()));
}

 

In than npc's utc file put in the name for the dialog in the conversation slot.

 

Thnx. I thought I'd have to wait for days to get an answer !:thmbup1:

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...