How to use getObj, getProp, setProp from Arcity

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
oliethefolie
Posts: 2
Joined: Sun Nov 03, 2024 5:46 pm

How to use getObj, getProp, setProp from Arcity

Post by oliethefolie »

Hi,

I'm currently using the demo version while I figure out if I want to use Dialogue System for Unity for my project.

I'm using Arcity to write the script but when I want to update or check using player or object characteristics it doesn't work.

So for example, here I'm trying to set my player character to have the "Technopath" skill set to true if a certain sequence of events happens.

setProp(getObj("player.Skills.Technopathic"),"Skills.Technopathic",true)

This doesn't seem to want to work within dialogue system for whatever reason even though I'm pretty sure it can work. So I must be doing something wrong!
User avatar
Tony Li
Posts: 22034
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to use getObj, getProp, setProp from Arcity

Post by Tony Li »

Hi,

To use getObj(), getProp(), setProp(), and speaker as detailed in "Accessing objects, properties and templates" add an Articy Lua Functions component to your Dialogue Manager (Component → Dialogue System → Third Party → articy:draft → Articy Lua Functions).
oliethefolie
Posts: 2
Joined: Sun Nov 03, 2024 5:46 pm

Re: How to use getObj, getProp, setProp from Arcity

Post by oliethefolie »

Thank you I've got it working!
User avatar
Tony Li
Posts: 22034
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to use getObj, getProp, setProp from Arcity

Post by Tony Li »

Glad to help!
Post Reply