more dialog request

Started by Minimi, Tue 25/05/2004 16:41:20

Previous topic - Next topic

Minimi

i have for run-script 1 in global script :

function dialog_request (int x1) {
   MoveCharacter(RALPH,160,198);
   }


now I need runscript2 for another runscript, but I can't just do
function dialog_request (int x2) {


so How do I do this?

Scorpiorus

Just organize it in that way:

function dialog_request(int value) {

   if (value == 1) { // next the code for run-script 1

      MoveCharacter(RALPH,160,198);

   }
   else if (value == 2) { // next the code for run-script 2


   }
   else if (value == 3) { // next the code for run-script 3


   }

}

SMF spam blocked by CleanTalk