thiosk Posted December 8, 2017 Share Posted December 8, 2017 I'm tinkering with books. I work mostly in itemzed. a. Skill books have pages, and are are not consumed when completed. b. Regular books can have pages added to them, but they are consumed on use anyway. What is responsible for the difference? I suppose I could add that the book gives itself back to the player on use, but because theres no onusegive(self) type command, I have to do that for every item I add. In my case, I want to add thousands of items, I suppose I could figure out how to make a lua script that adds the command and own name to every item? Link to comment Share on other sites More sharing options...
tommysticks Posted December 9, 2017 Share Posted December 9, 2017 5 hours ago, thiosk said: I'm tinkering with books. I work mostly in itemzed. a. Skill books have pages, and are are not consumed when completed. b. Regular books can have pages added to them, but they are consumed on use anyway. What is responsible for the difference? I suppose I could add that the book gives itself back to the player on use, but because theres no onusegive(self) type command, I have to do that for every item I add. In my case, I want to add thousands of items, I suppose I could figure out how to make a lua script that adds the command and own name to every item? This is what I found: item RadioMag1 { Weight = 0.1, Type = Literature, DisplayName = Guerilla Radio VOL: 1, Icon = MagazineElectronics01, TeachedRecipes = Craft Makeshift Radio, ReplaceOnUse = RadioMag1, } The "ReplaceOnUse" line is what you were talking about with giving it back to the player. I didn't look much into this, but I think this should solve your problem. Link to comment Share on other sites More sharing options...
thiosk Posted December 9, 2017 Author Share Posted December 9, 2017 Thank you. Thats what I was thinking. Unfortunately, theres no ReplaceOnUse = Self or ReplaceOnUse = item, so if I want to do 500 books I have to create the tab and transfer over the item name for every one of them 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