Calculations in Ini file?

For questions about using Classic.

Post » Wed Feb 11, 2009 6:08 pm

Can I put a calculation (like 50+5) in an ini file and have a variable reading it say 55?

thanks
Follow me on Twitter @evgLabs
B
33
S
14
G
4
Posts: 251
Reputation: 4,049

Post » Wed Feb 11, 2009 6:30 pm

I tried something like that once and I don't think external calculations work.
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

Post » Thu Feb 12, 2009 3:48 am

The only way to do it is to have two seperate vaules listed in the INNI file, then add them together during runtime using events.

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
45
S
17
G
37
Posts: 2,853
Reputation: 25,966

Post » Thu Feb 12, 2009 3:54 am

Aw dernit! but that means more work!
Follow me on Twitter @evgLabs
B
33
S
14
G
4
Posts: 251
Reputation: 4,049

Post » Thu Feb 12, 2009 3:59 am

[quote="YetAnotherSuperhero":1lwcedgu]Aw dernit! but that means more work![/quote:1lwcedgu]

Lulz.

It's not THAT hard :P

It would be kind of handy in ways... but I guess if you know it's going to have to be 50+5 or whatever, why not just put 55 in the value in the first place?

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
45
S
17
G
37
Posts: 2,853
Reputation: 25,966

Post » Thu Feb 12, 2009 10:05 am

Yeah, what exactly are you trying to achieve?
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Thu Feb 12, 2009 10:55 am

It's possible with our evaluator for sure (by adding an Evaluate expression), though.
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Post » Fri Feb 13, 2009 3:05 am

I'm trying to make an ini file that would contain a bunch of items (like engines, shields, etc.) and instead of making 50 different levels of a same item, be able to put a calculation for certain aspects. Any idea if this will become a feature?

p.s. Thank you for the great program!
Follow me on Twitter @evgLabs
B
33
S
14
G
4
Posts: 251
Reputation: 4,049


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 0 guests