Hello!
I want a character to walk out of the screen after you have asked the last question in the Dialog/conversation.
I have tried to edit the dialog script and made a "run-script" function in dialog_request.
The "edit script" in dialog looks like this:
// dialog script file
@S // dialog startup entry point
return
@1 // option 1
KIDDY: Ok!
run-script 3 <------ HERE IT SHOULD CALL DIALOG_REQUEST
stop
Here is the dialog_request:
function dialog_request(int value) {
if (value == 3) {
SetCharacterView(KIDDY,7);
AnimateCharacterEx(KIDDY, 2, 0, 0, 1, 1);
Wait(800); <-------I TRIED WITHOUT THIS TOO
}
}
}
Can anybody help I would really appreciate it, THANK YOU! :)
Did you mean he animates but doesn't walk away or he doesn't even animate?
If you just want him to walk away, instead of usingAnimateCharacter[EX](), you can just use one of the MoveCharacter() functions (use the one you needed to) for example in the dialog request:
function dialog_request(int value) {
if (value == 3) {
MoveCharacterBlocking (KIDDY, 360, 100, 1);
}
}
which will move the character to the right of the screen.
(and note that there's an extra } in your posted code, probably there're some misplacements).
The character won't even animate, and now I tried yours too (much better idea, thanks):
function dialog_request(int value) {
if (value == 3) {
MoveCharacterBlocking (KIDDY, 360, 100, 1);
}
}
But when the conversation ends just a split second the load-corsor comes up but nothing else happens.
Did you put the dialog_request in the global script? Put a Display() command to check whether is it called at all:
function dialog_request(int value) {
Display("dialog_request() is called! Value=%d", value);
if (value == 3) {
MoveCharacterBlocking (KIDDY, 360, 100, 1);
}
}