so, I have made an item database, however I don't know how to do it now. Here's how it works so far
It creates an arc file, and adds the contents of that arc file to a database.
HTML Code:
1003.AmmoLimit=9999
1003.AmmoName=Uzi
1003.BulletGani=era_uzireload
1003.BulletsFire=1
1003.BulletsReduce=1
1003.ClipAmount=32
[Yes, on it's own line]
However, would this cause any lag? I can simply do from another NPC
HTML Code:
[Control].id.AmmoLimit
to return 9999
However, I could also make each item have it's own line, to control that data. However, each time I would want to check something, I'd need to look inside the array
Here's what I mean
HTML Code:
1003 = { {"AmmoLimit", 9999}, {"AmmoName", "Uzi"}, {"ClipAmount", 32}};
To gain the ammo name, I'd end up doing
HTML Code:
getData(id, name) {
for (temp.i: this.(@ temp.id) {
if (temp.i[0] == temp.name) {
return temp.i[1];
}
}
}
What do you think would be better for the server?