ToastedFishSandwich Posted July 29, 2013 Share Posted July 29, 2013 In the Event Reference on PZ-mods.net there's one event named 'OnMakeItem' which I wish to use. In the Callback Arguments column there are the words result, result item and recipe. What are these and how can I make use of them? Link to comment Share on other sites More sharing options...
RoboMat Posted July 29, 2013 Share Posted July 29, 2013 That's a good question result and resultItem will both give you back an InventoryItem. This means you can use all functions from that class (e.g.: result:getFullType()) But I'm not sure what the difference between the both actually is... if I read the source code correctly "result" should be the actual processed result and "resultItem" should be the original item (before it is processed). The recipe should return the recipe used to make the item Btw. you can always "print" stuff to the console to see what it gives you back without having to read the source code. Your Nicolas Cage pic scares me. Link to comment Share on other sites More sharing options...
ToastedFishSandwich Posted July 29, 2013 Author Share Posted July 29, 2013 Maybe I should change my profile picture to one of these less scary images? Link to comment Share on other sites More sharing options...
Dr_Cox1911 Posted July 29, 2013 Share Posted July 29, 2013 Nicolas Cage scares me.Corrected that for you RoboMat How do you got the arguments from the events? You looked them up in the source didn´t you? RoboMat 1 Link to comment Share on other sites More sharing options...
RoboMat Posted July 29, 2013 Share Posted July 29, 2013 I actually think aricane has made a script to extract them from the source IIRC. But because I can't do fancy stuff like that, I usually look at the source 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