Game GetItemInfoByType

Returns a table containing a description of an item.
;Usage
info = Game.GetItemInfoByType(itemTypeId[, attributes_modifiers])
Parameter 	Type 	Description
itemTypeId	item id	item ID of the thing you want to lookup
;Return Values
Value 	Type 	Description
abilityId 	number	id of ability (if is of type ability_module)
attributes 	table 	table of attributes
certifications	table 	???
classes 	table 	table of strings of applicable classes
constraints 	table 	cpu,power,weight
description 	string	description
flags 	table 	???
iconId 	number	id of icon, not always present
level 	number	seems to be 0 or 1 for everything...
moduleType 	string	short description (if it's an ability_module), not always present
name 	string	short description/title of item
powerLevel 	number	???
quality 	string	"common", "uncommon", etc.
tier 	table 	level,description,name
type 	string	"consumable", "ability_module"
web_icon 	string	URL of image
;Examples:
<nowiki>
Called on the itemid of Multiturret IV^Q on build beta-1730:
GetItemInfoByType(78688) =>
{
 "stats" : {
 "repairPoints" : 6522
 }, 
 "description" : "Deploys a small turret. Players are allowed to have three small turrets up at any given time. The charges store up to a max of three.", 
 "itemTypeId" : "78688", 
 "attributes" : [
 {
 "format" : "%d hp", 
 "inverse" : false, 
 "description" : "", 
 "value" : 553, 
 "stat_id" : 158, 
 "display_name" : "Deployable Health", 
 "name" : "Multi Turret Health"
 }, 
 {
 "format" : "%d damage", 
 "inverse" : false, 
 "description" : "", 
 "value" : 37, 
 "stat_id" : 159, 
 "display_name" : "Turret Damage", 
 "name" : "Multi Turret Damage"
 }, 
 {
 "format" : "%.2fs", 
 "inverse" : true, 
 "description" : "s for this ability cooldown", 
 "value" : 25.434780, 
 "stat_id" : 160, 
 "display_name" : "Recharge", 
 "name" : "Multi Turret Recharge"
 }, 
 {
 "format" : "%d", 
 "inverse" : false, 
 "description" : "max number of turrets allowed", 
 "value" : 4, 
 "stat_id" : 1018, 
 "display_name" : "Max Turrets", 
 "name" : "Multi Turret Max Allowed"
 }
 ], 
 "tier" : {
 "level" : 4, 
 "description" : "Tier 4", 
 "name" : "Tier 4"
 }, 
 "subTypeId" : "61", 
 "certifications" : [
 "716", 
 "737"
 ], 
 "type" : "ability_module", 
 "rarity" : "common", 
 "moduleType" : "Engineer Multi-Turret", 
 "uiCategory" : "MISC", 
 "constraints" : {
 "cpu" : -3, 
 "mass" : -120, 
 "power" : -60
 }, 
 "web_icon_stem" : "MOD_BP_13", 
 "craftingTypeId" : "39", 
 "classes" : [
 "bunker"
 ], 
 "abilityId" : "34629", 
 "name" : "Multi Turret IV^Q", 
 "base_constraints" : {
 "cpu" : 0, 
 "mass" : 0, 
 "power" : 0
 }, 
 "web_icon" : "https://ingame-v01-uw2.firefallthegame.com/assets/items/64/MOD_BP_13.png", 
 "itemCraftingTypeId" : "39", 
 "flags" : {
 "tradable" : true
 }, 
 "level" : 1
}
</nowiki>
Category:Addon_API