The parameter to dialog_request needs to be a variable:
@3 // ask about PADD
Narrator: "The PADD is bla bla bla".
run-script(1)
<in the global script>
function dialog_request(int reference_no) {
if (reference_no == 1) {createGraphicOverlay (X, Y,slot, trasperant color);}
}
Then, if you want to use dialog_request somewhere else in another dialog for a different reason, call it with
run-script(2)
and then put :
function dialog_request(int reference_no) {
if (reference_no == 1) {createGraphicOverlay (X, Y,slot, trasperant color); }
if (reference_no == 2) { // do soemthing different here }
}
of course, I assume you're replacing the X, Y, slot, etc for real numbers
@3 // ask about PADD
Narrator: "The PADD is bla bla bla".
run-script(1)
<in the global script>
function dialog_request(int reference_no) {
if (reference_no == 1) {createGraphicOverlay (X, Y,slot, trasperant color);}
}
Then, if you want to use dialog_request somewhere else in another dialog for a different reason, call it with
run-script(2)
and then put :
function dialog_request(int reference_no) {
if (reference_no == 1) {createGraphicOverlay (X, Y,slot, trasperant color); }
if (reference_no == 2) { // do soemthing different here }
}
of course, I assume you're replacing the X, Y, slot, etc for real numbers