OutThisLife Posted November 23, 2005 Posted November 23, 2005 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?
themax90 Posted November 23, 2005 Posted November 23, 2005 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 ....
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now