Location variabe in script ?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
Strook
Posts: 70
Joined: Fri Nov 08, 2019 10:51 am

Location variabe in script ?

Post by Strook »

Hello,

Is there a way to create a variable for location in a C# script,to have a dropdown of the location in the inspector ?
The same way one can do

Code: Select all

[ConversationPopup] public string myConv

I can't find a [LocationPopup], and trie [VariablePopup] but it doesn't show the locations. I would like to get the localized name of the location
thanks!
Currently working on ->Squeakross: Home Squeak Home<- Using Dialogue System Save System and other features.
Previous game made with Dialogue system ->The Spirit and The mouse<-
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: Location variabe in script ?

Post by Tony Li »

Hi,

Back up your project and import the patch available on the Dialogue System Extras page. It adds a [LocationPopup] attribute, which will also be in version 2.2.14 (slated to be released Monday). The patch is in the "Updated for 2.2.13" foldout.
User avatar
Strook
Posts: 70
Joined: Fri Nov 08, 2019 10:51 am

Re: Location variabe in script ?

Post by Strook »

Amazing thanks !
Currently working on ->Squeakross: Home Squeak Home<- Using Dialogue System Save System and other features.
Previous game made with Dialogue system ->The Spirit and The mouse<-
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: Location variabe in script ?

Post by Tony Li »

Glad to help!
Post Reply