H7HeroItem¶
Class in MMH7Game · MMH7Game.H7HeroItem · native, perobjectconfig
Object › H7EffectContainer › H7HeroItem
Implements: H7IThumbnailable, H7ILocaParamizable
Subclasses: H7TearOfAsha
Using it from Lua
Structs¶
CustomArtefactBonusEffectInfo
| Field | Type |
|---|---|
effectId | string |
GroupID | int |
bonusIndex | int |
ToolTip | string |
Defaults
effectId=""
GroupID=0
bonusIndex=0
ToolTip=""Properties¶
| Name | Type | Notes |
|---|---|---|
mBuyPrice | int | protected |
mCannotUnequip | bool | protected |
mCustomBonusEffectInfo | array<CustomArtefactBonusEffectInfo> | protected |
mDynamicLightEnv | DynamicLightEnvironmentComponent | protected |
mForbiddenAffinity | array<H7StructsAndEnumsNative.EAttackType> | protected |
mForbiddenFactions | array<H7Faction> | protected |
mFX | ParticleSystemComponent | protected |
Mid | int | protected |
mIgnoreCustomBonusEffectInfo | bool | |
mImprintedAbilities | array<H7BaseAbility> | protected |
mIsCampaignPersistent | bool | protected |
mIsEquipped | bool | protected |
mIsExchangeable | bool | protected |
mIsStackable | bool | protected |
mIsStoryitem | bool | protected |
mIsUPlayReward | bool | protected |
mMesh | StaticMeshComponent | protected |
mMinimapIcon | Texture2D | protected |
mOnPickUpSound | AkEvent | protected |
mPowerValueMagic | float | protected |
mPowerValueMight | float | protected |
mSellPrice | int | protected |
mSet | H7ItemSet | protected |
mTier | H7StructsAndEnumsNative.ETier | protected |
mType | H7StructsAndEnumsNative.EItemType | protected |
Functions¶
| Name | Declaration |
|---|---|
CanConsume | function bool CanConsume() |
CannotUnequip | function bool CannotUnequip() |
CheckRestricted | event bool CheckRestricted(H7AdventureHero currentHero) |
CheckSetitem | event CheckSetitem(H7StructsAndEnumsNative.ETrigger Trigger) |
Consume | function Consume() |
CreateItem | static event H7HeroItem CreateItem(H7HeroItem itemArchetype, optional int overwriteId) |
GetBuyPrice | function int GetBuyPrice() |
GetColoredName | function string GetColoredName() |
GetFlashIconPath | function string GetFlashIconPath() |
GetID | native function int GetID() |
GetImprintedAbilities | function array<H7BaseAbility> GetImprintedAbilities() |
GetItemSet | function H7ItemSet GetItemSet() |
GetPowerValueMagic | function float GetPowerValueMagic() |
GetPowerValueMight | function float GetPowerValueMight() |
GetSellPrice | function int GetSellPrice() |
GetTier | function H7StructsAndEnumsNative.ETier GetTier() |
GetTierColorHTML | function string GetTierColorHTML(optional bool considerQuestItemColor = true) |
GetTooltip | function string GetTooltip(optional bool extendedVersion, optional string overwriteBaseString, optional H7StructsAndEnumsNative.ESkillRank considerOnlyEffectsOfRank = 0, optional bool resetRankOverride = true) |
GetTooltipForOwner | function string GetTooltipForOwner(H7EditorHero Hero, optional bool extendedVersion, optional string overwriteBaseString, optional H7StructsAndEnumsNative.ESkillRank considerOnlyEffectsOfRank = 0) |
GetTooltipLocalized | function string GetTooltipLocalized(H7ICaster Initiator) |
GetType | function H7StructsAndEnumsNative.EItemType GetType() |
GetTypeLoca | function string GetTypeLoca() |
Init | function Init(optional int overwriteId) |
IsCampaignPersistent | function bool IsCampaignPersistent() |
IsEquipped | function bool IsEquipped() |
IsExchangeable | function bool IsExchangeable() |
IsHeroItem | function bool IsHeroItem() |
IsStackable | function bool IsStackable() |
IsStoryItem | function bool IsStoryItem() |
IsUPlayReward | function bool IsUPlayReward() |
MarkForKill | native function MarkForKill() |
SetEquipped | native function SetEquipped(bool val, H7EditorHero owningHero) |
TriggerEvents | native function TriggerEvents(H7StructsAndEnumsNative.ETrigger triggerEvent, bool simulate, optional H7EventContainerStruct container) |