Custom INI file question

Post » Sat Feb 19, 2011 6:59 am

What would be the format for creating a custom INI file from an Object script? I know with Quest scripts, the format is like so:

Set . to x


But how do you format an INI for an Object script? Is it:

Set <scriptName>. to x


???
User avatar
Gisela Amaya
 
Posts: 3424
Joined: Tue Oct 23, 2007 4:29 pm

Post » Sat Feb 19, 2011 4:15 am

I don't know anything about this as I haven't had a look into it myself, yet, but I'd guess, if RunBatchScript can be called from inside an object script at all, it would likely treat the commands in the ini as if they were written down in the script, i.e. in the same context etc. So you would just use the variable name of a variable inside the script without any script IDs or anything prefixed. Besides, you likely can't set the variables of every instance of a script existing in the game at the same time anyways, so I doubt the script's ID (EditorID/FormID) will have any use as it's like a Base Object, probably exists multiple times in the game world. But maybe even if it is called from inside an object script it will still treat the commands as actual console commands, so no context from inside the script or anything. Then this will not work.

But I think someone else will come around who knows more about this, as I am just guessing here.
User avatar
sharon
 
Posts: 3449
Joined: Wed Nov 22, 2006 4:59 am

Post » Sat Feb 19, 2011 8:15 am

Thanks for the response, Drake the Dragon. But I figured it out. I went a slightly different route and used a Global variable. Then just specified in the Object script to read the INI (works with no problems), and BAM!, everything executes as I'd like it to.

This topic can be locked, if an admin wants to.
User avatar
Susan Elizabeth
 
Posts: 3420
Joined: Sat Oct 21, 2006 4:35 pm


Return to IV - Oblivion