Hi Nico,
I’m talking about from inside Articy.
Basically we want to do something where the NPC reacts differently depending on which district he is in.
So, an entity NPC has a template of type ParentLocationProperties, which is a reference to the location the NPC wanders around in.
In a condition flow, i want the following condition:
- Code: Select all
getProp(getObj("Loc_BlackRose"), "ParentLocationProperties.District.TechnicalName") == "Loc_District1";
but this returns garbage. If i do this for example:
- Code: Select all
LocalConversationVariables.tempString1 = getProp(getObj("Loc_BlackRose"), "ParentLocationProperties.District.TechnicalName");
All we see is a '?'
However, If I do the following:
- Code: Select all
LocalConversationVariables.tempString1 = getProp(getObj("Loc_BlackRose"), "ParentLocationProperties.District");
LocalConversationVariables.tempString2 = getProp(getObj(LocalConversationVariables.tempString1), "TechnicalName");
I do retrieve the object id into tempstring1, but that still doesnt help me get the technical name or any other name for tempstring2
Further experimentation shows that i
could grab the obj using the Object ID stored in tempstring1, if it were in Hex. So I'm definitely at a dead end now