How do I write a script to accept parameters?
The conversation editor has an option under Plots and Scripting to have a script in the Condition/Action fields and a parameter field to pass a parameter.
As far as I've seen, scripts either have to have a void main () or a int StartingConditional() and neither of those can accept parameters (already tried and compiler throws an error) So, how do I retrieve the parameters passed to the script?
The wiki mentions GetConversationEntryParameter but it is just a function (this function was actually included in the 1.03 patch). Doesn't the script's main function (main or StartingConditional) need to have the argument defined so it is passed into the code within?
Thanks!
Modifié par TimelordDC, 06 octobre 2010 - 06:02 .





Retour en haut






