User Tools

Site Tools


Discuss this page on this page's Talk Page


See itmCreateRandom at Xelerus

Syntax (itmCreateRandom criteria levelDistribution) → item
Arguments criteria: A string representing the criteria of the item you want to create.
levelDistribution: A formatted string specifying what rarity of items will appear at what level.
Returns item: A itemStruct representing the randomly picked item.
Category create, item, random
Description Creates a random item matching the criteria and the string.

Useful for creating a item at random.

  • Please note that the frequency in the string is the frequency of the appearing level and not the frequency of the items.
  • Moreover itmCreateRandom doesn't pick up items with frequency “notrandom”


(itmGetName (itmCreateRandom "s" "----- --c--"))

Returns the name of a random shield of level 8.

Return to Functions list

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