Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: NemesisRogue99 on Wed 11/02/2004 21:58:37

Title: Dialog Requests
Post by: NemesisRogue99 on Wed 11/02/2004 21:58:37
I tried to do a second dialog request...but it didn't work out too well, it said it was already defined...

function dialog_request (int parameter) {
if (parameter==1) { // run-script 1
//Dealer winks
AnimateCharacter(JOSH, 4, 0, 0);
}
}

function dialog_request (int parameter) {
if (parameter==2) { // run-script 2
//Dealer moves
MoveCharacterBlocking(JOSH, 77, 189);
}
}

What should I do?
Title: Re:Dialog Requests
Post by: Kweepa on Wed 11/02/2004 22:28:19
Put it all together into a single function:

function dialog_request (int parameter) {
if (parameter==1) { // run-script 1
//Dealer winks
AnimateCharacter(JOSH, 4, 0, 0);
}
else
if (parameter==2) { // run-script 2
//Dealer moves
MoveCharacterBlocking(JOSH, 77, 189);
}
}
Title: Re:Dialog Requests
Post by: strazer on Wed 11/02/2004 22:28:26
Look here (http://www.agsforums.com/yabb/index.php?board=6;action=display;threadid=11584;start=msg138934#msg138934)

EDIT: Damn, too slow  :)