H7EditorHero¶
Class in MMH7Game · MMH7Game.H7EditorHero · native, perobjectconfig
Object › Actor › SkeletalMeshActor › SkeletalMeshCinematicActor › SkeletalMeshActorMAT › H7Unit › H7EditorHero
Implements: H7IThumbnailable, H7IOwnable, H7IAliasable, H7ILocaParamizable
Subclasses: H7AdventureHero, H7CombatHero
Using it from Lua
Constants¶
| Name | Value |
|---|---|
MANA_MULTIPLIER | 10 |
Properties¶
| Name | Type | Notes |
|---|---|---|
HeroMaterials | array | no declaration: type is approximate |
mAiAggressiveness | byte | no declaration: type is approximate |
mAiControlType | byte | no declaration: type is approximate |
mAiHomeRadius | float | no declaration: type is approximate |
mAiHomeSite | Object | no declaration: type is approximate |
mAiInHibernation | bool | no declaration: type is approximate |
mAiObjectiveArmy | Object | no declaration: type is approximate |
mAiObjectiveSite | Object | no declaration: type is approximate |
mAiOnPatrol | bool | no declaration: type is approximate |
mAiPatrolController | Object | no declaration: type is approximate |
mAiPreferedRole | byte | no declaration: type is approximate |
mAiRole | byte | no declaration: type is approximate |
mAiRolePriority | int | no declaration: type is approximate |
mAnimControl | Object | no declaration: type is approximate |
mArcaneKnowledgeBase | int | no declaration: type is approximate |
mBattleRage | int | no declaration: type is approximate |
mBoardShipSounds | Object | no declaration: type is approximate |
mCampaignTransitionHeroArchetype | Object | no declaration: type is approximate |
mClass | Object | no declaration: type is approximate |
mColor | struct | no declaration: type is approximate |
mCombatPopUpScreenStartSounds | Object | no declaration: type is approximate |
mCurrentMana | int | no declaration: type is approximate |
mCurrentMovementPoints | float | no declaration: type is approximate |
mCurrentPreviewAbility | Object | no declaration: type is approximate |
mEndMountedIdleSound_Magic | Object | no declaration: type is approximate |
mEndMountedIdleSound_Might | Object | no declaration: type is approximate |
mEndMountedRandomMoveSounds | Object | no declaration: type is approximate |
mEndShipIdleSounds | Object | no declaration: type is approximate |
mEndShipRandomMoveSounds | Object | no declaration: type is approximate |
mEngageManuallySounds | Object | no declaration: type is approximate |
mEngageQuickCombatSounds | Object | no declaration: type is approximate |
mEquipment | Object | no declaration: type is approximate |
mFactionBGHeroWindow | Object | no declaration: type is approximate |
mFactionSpecializationFrame | Texture2D | protected |
mFX | Object | no declaration: type is approximate |
mGlobalName | Object | no declaration: type is approximate |
mHeroBioData | array | no declaration: type is approximate |
mHeroEventParam | Object | no declaration: type is approximate |
mHeroPediaOverwrite | Object | no declaration: type is approximate |
mHeroSkeletalMesh | Component | no declaration: type is approximate |
mHoHDefaultArmy | array | no declaration: type is approximate |
mHorseSkeletalMesh | Component | no declaration: type is approximate |
mImage | DynLoadObject | no declaration: type is approximate |
mImageXOffset | int | no declaration: type is approximate |
mImageYOffset | int | no declaration: type is approximate |
mInventory | Object | no declaration: type is approximate |
mIsHero | bool | no declaration: type is approximate |
mIsPendingLevelUp | bool | no declaration: type is approximate |
mIsPowerLeveling | bool | no declaration: type is approximate |
mLevel | int | no declaration: type is approximate |
mLevelUpSounds | Object | no declaration: type is approximate |
mMagic | int | no declaration: type is approximate |
mManaRegenBase | int | no declaration: type is approximate |
mMaxDamagePerLevel | int | no declaration: type is approximate |
mMaxDeploymentNumber | int | no declaration: type is approximate |
mMaxDeploymentRows | int | no declaration: type is approximate |
mMaxManaBonus | int | no declaration: type is approximate |
mMetamagic | int | no declaration: type is approximate |
mMinDamagePerLevel | int | no declaration: type is approximate |
mMountedAbilitySound_Magic | Object | no declaration: type is approximate |
mMountedAbilitySound_Might | Object | no declaration: type is approximate |
mMountedAttackSound_Magic | Object | no declaration: type is approximate |
mMountedAttackSound_Might | Object | no declaration: type is approximate |
mMountedCommandSound_Magic | Object | no declaration: type is approximate |
mMountedCommandSound_Might | Object | no declaration: type is approximate |
mMountedDefeatSound_Magic | Object | no declaration: type is approximate |
mMountedDefeatSound_Might | Object | no declaration: type is approximate |
mMountedRangeAttackSound_Magic | Object | no declaration: type is approximate |
mMountedRangeAttackSound_Might | Object | no declaration: type is approximate |
mMountedTurnLeftSounds | Object | no declaration: type is approximate |
mMountedTurnRightSounds | Object | no declaration: type is approximate |
mMountedVictorySound_Magic | Object | no declaration: type is approximate |
mMountedVictorySound_Might | Object | no declaration: type is approximate |
mOriginArchetype | H7EditorHero | transient, protected |
mOverrideHeroClassSkills | bool | no declaration: type is approximate |
mOverwriteIcon | Object | no declaration: type is approximate |
mOwningPlayer | Object | no declaration: type is approximate |
mPreLearnedSkills | struct | no declaration: type is approximate |
mQuickBarAdventure | array | no declaration: type is approximate |
mQuickBarCombat | array | no declaration: type is approximate |
mSaveHeroProgress | bool | no declaration: type is approximate |
mSaveMovementPoints | float | no declaration: type is approximate |
mScriptedBehaviour | byte | no declaration: type is approximate |
mShipTurningSounds | Object | no declaration: type is approximate |
mSkillManager | Object | no declaration: type is approximate |
mSkillPoints | int | no declaration: type is approximate |
mSpirit | int | no declaration: type is approximate |
mStartingAbility | Object | no declaration: type is approximate |
mStartingSpellArchetypes | array | no declaration: type is approximate |
mStartMountedIdleSound_Magic | Object | no declaration: type is approximate |
mStartMountedIdleSound_Might | Object | no declaration: type is approximate |
mStartMountedRandomMoveSounds | Object | no declaration: type is approximate |
mStartShipIdleSounds | Object | no declaration: type is approximate |
mStartShipRandomMoveSounds | Object | no declaration: type is approximate |
mStartSkills | Object | no declaration: type is approximate |
mTransientName | string | transient, protected |
mVisuals | DynLoadObject | no declaration: type is approximate |
mWarfareSiege | Object | no declaration: type is approximate |
mWeaponMesh | Component | no declaration: type is approximate |
mXp | int | no declaration: type is approximate |
mXpProgress | Object | no declaration: type is approximate |
Functions¶
| Name | Declaration |
|---|---|
AddBuffsToDataObject | function AddBuffsToDataObject(out GFxObject Data, H7GFxUIContainer objectFactory) |
AddItemBoniToDataObject | function AddItemBoniToDataObject(out GFxObject Data, H7GFxUIContainer objectFactory) |
AddMana | function float AddMana(int Amount) |
AddMaxManaBonus | function AddMaxManaBonus(int Amount) |
AddSkillPoint | function AddSkillPoint() |
AddXp | native function int AddXp(int XP) |
BeginTurn | function bool BeginTurn() |
CheckQuickBar | function CheckQuickBar() |
ClampCurrentMana | function ClampCurrentMana() |
ClampCurrentMovementPoints | function ClampCurrentMovementPoints() |
ClearHeroMeshData | function ClearHeroMeshData() |
ClearScriptedBehaviour | function ClearScriptedBehaviour() |
CreateHero | function H7EditorHero CreateHero(optional H7EditorArmy Army, optional name herotag, optional Vector heroLocation, optional bool isAdventureHero, optional bool onlyHero, optional bool fromSave, optional H7EditorHero oldHero) |
DecreaseBaseStatByID | function DecreaseBaseStatByID(H7StructsAndEnumsNative.EStat desiredStat, optional int Amount = 1) |
DeleteImage | function DeleteImage() |
Deserialize | function Deserialize(JsonObject Data) |
DeserializeReferences | function DeserializeReferences(JsonObject Data, SaveGameState Savegame) |
Destroyed | simulated event Destroyed() |
EnableAdventureIdleBridge | native function EnableAdventureIdleBridge(bool val) |
EndTurn | function EndTurn() |
GetAbilities | function array<H7BaseAbility> GetAbilities() |
GetAiAggressivness | function H7StructsAndEnumsNative.EHeroAiAggressiveness GetAiAggressivness() |
GetAiControlType | function H7StructsAndEnumsNative.EHeroAiControlType GetAiControlType() |
GetAiHibernationState | function bool GetAiHibernationState() |
GetAiHomeRadius | function float GetAiHomeRadius() |
GetAiHomeSite | function H7VisitableSite GetAiHomeSite() |
GetAiObjectiveArmy | function H7AdventureArmy GetAiObjectiveArmy() |
GetAiObjectiveSite | function H7VisitableSite GetAiObjectiveSite() |
GetAiOnPatrol | function bool GetAiOnPatrol() |
GetAiPatrolController | function H7AiPatrolController GetAiPatrolController() |
GetAiPreferedRole | function H7StructsAndEnumsNative.EHeroAiRole GetAiPreferedRole() |
GetAiRole | function H7StructsAndEnumsNative.EHeroAiRole GetAiRole() |
GetAiRolePriority | function int GetAiRolePriority() |
GetAmountOfWarcries | native function int GetAmountOfWarcries() |
GetAnimControl | function H7HeroAnimControl GetAnimControl() |
GetArcaneKnowledge | native function H7StructsAndEnumsNative.ESkillRank GetArcaneKnowledge() |
GetArcaneKnowledgeAsInt | function int GetArcaneKnowledgeAsInt() |
GetArcaneKnowledgeBaseAsInt | function int GetArcaneKnowledgeBaseAsInt() |
GetArcangeKnowlageBase | function int GetArcangeKnowlageBase() |
GetArchetypeID | function string GetArchetypeID() |
GetAttackBase | function int GetAttackBase() |
GetAttackRange | function H7StructsAndEnumsNative.EAttackRange GetAttackRange() |
GetBaseStatByID | function float GetBaseStatByID(H7StructsAndEnumsNative.EStat desiredStat) |
GetBattleRage | function int GetBattleRage() |
GetBoniFromItemSet | native function GetBoniFromItemSet(H7StructsAndEnumsNative.EStat desiredStat, array<H7HeroItem> container, out array<H7MeModifiesStat> statMods, H7StructsAndEnumsNative.EOperationType checkForOperation1, H7StructsAndEnumsNative.EOperationType checkForOperation2) |
GetCampaignTransitionHeroArchetype | function H7EditorHero GetCampaignTransitionHeroArchetype() |
GetClampedCurrentMana | function int GetClampedCurrentMana() |
GetColor | native function Color GetColor() |
GetCurrentMana | function int GetCurrentMana() |
GetCurrentMovementPoints | function float GetCurrentMovementPoints() |
GetCurrentXPForNextLevel | function int GetCurrentXPForNextLevel() |
GetDamageRangeBase | function GetDamageRangeBase(out int minDamage, out int maxDamage) |
GetDefenseBase | function int GetDefenseBase() |
GetDiplomacyMod | function float GetDiplomacyMod() |
GetEntityType | native function H7StructsAndEnumsNative.EUnitType GetEntityType() |
GetEquipment | function H7HeroEquipment GetEquipment() |
GetExperiencePoints | function int GetExperiencePoints() |
GetFactionAuraInnerDecalTexture | native function Texture2D GetFactionAuraInnerDecalTexture() |
GetFactionAuraOuterDecalTexture | native function Texture2D GetFactionAuraOuterDecalTexture() |
GetFactionBGHeroWindow | function string GetFactionBGHeroWindow() |
GetFactionSpecializationFrame | function string GetFactionSpecializationFrame() |
GetFlashImagePath | function string GetFlashImagePath() |
GetFlashMinimapPath | function string GetFlashMinimapPath() |
GetHeightPos | function Vector GetHeightPos(float Offset) |
GetHeroBioData | function array<H7HeroBioData> GetHeroBioData() |
GetHeroClass | function H7HeroClass GetHeroClass() |
GetHeroFX | function H7HeroFX GetHeroFX() |
GetHeropediaOverwrite | function H7EditorHero GetHeropediaOverwrite() |
GetHoHDefaultArmy | function array<CreatureStackProperties> GetHoHDefaultArmy() |
GetHorseRiderOffset | function Vector GetHorseRiderOffset() |
GetHPArchetypeID | function string GetHPArchetypeID() |
GetIcon | function Texture2D GetIcon() |
GetInventory | function H7Inventory GetInventory() |
GetIsOverrideHeroClass | function bool GetIsOverrideHeroClass() |
GetIsScripted | function bool GetIsScripted() |
GetLevel | function int GetLevel() |
GetLevelXPRange | function int GetLevelXPRange(int Level) |
GetLvl30XPNeeded | function int GetLvl30XPNeeded() |
GetMagic | event int GetMagic() |
GetMagicBase | function int GetMagicBase() |
GetManaCostForSpell | native function float GetManaCostForSpell(H7HeroAbility Spell) |
GetManaRegen | function int GetManaRegen() |
GetManaRegenBase | function int GetManaRegenBase() |
GetMaxDeploymentNumber | function int GetMaxDeploymentNumber() |
GetMaxDeploymentRow | function int GetMaxDeploymentRow() |
GetMaximumDamage | event float GetMaximumDamage() |
GetMaximumDamageBase | function int GetMaximumDamageBase() |
GetMaximumDamagePerLevel | function int GetMaximumDamagePerLevel() |
GetMaxMana | function int GetMaxMana() |
GetMaxManaBase | function int GetMaxManaBase() |
GetMaxManaBonus | function int GetMaxManaBonus() |
GetMeshCenter | function Vector GetMeshCenter() |
GetMetamagic | function int GetMetamagic() |
GetMinimumDamage | event float GetMinimumDamage() |
GetMinimumDamageBase | function int GetMinimumDamageBase() |
GetMinimumDamagePerLevel | function int GetMinimumDamagePerLevel() |
GetModifierByContainer | native function GetModifierByContainer(H7StructsAndEnumsNative.EStat desiredStat, array<H7EffectContainer> container, out array<H7MeModifiesStat> statMods, H7StructsAndEnumsNative.EOperationType checkForOperation1, H7StructsAndEnumsNative.EOperationType checkForOperation2) |
GetModifiersByID | native function GetModifiersByID(out array<H7MeModifiesStat> outStats, H7StructsAndEnumsNative.EStat desiredStat, optional H7StructsAndEnumsNative.EOperationType exclusiveFirstOT = 255, optional H7StructsAndEnumsNative.EOperationType exclusiveSecondOT = 255, optional bool nextRound) |
GetMoveCostForTerrainType | native function float GetMoveCostForTerrainType(H7AdventureLayerCellProperty terrainArchetype, H7StructsAndEnumsNative.ECellMovementType MovementType) |
GetMovementPoints | function int GetMovementPoints() |
GetName | function string GetName() |
GetNextLevelXp | function int GetNextLevelXp() |
GetOriginArchetype | function H7EditorHero GetOriginArchetype() |
GetPlayer | function H7Player GetPlayer() |
GetPreLearnedHeroSkills | function GetPreLearnedHeroSkills(out array<H7HeroSkill> PreLearnedSkills) |
GetPrevLevelXp | function int GetPrevLevelXp() |
GetProductionEffects | native function GetProductionEffects(out array<H7EffectSpecialAddResources> produc) |
GetQuickBarSpells | function array<H7HeroAbility> GetQuickBarSpells(bool combat) |
GetQuickCombatSubstituteImpact | native function int GetQuickCombatSubstituteImpact(H7StructsAndEnumsNative.EQuickCombatSubstitute Substitute) |
GetRelativeHeightPos | function Vector GetRelativeHeightPos(float Offset) |
GetSaveProgress | function bool GetSaveProgress() |
GetSiegeWarUnitTemplate | function H7EditorWarUnit GetSiegeWarUnitTemplate() |
GetSkillManager | function H7SkillManager GetSkillManager() |
GetSkillPoints | function int GetSkillPoints() |
GetSkillsArchetype | function array<H7ClassSkillData> GetSkillsArchetype() |
GetSocketLocation | native function Vector GetSocketLocation(name SocketName) |
GetSourceArchetype | function H7EditorHero GetSourceArchetype() |
GetSpecialization | function H7HeroAbility GetSpecialization() |
GetSpells | function GetSpells(out array<H7HeroAbility> Spells) |
GetSpirit | function int GetSpirit() |
GetSpiritBase | function int GetSpiritBase() |
GetVisuals | event H7HeroVisuals GetVisuals() |
GUIWriteInto | function GUIWriteInto(GFxObject Data, optional H7StructsAndEnums.H7ListenFocus Focus, optional H7GFxUIContainer flashFactory) |
HandleLevelUpMessage | event HandleLevelUpMessage(int oldLevel) |
HasBuffFromAbility | function bool HasBuffFromAbility(H7HeroAbility Ability) |
HasPendingLevelUp | function bool HasPendingLevelUp() |
IncreaseBaseStatByID | function float IncreaseBaseStatByID(H7StructsAndEnumsNative.EStat desiredStat, optional int Amount = 1) |
Init | function Init(optional bool fromSave) |
InitFX | function InitFX() |
InitSkillsAndAbilities | native function InitSkillsAndAbilities(bool fromSave) |
InvokeLevelUp | event InvokeLevelUp() |
IsHero | function bool IsHero() |
IsMagicHero | function bool IsMagicHero() |
IsMightHero | function bool IsMightHero() |
LearnItemAbilities | function LearnItemAbilities(H7HeroItem currentItem, optional bool unlearnInstead = false) |
LevelUpStats | native function LevelUpStats() |
OverrideAbilityManager | function OverrideAbilityManager(H7AbilityManager manager) |
OverrideBuffManager | event OverrideBuffManager(H7BuffManager manager, H7EditorHero Hero) |
OverrideSkillManager | function OverrideSkillManager(H7SkillManager manager) |
PlayHeroSound | event PlayHeroSound(H7StructsAndEnumsNative.EHeroTypeId tid, H7StructsAndEnumsNative.EHeroSoundId sid) |
PlayParticleEffect | event bool PlayParticleEffect(const AnimNotify_PlayParticleEffect AnimNotifyData) |
RegenMana | function RegenMana() |
RestoreSavedMovementPoints | function RestoreSavedMovementPoints() |
Serialize | function JsonObject Serialize() |
SetAiAggressivness | function SetAiAggressivness(H7StructsAndEnumsNative.EHeroAiAggressiveness ag) |
SetAiControlType | function SetAiControlType(H7StructsAndEnumsNative.EHeroAiControlType ct) |
SetAiHibernationState | function SetAiHibernationState(bool State) |
SetAiHomeRadius | function SetAiHomeRadius(float Radius) |
SetAiHomeSite | function SetAiHomeSite(H7VisitableSite Site) |
SetAiPreferedRole | function SetAiPreferedRole(H7StructsAndEnumsNative.EHeroAiRole nrole) |
SetAiRole | function SetAiRole(H7StructsAndEnumsNative.EHeroAiRole nrole) |
SetAiRolePriority | function SetAiRolePriority(int newPrio) |
SetArcangeKnowlageBase | function SetArcangeKnowlageBase(int NewValue) |
SetAttack | function SetAttack(int Attack) |
SetBaseStatByID | function SetBaseStatByID(H7StructsAndEnumsNative.EStat desiredStat, int NewValue) |
SetBattleRage | function SetBattleRage(int battlerage) |
SetCampaignTransitionHeroArchetype | function SetCampaignTransitionHeroArchetype(H7EditorHero Hero) |
SetClass | function SetClass(H7HeroClass heroClass) |
SetCurrentMana | function SetCurrentMana(int Value) |
SetCurrentMovementPoints | function SetCurrentMovementPoints(float Value) |
SetCurrentPreviewAbility | native function SetCurrentPreviewAbility(H7BaseAbility ab) |
SetDefense | function SetDefense(int Defense) |
SetDestiny | function SetDestiny(int destiny) |
SetEquipment | function SetEquipment(H7HeroEquipment equip) |
SetFaction | function SetFaction(H7Faction Faction) |
SetFactionBGHeroWindow | function SetFactionBGHeroWindow(Texture2D Texture) |
SetFactionSpecializationFrame | function SetFactionSpecializationFrame(Texture2D Texture) |
SetHeropediaOverwrite | function SetHeropediaOverwrite(H7EditorHero Hero) |
SetHoHDefaultArmy | function SetHoHDefaultArmy(array<CreatureStackProperties> defaultArmy) |
SetIcon | event SetIcon(Texture2D newIcon) |
SetImage | function SetImage(Texture2D Image) |
SetImageXOffset | function SetImageXOffset(int val) |
SetImageYOffset | function SetImageYOffset(int val) |
SetInitiative | function SetInitiative(int Initiative) |
SetInventory | function SetInventory(H7Inventory Inventory) |
SetIsHero | function SetIsHero(bool Value) |
SetLeadership | function SetLeadership(int leadership) |
SetLevel | function SetLevel(int Level) |
SetMagic | function SetMagic(int Magic) |
SetManaRegeneration | function SetManaRegeneration(int regen) |
SetMaximumDamage | function SetMaximumDamage(int maximumDamage) |
SetMaxManaBonus | function SetMaxManaBonus(int MaxManaBonus) |
SetMaxMovementPoints | function SetMaxMovementPoints(int Value) |
SetMeshes | function SetMeshes(SkeletalMeshComponent horseSkelMesh, SkeletalMeshComponent heroSkelMesh, optional H7EditorArmy Army, optional Vector riderOffset) |
SetMinimumDamage | function SetMinimumDamage(int minimumDamage) |
SetMovementAudioType | native function SetMovementAudioType() |
SetOriginArchetype | function SetOriginArchetype(H7EditorHero Hero) |
SetOverrideHeroClass | function SetOverrideHeroClass(bool val) |
SetPendingLevelUp | function SetPendingLevelUp(bool B) |
SetPlayer | function SetPlayer(H7Player Value) |
SetPreLearnedSkills | function SetPreLearnedSkills(H7HeroSkill preSkills[10]) |
SetQuickBarSpells | function SetQuickBarSpells(array<H7HeroAbility> Spells, bool combat) |
SetSaveProgress | function SetSaveProgress(bool shouldSave) |
SetScriptedBehaviour | function SetScriptedBehaviour(H7StructsAndEnumsNative.EScriptedBehaviour Value) |
SetSiegeWarUnitTemplate | function SetSiegeWarUnitTemplate(H7EditorWarUnit Unit) |
SetSkillPoints | function SetSkillPoints(int Points) |
SetSpecialization | function SetSpecialization(H7HeroAbility Ability) |
SetSpirit | function SetSpirit(int Spirit) |
SetStartingSpellArchetypes | function SetStartingSpellArchetypes(array<H7HeroAbility> Abilities) |
SetStartSkills | function SetStartSkills(H7Skill startSkills[2]) |
SetTransientName | function SetTransientName(string localizedHeroName) |
SetVisuals | function SetVisuals(H7HeroVisuals Visuals) |
SetXp | function SetXp(int XP) |
SpawnAnimControl | function SpawnAnimControl() |
SpendSkillPoint | function SpendSkillPoint() |
TriggerEvents | native function TriggerEvents(H7StructsAndEnumsNative.ETrigger triggerEvent, bool simulate, optional H7EventContainerStruct container) |
UpdateOutline | native function UpdateOutline() |
UseMana | function UseMana(int Value) |
UseMovementPoints | function bool UseMovementPoints(float Value) |
Default values¶
mIsHero=true
mMagic=2
mSpirit=20
mLevel=1
mMaxDeploymentNumber=7
mMaxDeploymentRows=2
mAiAggressiveness=EHeroAiAggressiveness.HAG_CONTAINED
mAiRole=EHeroAiRole.HRL_SUPPORT
mStartShipRandomMoveSounds=AkEvent'H7SFX_HERO.creature_hero_ship_move_start'
mEndShipRandomMoveSounds=AkEvent'H7SFX_HERO.creature_hero_ship_move_end'
mXpProgress=H7HeroProgress'H7Heroes.Progress.A_HeroProgress'
mCurrentMovementPoints=20.0000000
mSaveMovementPoints=-1.0000000
mCurrentMana=200
mManaRegenBase=10
mMetamagic=1
mAttack=10
mLeadership=1
mDestiny=1
mMinimumDamage=22
mMaximumDamage=22
mMovementPoints=22