How do I generate and save information like persons&skills

0 favourites
  • 5 posts
From the Asset Store
Template for a generic save / load system, fully documented in comments and video
  • Hello,

    I have a problem. For a project i need to generate information and save it so i can use it/ view it somewhere else. This is what i need to do:

    For my game i need to hire staff. Each person should have 4 stats: Name(random), Skills (random from 0-100), Popularity (random from 0-100), costs (random from 0-100).

    This is what should happen:

    -Press staff button ----- 4 persons should be generated and should be visible.

    • when i click on one of them i should hire them.
    • When i start a job in the game i should be able to choose from the people i hired, more than can be selected.
    • When i start the job with the selected persons, i should be able to read the stats: skills, popularity, costs. These stats wil influance the job quality.
    • When i go to my office I see the staff i have hired and am able to fire them.

    Does anyone know how to do this or did someone do this before?

    Any help is more than welcome.

    Thanks in advance!

    Daan

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • for I this I would recomment working with arrays. If you hire a person, just add all the values to an existing array that has all hired staff in it, this can be then accessed anytime you like.

  • for I this I would recomment working with arrays. If you hire a person, just add all the values to an existing array that has all hired staff in it, this can be then accessed anytime you like.

    Thanks for your reply.

    The problem is that I really suck at arrays. I thought that i should use them, but have no clue how. I already read the tutorials about the array......

  • Quick mock up

    Hope it is well understandable

  • Quick mock up

    Hope it is well understandable

    Man you are a HERO! From here i can take it change it to my needs and implement it in my game!

    Thank you very much!!!!!!!!

    This is probably very helpful for other people who are making a strategy/simulation game.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)