if you're in say topic 1 how do you unlock an option in topic 2 ???
Allright,
In that case edit script-file of topic 1
"@1 //option 1
SetDialogOption (int topic, int option, int new_state);
stop"
That would mean:
If you are in option1 of topic1 , optionx in topicx will change its state
Topic:
The Topic (in your case no.2)
Option:
The Option you want to change
New State:
0 The option is disabled - the player will not see it
1 The option is enabled - the player can now see and use it
2 The option is permanently disabled - no other command can ever turn
Hope thats help , see you
edit: I see someone has posted already :P. Anyway, you need to run a script from the dialog, and in that script you use the SetDialogOption function, because you can't use normal functions in dialogs.
in the dialog script, in the script for the option you want to click to turn off a different option:
run-script 1
in the global script-
function dialog_request (int dr) {
if (dr==1) {
SetDialogOption(2,4,1);
}
}
This will unlock opttion 4 in topic 2. Replace the numbers with whatever you need.
:)