Hi,
I'm trying to send a basic int parameter within the Quest Trigger -> Send Messages.
If the basic message is the function 'test_function' (which works by itself without parameters).
Inputting the parameter of '7' for example gives an error, have tried 'int 7', using the message 'test_function(7)', and nothing has seemed to do the trick.
What am I missing?
Thanks,
Christian
What parameters to send in 'Send Messages'?
Re: What parameters to send in 'Send Messages'?
Hi,
Quest Trigger -> Send Messages provides a very basic SendMessage functionality that only sends a string value. You can use this:
(The Tools class is in the PixelCrushers.DialogueSystem namespace, so include "using PixelCrushers.DialogueSystem;" at the top of your script.)
Quest Trigger -> Send Messages provides a very basic SendMessage functionality that only sends a string value. You can use this:
Code: Select all
void test_function(string data) {
int myInt = Tools.StringToInt(data);
}
Re: What parameters to send in 'Send Messages'?
That did the trick, thank you!