Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Baal7734 on April 10, 2018, 10:38:53 AM

Title: Global sets of variables
Post by: Baal7734 on April 10, 2018, 10:38:53 AM
I'm still pretty new here, so please excuse the ignorance. Is there a way to create a global set of variables of all types (bools, strings, ints) with playmaker, so that I can interact with them globally. I can use arrays for a lot of things, but making an array for every variable type would be very cumbersome for what I'm trying to accomplish.

My intention is to create a character sheet that has many different variable types (string for name, bool for gender, int for stats, ect...) and I'd like to be able to replicate this to create multiple different characters. I've looked into prefabs, but the issue I  run into is, I would need to each instance to be global so that I can access said variables from multiple scenes. Any suggestions on how to go about this would be greatly appreciated :)
Title: Re: Global sets of variables
Post by: tcmeric on April 10, 2018, 11:48:16 AM
Hello, its a good question. I think maybe something like datamaker might be a good way to go. Then you can store your values in XML files. Playmaker or not, if you have tons of character stats, some type of database to manage them is good. I think there are also a few different assets on the store as well, that can handle different data types such a XML, excel, cvs, etc. (Some of them have playmaker actions).

Datamaker is however free: https://hutonggames.fogbugz.com/default.asp?W1133
Title: Re: Global sets of variables
Post by: tcmeric on April 10, 2018, 11:52:49 AM
Here is one such asset: https://www.assetstore.unity3d.com/en/?stay#!/content/11818
Title: Re: Global sets of variables
Post by: Baal7734 on April 10, 2018, 12:04:20 PM
python hath spoiled me  :o
Title: Re: Global sets of variables
Post by: Fat Pug Studio on April 11, 2018, 08:05:11 AM
G2U is horrible, use Easy Save and celebrate life ;D
Title: Re: Global sets of variables
Post by: tcmeric on April 11, 2018, 10:21:44 AM
Does easy save support things like xml or cvs?
Title: Re: Global sets of variables
Post by: Fat Pug Studio on April 11, 2018, 10:45:35 AM
Json and csv, not sure about xml.
Title: Re: Global sets of variables
Post by: tcmeric on April 11, 2018, 11:44:09 AM
Sweet. I guess that needs to go on my list then  8)