Jump to content

Config Files


Recommended Posts

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?

Link to comment
Share on other sites

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
....
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...