Silver
Creator
HOME
DOWNLOADS
FORUMS
GAMEMAKERS' GARAGE
The SilverCreator Plaza
Current time:
SilverCreator Plaza
›
SilverCreator
›
SilverCreator Discussion
› A Noob's Cry For Help
(Moderators: Plaza Mike, Plaza Redd)
‹
Previous Topic
|
Next Topic
›
Pages: 1
A Noob's Cry For Help (Read 360 times)
John Jakovs
Senior Member
Offline
In Soviet Russia, YaBB
2.4 loves you!
Posts: 309
Gender:
A Noob's Cry For Help
Jun 24
th
, 2009 at 10:46am
Hey guys, I'm posting with another question.
I am mounting the task of creating an achievement system for Time Trial 2 that will allow players to record the total number of kills they have gotten in both single and multiplayer. The purpose being to create both an opportunity for more possible achievements and the ability to create profile statistics such as K/D ratios, Game Completions per Number of Attempts, etc. However, I need your help.
I am clueless as to how to create, within the profile document created when you create a new "Dossier", a number representing your campaign kills and, when you get more during ranked gameplay, add that number into your total kills in your profile, rather than simply REPLACE it, as I have seen it do thus far.
Code samples with explanations would be chipper and any help will get your name in the credits, as goes for ANYONE's code that pushes the game along down the road to completion!
Back to top
IP Logged
WarHampster
Senior Member
Offline
Ghost is Close
Posts: 339
Gender:
Re: A Noob's Cry For Help
Reply #1 -
Jun 24
th
, 2009 at 12:51pm
Umm...
STEP 1: Make a variable for the amount of kills
STEP 2: Add to that variable whenever the player kills something
STEP 3: Steal EQ's saving code from his RPG example
STEP 4: Change said saving code so it's saving all the player variables to the file
STEP 5: Add a few lines before the saving code that loads the player's current total kills from the file and assigns them to a variable
STEP 6: Add a line after those lines that adds the kills the player got in his current session to that variable
STEP 7: Save that variable to the file as the player's total kills
STEP 8: ???
STEP 9: PROFIT!!!
Back to top
«
Last Edit: Jun 24
th
, 2009 at 12:52pm by WarHampster
»
OS X Version 10.4.11, 2 GHz Intel Core 2 Duo
IP Logged
Gandolf
Senior Member
Offline
YaBB 1G - SP1 loves me!
Posts: 423
Re: A Noob's Cry For Help
Reply #2 -
Jun 24
th
, 2009 at 12:54pm
Step 9 sounds good...
-Gandolf
Back to top
IP Logged
Harry Caray
God Member
Offline
What's your favorite planet?
Posts: 1213
Gender:
Re: A Noob's Cry For Help
Reply #3 -
Jun 24
th
, 2009 at 1:00pm
More like:
Step 1: Steal underpants
Step 2:
Step 3: Profit
Back to top
Visit my site
Click Here
&&
IP Logged
John Jakovs
Senior Member
Offline
In Soviet Russia, YaBB
2.4 loves you!
Posts: 309
Gender:
Re: A Noob's Cry For Help
Reply #4 -
Jun 24
th
, 2009 at 1:14pm
I never even noticed EquanoX had uploaded the sources to all his games. LOL what a godsend.
Back to top
IP Logged
Pages: 1
SilverCreator Plaza
›
SilverCreator
›
SilverCreator Discussion
(Moderators: Plaza Mike, Plaza Redd)
‹
Previous Topic
|
Next Topic
›
Forum Jump »
Home
» 10 most recent Posts
» 10 most recent Topics
The Lobby
- Plaza Announcements
- Suggestion Box
- General Discussion
SilverCreator
- SilverCreator Discussion ««
- SilverCreator Code Samples
- Code Samples Archive
Developer's Corner
- Developer's Diary
- Game Graveyard
- Released Games
SilverCreator Plaza
» Powered by
YaBB 2.4
!
YaBB
© 2000-2009. All Rights Reserved.
Copyright © 2001 - 2010 Mike Richardson.
68kMLA