User Tools

Site Tools


modding:function:itmgetcharges

Discuss this page on this pages TalkPage

itmGetCharges

See itmGetCharges at Xelerus

Syntax (itmGetCharges item) → charges
Arguments item: The itemStruct of the item you want to get the charges from.
Returns The number of charges.
Category 0.99, item
Description Returns the number of charges.

Example

Getting the amount of charges on a Blue Credit Chip. This amount is used to determine how many credits the chip pays out.

(dbgOutput (itmGetCharges (itmCreate &itCashCardBlue; 1)))

Returns a number between 4 and 100

For setting this value see itmSetCharges Return to Functions list

modding/function/itmgetcharges.txt · Last modified: 2014/12/27 04:40 by 127.0.0.1