You can split it into two (or more) functions.
Code: ags
will get you on your way.
However versions 3.1 (I think) and above allow scripts right in the dialogs which will save you a lot of headaches.
function dialog_request2(int parameter){
if(parameter==76){
...
}
else ...
}
function dialog_request(int parameter){
if(parameter==1){
...
}
...
else if(parameter==75){
...
}
else{
dialog_request2(parameter);
}
}
will get you on your way.
However versions 3.1 (I think) and above allow scripts right in the dialogs which will save you a lot of headaches.