kinyoshi Posted July 31, 2013 Share Posted July 31, 2013 (edited) The use delta is the amount of uses that Drainable items have. The formula is 1 divided by delta number = Number of uses. Thank you 7Roses . I will make a complete and better chart at some point.Unless someone else wants to use a calculator or their head to make it for us. 1=1 .1 = 9 .2 = 5 .3 = .4 = .5 = .6 = .7 = .8 = .9 =.01 = .02 = ALOT .03 = 33 .04 = 24 .05 = 19 .06 = 16 .07 = 14 .08 = 12 .09 = 11 .10 = .11 = .12 = .13 = .14 = .15 = 6 .16 = .17 = .18 = .19 = .20 = 5 .21 = .22 = .23 = .24 = .25 = 4 .26 = .27 = .28 = .29 = .30 = .31 = .32 = .33 = .34 = .35 = .36 = .37 = .38 = .39 = .40 = .41 = .42 = .43 = .44 = .45 = .46 = .47 = .48 = .49 = .50 = .51 = .52 = .53 = .54 = .55 = .56 = .57 = .58 = .59 = .60 = .001 = .002 = .003 = .004 = .005 = .006 = .007 = .008 = .009 = .010 = .011 = .012 = .013 = .014 = .015 = .016 = .017 = .018 = .019 = .020 = .021 = .022 = .023 = .024 = .025 = .026 = .027 = .028 = .029 = .030 = .031 = .032 = .033 = .034 = .035 = .036 = .037 = .038 = .039 = .040 = .041 = .042 = .043 = .044 = .045 = .046 = .047 = .048 = .049 = .050 = .051 = .052 = .053 = .054 = .055 = .056 = .057 = .058 = .059 = .060 = Edited August 14, 2013 by kinyoshi Link to comment Share on other sites More sharing options...
Austin Posted July 31, 2013 Share Posted July 31, 2013 Thanks! This will be useful in the future for me. Link to comment Share on other sites More sharing options...
7Roses Posted July 31, 2013 Share Posted July 31, 2013 nice kinyoshi, but isn't the delta just easy to calculate?1/delta = amount of uses?it seams there are some rounding errors as 1/0.1 should be 10 not 9 but for the rest it looks quite accurate. Link to comment Share on other sites More sharing options...
kinyoshi Posted July 31, 2013 Author Share Posted July 31, 2013 nice kinyoshi, but isn't the delta just easy to calculate?1/delta = amount of uses?it seams there are some rounding errors as 1/0.1 should be 10 not 9 but for the rest it looks quite accurate. So you're telling me I'm wasting my time testing each one in-game? I'm bad at math anyway, so testing individually is the only way I can do it. Link to comment Share on other sites More sharing options...
johndough Posted August 3, 2013 Share Posted August 3, 2013 The delta simply tells you how much, from a base value of 1.0, is used every time the item is used. Link to comment Share on other sites More sharing options...
johndough Posted August 3, 2013 Share Posted August 3, 2013 Also, the number of uses can be retrieved through InventoryItem:getUses(). You don't need to calculate anything. Link to comment Share on other sites More sharing options...
johndough Posted August 5, 2013 Share Posted August 5, 2013 Forget that. InventoryItem:getUses() always returns 1 for some reason. getDelta(), however, will return the current amount of usage left(between 0.0 and 1.0). getUseDelta() will return the delta set in the items and recipes file. So to find the number of uses left for a given 'item', you need to do: math.floor(item:getDelta()/item:getUseDelta()). To find the number of uses for a full item, getDelta() can be replaced with 1.0. Link to comment Share on other sites More sharing options...
rorschach Posted February 10, 2014 Share Posted February 10, 2014 Bumping this thread, as I was wondering how often UseDelta is calculated over time for certain objects (i.e. batteries, torches, candles, lighters, etc) and deducted from the total life of an object. Is it once per game minute or some other amount? Link to comment Share on other sites More sharing options...
Kyun Posted February 10, 2014 Share Posted February 10, 2014 I don't have an accurate answer but I'd say it depends. Some could be tied to a everyTenMinutes event, and even then it's up to the coder. You can call item:Use() n times in a loop if you want and each call will reduce the delta by UseDelta. For some actions (like taking / pouring water) I think it's related to the action progress (which has its own time). rorschach 1 Link to comment Share on other sites More sharing options...
Matherodin Posted February 12, 2014 Share Posted February 12, 2014 If you want to make a chart like that, it's easy to do in Excel. I can give it a try if you want. Edit: i can't attach a Excel file with this post . Maybe this dropbox link will work.If i look at your chartkinyoshi, your values are different then what i have. What other values are used to calculate the number of uses ? I have a nack of wanting to know how things work and why . 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