Page 1 of 1

Bad Expression...yet still outputs properly

PostPosted: Thu Jun 22, 2017 3:18 am
by DazaKiwi
I have some tasks that are called and uses the # %character% etc, the parameters for the task that called them in the parameter uses %Player%.Location.Characters (if i use Character it throws an error).

So when i reference the character passed on through the parameters, in the output i have %character%.Name, but it gives me an error BadExpression characterkey.name, yet it still correctly outputs the name like it should. I am guessing the reason it is saying bad expression is because i used .Characters not .character in the parameters. But if i drop the S, the error becomes object not set to reference etc.

So how do i get around this. In short i'm rounding up all characters present in players location, and then the called tasks with # %character% has restrictions to filter them down. As stated it outputs the characters name properly, so i don't quite understand why its a bad expression?? i tried changing it to # %characters% but change.

Re: Bad Expression...yet still outputs properly

PostPosted: Thu Jun 22, 2017 7:31 am
by saabie
%Player%.Location.Characters is correct to pass the list of characters as a parameter.
The called task should use %character% everywhere, not %characters%
The restrictions should use [Referenced Character] not [Referenced Characters]
This worked when I tested it.
Are you sure the error is not hiding inside one of the restrictions?