Hi all,
i'm working on a mission using mission editor.
I would need to know if is possible to create a .txt file ( for example "endmission1.txt" ) by using LUA language.
And I need to compile this .txt file by adding some string such for example:
mission1_obj1 = completed;
and in a second moment i would add new string in this .txt file, for example:
mission1_obj2 = failed;
etc.
is this possible?
can you help me with programming?
Create .TXT file
Moderator: Moderators
Re: Create .TXT file
Use standard Lua IO library.
Re: Create .TXT file
PicassoCT wrote:http://lua-users.org/wiki/IoLibraryTutorial
ok... i don't know lua
so now i will try to study this documentation, so if I will have problems i will post here
thx all!!
Re: Create .TXT file
sorry, i know beeing bombed with tutorial links and told to lua it isnt quite nice and helpfull as people (who mostly learned that stuff either in lectures, or via friends) think it is for a beginner.
If you have questions regarding lua, join the moddev-channel in irc.
Ill gladly answer questions ( i know the answers to) there.
If you have questions regarding lua, join the moddev-channel in irc.
Ill gladly answer questions ( i know the answers to) there.
Re: Create .TXT file
just remember VFS doesn't share the same tree as the lua IO (which maps to the file system)