Skip to content

H7AiActionTrade

Class in MMH7Game · MMH7Game.H7AiActionTrade

Object › H7AiActionBase › H7AiActionTrade

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

Properties

NameTypeNotes
mUAttackTargetH7AiUtilityAttackTargetScoreprotected
mUTradeH7AiUtilityTradeprotected

Functions

NameDeclaration
CheckIfSiteIsLockedfunction bool CheckIfSiteIsLocked(H7VisitableSite Site, H7AdventureHero evaluationHero)
DebugNamefunction string DebugName()
PerformActionfunction bool PerformAction(H7Unit Unit, AiActionScore Score)
PerformActionTownfunction bool PerformActionTown(H7AreaOfControlSiteLord Site, AiActionScore Score)
RunScoresAdvfunction RunScoresAdv(H7AiAdventureSensors sensors, H7Unit currentUnit, out array<AiActionScore> scores, optional H7AdventureConfiguration cfg)
RunScoresTownfunction RunScoresTown(H7AiAdventureSensors sensors, H7AreaOfControlSiteLord currentControlSite, out array<AiActionScore> scores, optional H7AdventureConfiguration cfg)
Setupfunction Setup()

Inherited

FromMembers
H7AiActionBaseProperties: mABID
Functions: DebugName, GetAdvActionID, PerformAction, PerformActionTown, RunScores, RunScoresAdv, RunScoresTown
Object13 properties, 308 functions