Skip to content

H7HeroItem

Class in MMH7Game · MMH7Game.H7HeroItem · native, perobjectconfig

Object › H7EffectContainer › H7HeroItem

Implements: H7IThumbnailable, H7ILocaParamizable

Subclasses: H7TearOfAsha

Using it from Lua
h7.find_all("H7HeroItem")            -- live instances
h7.find_class("MMH7Game.H7HeroItem")   -- the class
h7.hook("MMH7Game.H7HeroItem.CanConsume", fn)

Structs

CustomArtefactBonusEffectInfo

FieldType
effectIdstring
GroupIDint
bonusIndexint
ToolTipstring
Defaults
effectId=""
GroupID=0
bonusIndex=0
ToolTip=""

Properties

NameTypeNotes
mBuyPriceintprotected
mCannotUnequipboolprotected
mCustomBonusEffectInfoarray<CustomArtefactBonusEffectInfo>protected
mDynamicLightEnvDynamicLightEnvironmentComponentprotected
mForbiddenAffinityarray<H7StructsAndEnumsNative.EAttackType>protected
mForbiddenFactionsarray<H7Faction>protected
mFXParticleSystemComponentprotected
Midintprotected
mIgnoreCustomBonusEffectInfobool
mImprintedAbilitiesarray<H7BaseAbility>protected
mIsCampaignPersistentboolprotected
mIsEquippedboolprotected
mIsExchangeableboolprotected
mIsStackableboolprotected
mIsStoryitemboolprotected
mIsUPlayRewardboolprotected
mMeshStaticMeshComponentprotected
mMinimapIconTexture2Dprotected
mOnPickUpSoundAkEventprotected
mPowerValueMagicfloatprotected
mPowerValueMightfloatprotected
mSellPriceintprotected
mSetH7ItemSetprotected
mTierH7StructsAndEnumsNative.ETierprotected
mTypeH7StructsAndEnumsNative.EItemTypeprotected

Functions

NameDeclaration
CanConsumefunction bool CanConsume()
CannotUnequipfunction bool CannotUnequip()
CheckRestrictedevent bool CheckRestricted(H7AdventureHero currentHero)
CheckSetitemevent CheckSetitem(H7StructsAndEnumsNative.ETrigger Trigger)
Consumefunction Consume()
CreateItemstatic event H7HeroItem CreateItem(H7HeroItem itemArchetype, optional int overwriteId)
GetBuyPricefunction int GetBuyPrice()
GetColoredNamefunction string GetColoredName()
GetFlashIconPathfunction string GetFlashIconPath()
GetIDnative function int GetID()
GetImprintedAbilitiesfunction array<H7BaseAbility> GetImprintedAbilities()
GetItemSetfunction H7ItemSet GetItemSet()
GetPowerValueMagicfunction float GetPowerValueMagic()
GetPowerValueMightfunction float GetPowerValueMight()
GetSellPricefunction int GetSellPrice()
GetTierfunction H7StructsAndEnumsNative.ETier GetTier()
GetTierColorHTMLfunction string GetTierColorHTML(optional bool considerQuestItemColor = true)
GetTooltipfunction string GetTooltip(optional bool extendedVersion, optional string overwriteBaseString, optional H7StructsAndEnumsNative.ESkillRank considerOnlyEffectsOfRank = 0, optional bool resetRankOverride = true)
GetTooltipForOwnerfunction string GetTooltipForOwner(H7EditorHero Hero, optional bool extendedVersion, optional string overwriteBaseString, optional H7StructsAndEnumsNative.ESkillRank considerOnlyEffectsOfRank = 0)
GetTooltipLocalizedfunction string GetTooltipLocalized(H7ICaster Initiator)
GetTypefunction H7StructsAndEnumsNative.EItemType GetType()
GetTypeLocafunction string GetTypeLoca()
Initfunction Init(optional int overwriteId)
IsCampaignPersistentfunction bool IsCampaignPersistent()
IsEquippedfunction bool IsEquipped()
IsExchangeablefunction bool IsExchangeable()
IsHeroItemfunction bool IsHeroItem()
IsStackablefunction bool IsStackable()
IsStoryItemfunction bool IsStoryItem()
IsUPlayRewardfunction bool IsUPlayReward()
MarkForKillnative function MarkForKill()
SetEquippednative function SetEquipped(bool val, H7EditorHero owningHero)
TriggerEventsnative function TriggerEvents(H7StructsAndEnumsNative.ETrigger triggerEvent, bool simulate, optional H7EventContainerStruct container)

Default values

mIsExchangeable=true

Inherited

FromMembers
H7EffectContainerProperties: mAbilitySchool, mAudioVisualEffects, mCaster, mCasterSnapShot, mCommandEffects, mComment, mDamageEffects, mEventManager, mEventuallySuppressesRetaliation, mEventuallySuppressesRetaliationChecked, mFXLoaded, mIcon, mInstanciatedEffects, mInstanciatedEffectsByTooltip, mInstanciatedEffectsDone, mIsDisplayed, mName, mNameInst, mNeedsPrivileg, mOwner, mPrivilegID, mProducesResources, mRankOverride, mResistanceEffects, mSkillType, mSourceContainer, mSpecialEffects, mSpellEffects, mStatModEffects, mTargets, mTargetVectors, mTooltip, mTooltipLocalized, mTooltipLog, mTooltipMapping
Functions: AddLog, AddPlaceholdersToReplBuffer, AddRepl, AddSpellEffect, ApplyHelperReplacements, CanAffectAlly, CanAffectDead, CanAffectEnemy, CanRemoveStasis, ClearSpellEffects, DeleteAllInstanciatedEffects, DidInstanciateEffects, DoOperation, FlushEffectFX, FullfillsSpecialSelectorCondition, GetAllEffects, GetArchetypeEffect, GetArchetypeID, GetBestDamageEffect, GetBuffEffect, GetCaster, GetCasterOriginal, GetClassNameBySelector, GetCorrespondingRank, GetDamageEffect, GetDamageRange, GetDebugName, GetEffectBySelector, GetEffectDamage, GetEffectFunctionProvider, GetEffectOnRank, GetEffectOnRankAsLine, GetEffects, GetEffectsLength, GetEffectsOfType, GetEventManager, GetIcon, GetID, GetInitiator, GetLocaNameForStat, GetModifiedStatsAndValues, GetName, GetNameNative, GetNumGroups, GetOwner, GetPermanentStatMods, GetPersistentResistanceEffects, GetPlaceholders, GetPlaceholdersNew, GetProductionEffectSpecials, GetRankOverride, GetSchool, GetSchoolColor, GetSchoolDamageName, GetSchoolFlashPath, GetSchoolName, GetShieldEffects, GetSkillType, GetSourceEffect, GetSpellEffects, GetStringForOperation, GetTarget, GetTargets, GetTargetVector, GetTargetVectors, GetTeleportEffectRange, GetTimeEntityByEvent, GetTooltip, GetTooltipEffectLists, GetTooltipLocalized, GetTooltipModifierList, HandleIncomeEffects, HasDamagingEffectSpecial, HasInitiator, HasNegativeEffect, HasPositiveEffect, HasStasisEffect, HasStatModEffects, HasStatModFor, InstanciateEffectsFromStructData, IsAbility, IsAllowedChar, IsArchetype, IsBuff, IsDisplayed, IsEqual, IsHeroItem, IsLocaKey, IsMight, IsSkill, LoadEffectFX, LocalizeName, OverrideCaster, ProducesResources, ProvidesCover, ResolveIconPlaceholder, ResolvePlaceholder, SetCaster, SetDisplayed, SetOwner, SetProducesResources, SetRankOverride, SetSourceEffect, SetStatModEffects, SetTarget, SetTargets, SetTargetVector, SetTargetVectors, SortTooltipMapping, SplitPlaceholder, TargetIsImmuneToAllEffects, TargetIsImmuneToAllExecutingEffects, TargetIsImmuneToAllExecutingEffectsOnArchetype, TooltipMappingCompare
Object13 properties, 308 functions