Entities and other articy objects as script parameters
Posted: Tue 25. Jun 2019, 00:41
Hi, I'm currently evaluating Articy Draft for a Unity project and am trying to understand how to hook it up to game code. I understand it is possible to use scripts that correspond to c# methods, and it seems I can pass basic variables to those methods, but I'm not sure how to handle referencing specific entities as method parameters.
As an example: let's say I have a dialogue which has an instruction node to do some effect on an arbitrary character in the game (e.g. "Give me 50 gold and I'll improve your relationship with this other character"). Intuitively I'd write an instruction that'd say "ImproveRelationship(character_ref)". What is the best way to handle this? I suppose I can pass the technical name or object id as a string reference, but that doesn't make for a good workflow (having to manually cross reference id with entity is... yuck). Is there a better way?
As an example: let's say I have a dialogue which has an instruction node to do some effect on an arbitrary character in the game (e.g. "Give me 50 gold and I'll improve your relationship with this other character"). Intuitively I'd write an instruction that'd say "ImproveRelationship(character_ref)". What is the best way to handle this? I suppose I can pass the technical name or object id as a string reference, but that doesn't make for a good workflow (having to manually cross reference id with entity is... yuck). Is there a better way?