Jump to content
Sign in to follow this  
OutThisLife

Config Files

Recommended Posts

OutThisLife

Kay well, just started, so I figured I'd ask.

How would I go about making a configuration file and having it #include(?) into the .au3 file?

So like, in the configuration file it could be:

Monster = "monsternamehere"

And in the .au3 file it could take the "monsternamehere" convert it to the pixel name:

$MonsterNameHere = "0xffffff"

if $Monster = "monsternamehere"
$Monster = $MonsterNameHere
...
...
...

Something like that, leave me alone it's late and I had school.

Soo.. Yeah, how would I go about doing configuration files?

Share this post


Link to post
Share on other sites
themax90

Main Script

#Include <Config.au3>
; Rest of script

Config.au3

$Monster = "yourmonsterhere"

Or if you want it in Ini

Main Script

$Monster = IniRead("Config.ini", "Settings", "Monster", -1)
$MonsterNameHere = "0xffffff"
If $Monster = "monsternamehere"
$Monster = $MonsterNameHere
....

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.