Jump to content

Can we use the mod to create a file in the game directory?


benw

Recommended Posts

oh i thought they are the same thing, i mean create a file first, and then writelines inside the created file without leaving the game

I don't think you can change the content of files from within mods, from within the game. But I'm still not sure why you'd need to?

Adding items to the game, as with almost any scripting engine, is just a function to call from within your Mod that would give the player, or whoever it was intended for, the item in the game.

Then when the game is saved, voila! The item is saved in whoever's inventory (unless it has been used/dumped somewhere in the game)

 

Does that make sense, with relation to whatever you're wanting to do?

Link to comment
Share on other sites

  • 2 weeks later...

If I understand you correctly you want to create a custom item in the game that doesn't use a fixed item-script?

 

It's been some time since I last looked into the items code but in theory it should be possible to create a base item and then change it via lua while being in the game.

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
×
×
  • Create New...