Hi Mikhail,
yes it appears to be a bug: Using self or speaker in a custom method will end in the method not being exported at all.
As a workaround: What you can do is not using Self or Speaker in your custom methods only in our setProp, getProp etc. methods.
Instead inside your method you can use the SelfObject and SpeakerObject property found on the GlobalVariables object. It is the same as self and speaker inside your scripts.
So for example your method could look like this:
- Code: Select all
public void MyMethod (int aParam0, string aParam1)
{
if (!IsCalledInForecast)
{
(ArticyDatabase.DefaultGlobalVariables.SelfObject as Condition).Template.Something.Foo = 42;
}
}
Hope that helps and thanks for reporting that issue.
Best regards
Nico