Dialog IDs
#1

Not sure what to title this.

I have two scripts; a gamemode and a filterscript.
I show a dialog in the GM - dialog ID 9 - both scripts call OnDialogResponse with dialogid 9.
I show a dialog in the FS with ID 999 - the GM calls OnDialogResponse with dialog id 9 again, but the FS calls it correctly with ID 999.
If I just (after a restart) show the FS dialog, the GM reports dialog ID as -1 and the FS 999.
Also, returning 1 in the FS callback doesn't stop the GM callback being called. I assumed it would, as with OnPlayer(Command)Text but no.

I am using YSI, but haven't explicitly included y_dialog, and including it in both didn't resolve the issue.

Any help is appreciated.
Reply
#2

Quote:
Originally Posted by MP2
Посмотреть сообщение
Also, returning 1 in the FS callback doesn't stop the GM callback being called. I assumed it would, as with OnPlayer(Command)Text but no.
return 0 should stop it, not return 1.

And again, have you tried it without including the Y_ library? If yes, what's the result there?
Reply
#3

I tried returning 0 and 1. No difference.

Ad I said, I don't explicitly include y_dialog. I will do further testing later.


EDIT:

Okay, I've narrowed it down to fixes.inc. Contacting ******.
Reply
#4

Fixed by including fixes.inc in the filterscript.

Quote:
Originally Posted by ******
Try add fixes.inc in your filterscript too - it is designed to work with multiple scripts.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)