How do I generate and save information like persons&skills

Get help using Construct 2

Post » Thu Aug 28, 2014 9:14 am

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
B
7
S
2
G
1
Posts: 77
Reputation: 727

Post » Thu Aug 28, 2014 9:37 am

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.
B
44
S
10
G
8
Posts: 437
Reputation: 6,468

Post » Thu Aug 28, 2014 9:45 am

Ubivis wrote: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......
B
7
S
2
G
1
Posts: 77
Reputation: 727

Post » Thu Aug 28, 2014 10:45 am

Quick mock up :)
Hope it is well understandable ;)
You do not have the required permissions to view the files attached to this post.
B
44
S
10
G
8
Posts: 437
Reputation: 6,468

Post » Thu Aug 28, 2014 11:00 am

Ubivis wrote: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.
B
7
S
2
G
1
Posts: 77
Reputation: 727


Return to How do I....?

Who is online

Users browsing this forum: GrogIsGood, kainrazial and 4 guests