The Daily Click ::. Forums ::. Klik Coding Help ::. Loading item's from a list
 

Post Reply  Post Oekaki 
 

Posted By Message

Zi-Xiao



Registered
  29/07/2002
Points
  537

VIP Member
5th January, 2004 at 01:53:38 -

K, i'm making somehting of an rpg right now that needs lots of weapons, armor etc... each character has one equiped weapon which is represented by a number which is an index reference to a list of items in an ini file.

Now say the character had a weapon represented by the NUMBER 4, well GROUP 4 in the ini file is a pistol. How do i make the computer realize this? In other words how do i import the data from GROUP 4 (the properties of the weapon, attack power etc...) into TGF?

Just in case your wondering, i'm using an ini for character stats, another one as an items list, another as a weapons list, and yet antoher as an events list.

 
n/a

cake



Registered
  13/12/2002
Points
  1173
5th January, 2004 at 02:14:43 -

Your life would be easier if you had MMF (list object, fastloop), but since you don't here's all you have to do:

Set group of INI to "GROUP" + Str$(<Value that references the weapon>

(Str$() converts the number to text.)

 
n/a

Zi-Xiao



Registered
  29/07/2002
Points
  537

VIP Member
6th January, 2004 at 14:50:37 -

ah. thank u. Thats just what i needed

 
n/a

Daniel[Crazy_Productions]

Possibly Insane

Registered
  29/12/2002
Points
  2505
6th January, 2004 at 15:59:00 -

many of you mmf users seem to think that tgf is uncapable of doing anything and that it has almost no extensions... well that is not true!

 
Beware of life ...so far noone have survived it.......

cake



Registered
  13/12/2002
Points
  1173
6th January, 2004 at 19:02:52 -

I stand corrected then.

In that case its possible to use list object, fastloop, string parser 2 and active picture object to make a very powerful database system for all your items. Im currently workin on an example of one at the moment which I will upload for ppl to see soon.

 
n/a

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
6th January, 2004 at 19:03:43 -

yeah most of the old extensions are tgf too
but almost none of the new ones are

 
.
   

Post Reply



 



Advertisement

Worth A Click