playMaker

Author Topic: Global sets of variables  (Read 2005 times)

Baal7734

  • Playmaker Newbie
  • *
  • Posts: 5
Global sets of variables
« 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 :)

tcmeric

  • Beta Group
  • Hero Member
  • *
  • Posts: 768
Re: Global sets of variables
« Reply #1 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

tcmeric

  • Beta Group
  • Hero Member
  • *
  • Posts: 768
Re: Global sets of variables
« Reply #2 on: April 10, 2018, 11:52:49 AM »

Baal7734

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Global sets of variables
« Reply #3 on: April 10, 2018, 12:04:20 PM »
python hath spoiled me  :o

Fat Pug Studio

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
    • Fat Pug Studio
Re: Global sets of variables
« Reply #4 on: April 11, 2018, 08:05:11 AM »
G2U is horrible, use Easy Save and celebrate life ;D
Available for Playmaker work

tcmeric

  • Beta Group
  • Hero Member
  • *
  • Posts: 768
Re: Global sets of variables
« Reply #5 on: April 11, 2018, 10:21:44 AM »
Does easy save support things like xml or cvs?

Fat Pug Studio

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
    • Fat Pug Studio
Re: Global sets of variables
« Reply #6 on: April 11, 2018, 10:45:35 AM »
Json and csv, not sure about xml.
Available for Playmaker work

tcmeric

  • Beta Group
  • Hero Member
  • *
  • Posts: 768
Re: Global sets of variables
« Reply #7 on: April 11, 2018, 11:44:09 AM »
Sweet. I guess that needs to go on my list then  8)