Okay, let's say I want to set a variable or a counter to be a combination of values drawn from an INI. Example:
value at( "megapower.ini", "accessories", "atkmod" ) + value at( "megapower.ini", "helmet", "atkmod" ) + value at( "megapower.ini", "armor", "atkmod" ) + value at( "megapower.ini", "weapon1", "atkmod" ) + value at( "megapower.ini", "weapon2", "atkmod" )
Now i don't expect you to know what any of that means specifically, just see that it's adding INI variables.
The problem is that when I do this, it doesn't seem to take all the numbers into account. If I set a counter to these values combined, it will only find the first value, and not look for any of the other ones.
I don't have any problem having a counter that is set to each variable, then adding the counter values. The thing is, I would need dozens of counters if I made one for each INI value, which would be way too much extra work.
Anyone figure out some special way of adding INI values that I don't know about? Or is there some method I'm missing? I don't expect to get an answer, I'm just throwing this out there.
Why's there a star next to the Sig? What if I don't want a sig? This sucks.
Assault Andy Administrator
I make other people create vaporware
Registered 29/07/2002
Points 5686
13th May, 2004 at 02:04:19 -
That code seems like it should work. Do you have the actual code? Because it's a bit hard to tell what the problem is otherwise.
yea good point Phizz Ini plus works marvels. hell if you have MMF you might as well get the save game object
but one thing i do is use the INI for loading in values at the start of a game, either into Global Values or the 1000 GV object. its much easier like that i think
I found the same thing when I tried to add values from an INI directly. The solution I used was to create a lot of temporary counters and put them in that - crude, but it worked.