Skip to content

H7TradingPost

Class in MMH7Game · MMH7Game.H7TradingPost · perobjectconfig

Object › Actor › SkeletalMeshActor › SkeletalMeshCinematicActor › SkeletalMeshActorMAT › H7EditorMapObject › H7AdventureObject › H7VisitableSite › H7NeutralSite › H7TradingPost

Implements: H7ITooltipable

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

Properties

NameTypeNotes
mFactionSymbolTexture2Dprotected
mTradingTableH7TradingTableprotected

Functions

NameDeclaration
AiAutotradeResourcesfunction bool AiAutotradeResources(H7AdventureHero Hero, H7Resource needResource)
AiCalculateTradeRateFactorfunction float AiCalculateTradeRateFactor(H7AdventureHero Hero)
AiDoTradefunction AiDoTrade(H7AdventureHero Hero, string resourceToSell, int amountToSell, string resourceToBuy, int amountToBuy)
AiGetAmountMarketPlacesfunction int AiGetAmountMarketPlaces(H7AdventureHero Hero)
GetFactionSepiaIconPathfunction string GetFactionSepiaIconPath()
GetTooltipDatafunction H7TooltipData GetTooltipData(optional bool extendedVersion)
GetTradingTablefunction H7TradingTable GetTradingTable()
InitAdventureObjectevent InitAdventureObject()
OnVisitfunction OnVisit(out H7AdventureHero Hero)

Default values

mIsUnblockingEntrance=true

Inherited

FromMembers
H7NeutralSiteProperties: mArmy, mEditorArmy, mGuardingArmy, mHasMinimapIcon, mOnVisitSound
Functions: GetArmy, GetFlashMinimapPath, GetGarrisonArmy, GetGuardingArmy, GetHasMinimap, GetMinimapIcon, GetNotVisitedColor, GetSite, GetVisitedColor, InitAdventureObject, IsNeutral, OnVisit, RenderDebugInfo, SetArmy, SetGarrisonArmy, SetGuardingArmy, SpawnGarrisonedArmy, SpendPickupCostsOnVisit
H7VisitableSiteProperties: mAbilityManager, mAdventureController, mAiBaseUtility, mAiOnIgnore, mBuffFlags, mBuffManager, mCliffMat, mClusterRef, mCustomNameInst, mEffectManager, mEntranceCell, mEntranceOffset, mEntranceSprite, mEventManager, mGlobalName, mHeroEventParam, mInitDone, mInitNameDone, mIsUnblockingEntrance, mLandscape, mLayer, mMinimapColor, mMinimapHidden, mMinimapIcon, mName, mQuestFlag, mReachabilityCheckDone, mSavedLocation, mSavedRotation, mUseCustomName, mVisitingArmy
Functions: AdaptToLandscape, AddBuffFlag, AddQuestFlag, AddSelfToMinimap, ApplyDamage, ClearQuestFlag, DataChanged, Destroyed, GetAbilityManager, GetActionID, GetAiBaseUtility, GetAiOnIgnore, GetAttack, GetBuffFlags, GetBuffManager, GetColor, GetCombatArmy, GetCurrentPosition, GetCustomName, GetEffectManager, GetEntityType, GetEntranceCell, GetEntranceOffset, GetEventManager, GetFlashMinimapPath, GetGridPosition, GetHasMinimap, GetHeightAsVector, GetHitPoints, GetID, GetLocation, GetLuckDestiny, GetMagic, GetMaximumDamage, GetMinimapColor, GetMinimapHidden, GetMinimapIcon, GetMinimumDamage, GetName, GetOriginal, GetPlayer, GetPreparedAbility, GetResistanceModifierFor, GetSchool, GetStackSize, GetVisitingArmy, GetVisitString, GetWorldEntranceNative, GUIAddListener, GUIWriteInto, InitAdventureObject, IsDefaultAttackActive, IsHidden, IsMovable, IsNeutral, IsUnblockingEntrance, LocalizeCustomName, NotifyVisit, OnTerrainChange, OnVisit, OverrideName, PostSerialize, PrepareAbility, ReorderBuffFlags, SetAiOnIgnore, SetAiUtilityValue, SetMinimapColor, SetMinimapHidden, SetName, SetVisitingArmy, SpendPickupCostsOnVisit, TriggerEvents, UnregisterEventManageable, UsePreparedAbility
H7AdventureObjectProperties: frameCount, mFloatRotationIntensity, mFloatSwayIntensity, Mid, mIsFloating, mOriginalLocation, mPassabilityType
Functions: AddQuestFlag, ClearQuestFlag, GetCellsUnderMe, GetCurrentPosition, GetName, GetQuestTargetID, InitAdventureObject, IsFloating, IsHidden, IsMovable, OnDoubleClick, OnLeftClick, OnRightClick, OnVisit, PostBeginPlay, ReferenceSelfToCells, SetFloating, UpdateFloating
H7EditorMapObjectProperties: AnimNodeSeqComp, mDynamicLightEnv, mFX, mHideMeshAndFX, mMesh, mShouldOutlineSkelMesh, mSnapToGroundType, mSnapType, mTerrainOffset
Functions: GetFX, GetMesh, GetMeshComp, SetMesh, SetShouldHideMeshAndFX, SetVisibility, ToggleVisibility
SkeletalMeshActorMAT1 properties, 13 functions
SkeletalMeshCinematicActor0 properties, 0 functions
SkeletalMeshActor15 properties, 28 functions
Actor156 properties, 262 functions
Object13 properties, 308 functions