You can have optional int parameters by adding a default value to the import line:
Not sure how helpful this is since it only works with ints.
As for adding voice speech code handling, afaik there's no way to play an external sound file; the only alternative I can see is setting up an array of structs which contains pointers to imported speech clips and use the character's ID and the speech number extracted from charsays to play the relevant one.
Sounds like a huge hassle though.
Implementing a custom Say function that allows access to all native methods -similar to the custom dialog options rendering- would be a great addition to future versions of AGS.
Not sure how helpful this is since it only works with ints.
As for adding voice speech code handling, afaik there's no way to play an external sound file; the only alternative I can see is setting up an array of structs which contains pointers to imported speech clips and use the character's ID and the speech number extracted from charsays to play the relevant one.
Sounds like a huge hassle though.
Implementing a custom Say function that allows access to all native methods -similar to the custom dialog options rendering- would be a great addition to future versions of AGS.