playMaker

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

Baal7734

  • Playmaker Newbie
  • *
  • Posts: 5
    • View Profile
Global sets of variables
« on: April 10, 2018, 07: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: 728
    • View Profile
Re: Global sets of variables
« Reply #1 on: April 10, 2018, 08: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: 728
    • View Profile
Re: Global sets of variables
« Reply #2 on: April 10, 2018, 08:52:49 AM »

Baal7734

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

krmko

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

tcmeric

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

krmko

  • Beta Group
  • Hero Member
  • *
  • Posts: 989
    • View Profile
    • Fat Pug Studio
Re: Global sets of variables
« Reply #6 on: April 11, 2018, 07:45:35 AM »
Json and csv, not sure about xml.

tcmeric

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