The Daily Click ::. Forums ::. Klik Coding Help ::. Saving Global Values to INI (TGF)
 

Post Reply  Post Oekaki 
 

Posted By Message

Chimp



Registered
  01/06/2003
Points
  114
1st June, 2003 at 09:14:19 -

(Topic Title) Is it possible? I'm trying to use the GV 1000 Global Values Plugin to save information about the inventory/things accomplished/area the character is in etc. using, obviously, numerical values for global values. Would this be possible to do using a single INI, or would it require multiple INIs or possibly an array. Is this only possible, say, with an Array object, or possibly MMF? Help please. Otherwise, I have to resort to a complicated password "grid" similar to that found in early Megaman games.

 


Arf :: FPP Games



Registered
  15/05/2002
Points
  1364
1st June, 2003 at 12:12:39 -

Sounds perfectly feasible, have you tried? In one action you can just have:

Set current INI item to "health"
Set item value to Global value 1
Set current INI item to "position"
Set item value to Global value 2

And so on...

Then to load the values you just reverse the actions (setting the Global value to the INI value). Does that make sense?

 
n/a

Chimp



Registered
  01/06/2003
Points
  114
1st June, 2003 at 13:04:45 -

Ah. Thanks. As the my rating suggests, I am a n00b, so I lack ini skills. It seems so simple now... I guess it was just some thinking that my tiny little brain couldn't handle on it's own. Thanks again.

 


DeadmanDines

Best Article Writer

Registered
  27/04/2006
Points
  4758
1st June, 2003 at 13:59:51 -

Lol, don't worry - I had been clicking for a year and a half before I even touched *INI* files.

 
191 / 9999 * 7 + 191 * 7

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
2nd June, 2003 at 05:15:55 -

Haven't Touched! Every1 Ini's are easy, and there are plenty of articles. I thought they looked hard to, then one day i tested it out. Played with the object a little, looked at some examples and they are really easy.

Check my article somewhere. (click my profile)

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

rocker (juraj5)



Registered
  02/01/2003
Points
  194
5th June, 2003 at 12:35:51 -

me too like assault indy.
man wtf is ini object? wtf strings? set strings? set value......
argh!
but when i REALLY USED it, "wow man how easy!"

 
never surrender, except when you need to

Pyro



Registered
  22/05/2003
Points
  110
6th June, 2003 at 00:43:17 -

Three years, never looked at ini's or edit objects, they scared me.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click