benw Posted March 31, 2014 Share Posted March 31, 2014 for example, use the mod to create new item(not crafting item) just inside game Link to comment Share on other sites More sharing options...
Realmkeeper Posted March 31, 2014 Share Posted March 31, 2014 Well, are you wanting to create a file within the game directory, or an item in the game? (Being two completely different concepts) benw 1 Link to comment Share on other sites More sharing options...
benw Posted March 31, 2014 Author Share Posted March 31, 2014 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 Link to comment Share on other sites More sharing options...
Koregan Posted March 31, 2014 Share Posted March 31, 2014 Your mod would just give you the itemand the game itself would safe it in your inventory. Link to comment Share on other sites More sharing options...
Realmkeeper Posted April 1, 2014 Share Posted April 1, 2014 oh i thought they are the same thing, i mean create a file first, and then writelines inside the created file without leaving the gameI 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 More sharing options...
RoboMat Posted April 15, 2014 Share Posted April 15, 2014 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 More sharing options...
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