Insert Conversation Onto NPC?
Zephirius
Member Posts: 419
What do I mean by this. I'm using my own dialog (for now) for my NPC. But at a certain juncture, I would like to "insert" the henchman dialog .ini into the conversation box of said NPC. Is this possible using code?
Essentially, I'm simply trying to swap out my conversation and insert the henchman dialog .ini using code.
If I'm missing something incredibly conspicuous (always a distinct possibility) please let me know.
EDIT - I'm embarrassed to admit this entry is quite convoluted and absurd.
Please disregard this post.
Essentially, I'm simply trying to swap out my conversation and insert the henchman dialog .ini using code.
If I'm missing something incredibly conspicuous (always a distinct possibility) please let me know.
EDIT - I'm embarrassed to admit this entry is quite convoluted and absurd.
Please disregard this post.
Post edited by Zephirius on
0
Comments
No need to change the conversation specified in the template.
Firstly, ensure that all the conditionals on opening lines in the original conversation are FALSE when the new conversation is required.
Then, add a final opening NPC line, with no text, with the conditional
In game, it will appear that the original conversation never happened - only the conversation new_talk appears.
Note that, unusally, the action has to be assigned in the conditional script, not the Action Taken script, for this trick to work seamlessly.
Tasking the NPC also works e.g.
but, in my experience, that can be a bit slower ard less reliable.
The final NPC line doesn't need a PC response. If its conditional script can return FALSE with no new conversation under some circumstances, the PC response should definitely be omitted, so that the conversation simply ends.
It seems that Exit/Cancel scripts of the original dialog are NOT called.
In that case, set a "switching conversation" flag. Do nothing in the conversation end script(s). Clear the flag in the new conversation.
I'm not even sure why I'm doing this. Nonetheless, It's good to hear from you again Serious...