VN Framework: Access to variables with Playmaker

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
Alatriste
Posts: 181
Joined: Wed Nov 11, 2015 5:07 pm
Contact:

VN Framework: Access to variables with Playmaker

Post by Alatriste »

Hi,

I was trying to change the "Background" value through "Set Variable" in playmaker but that doesn't work. I guess that variable is not "public". Is there any other way to access it?

I'd like to control the transitions through playmaker, so I have better control about the fade-ins and outs and cleaning scenes. If there is not a way, then I'll stick to the sequencer. :)

Thanks!
User avatar
Tony Li
Posts: 21069
Joined: Thu Jul 18, 2013 1:27 pm

Re: VN Framework: Access to variables with Playmaker

Post by Tony Li »

Hi,

In the next version, i'll make it so you can use Set Variable to change the background variable.
User avatar
Alatriste
Posts: 181
Joined: Wed Nov 11, 2015 5:07 pm
Contact:

Re: VN Framework: Access to variables with Playmaker

Post by Alatriste »

Thanks Tony!
User avatar
Alatriste
Posts: 181
Joined: Wed Nov 11, 2015 5:07 pm
Contact:

Re: VN Framework: Access to variables with Playmaker

Post by Alatriste »

Another question:

I'm trying to run some Lua code using the "Run Lua" action in Playmaker.
The code works when I run it from the node using Dialogue System, but it doesn't work when I run it from Playmaker.
LuaError.jpg
LuaError.jpg (37.67 KiB) Viewed 633 times
User avatar
Alatriste
Posts: 181
Joined: Wed Nov 11, 2015 5:07 pm
Contact:

Re: VN Framework: Access to variables with Playmaker

Post by Alatriste »

Just as a side note: I managed to accomplish the same goal using a couple "Get Lua Field" actions to get the information needed and put it together using the "Build String" action of Playmaker. Then I show the alert with the right variable created by the previous action. It's a bit longer but it works too.

But I'm still curious about the Run Lua not working. :D
User avatar
Tony Li
Posts: 21069
Joined: Thu Jul 18, 2013 1:27 pm

Re: VN Framework: Access to variables with Playmaker

Post by Tony Li »

Is "DisplayedName" supposed to be "Display Name" by any chance? Are there any warnings or errors in the Console window?
User avatar
Alatriste
Posts: 181
Joined: Wed Nov 11, 2015 5:07 pm
Contact:

Re: VN Framework: Access to variables with Playmaker

Post by Alatriste »

"DisplayedName" is a variable I created in Dialogue System.
No errors displayed.

Actually, I think my second approach is the best way to do what I need, so I don't have any hardcoded variables and I can access them by playmaker depending on the object I'm interested...

So no worries Tony. 8-)
Post Reply