User Tools

Site Tools


modding:function:itmenumtypes

Discuss this page on this pages TalkPage

itmEnumTypes

See itmEnumTypes at Xelerus

Syntax (itmEnumTypes criteria itemVar exp) → value of last expression
Arguments criteria: The criteria an item must meet to be enumerated.
itemVar: The name of a variable that will contain each item that we are enumerating. Does not need to be defined beforehand.
exp: The expression you want to evaluate for every item that meets the criteria. It will have the item available as a UNID under the name used in `itemVar'
Returns Whatever the last function run in it returns.
Category item, iteration
Description For each item that meets the criteria in the game, evaluate the expression with the item's itemstruct in the itemVar.

Example

(itmEnumTypes "s" itemType
	(dbgOutput (itmGetName itemType))
	)

This will display the name of every shield in the game. Return to Functions list

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