Jump to content

Home

Help adding script


Recommended Posts

If you're looking to add dialog options, you'll first need to edit or create a new dlg file for the character in question. If I remember correctly, to determine if that particular dialog branch is available, you'll need type in the script file's name in the "Script to Determine if Node is available" text box. I don't have the DLGEditor in front of me now, but I can check it shortly later. As for the scripting itself, I'm afraid I can't help you, as I'm still somewhat of a scripting newbie. The tutorial Darth333 mentioned might prove handy.

 

- Star Admiral

Link to comment
Share on other sites

so... how do I edit the .dlg file? it's probably somewhere in the KOTOR tool if I'm not mistaken.

You can double click on any .dlg file found in KotOR Tool and that will open the Conversation Editor. Under the Node Scripts tab, it is, as Star Admiral mentioned "Script to Determine Node Availability". Scripts listed in this field look like this

 

int StartingConditional() {
// blah blah blah 
}

These scripts return true or false as their result value and based on that, the node is made available or not.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...