Skip to content

H7Effect

Class in MMH7Game · MMH7Game.H7Effect · native

Object › H7Effect

Subclasses: H7EffectAudioVisual, H7EffectCharges, H7EffectCommand, H7EffectDamage, H7EffectDestroyAura, H7EffectDuration, H7EffectDurationModifier, H7EffectInitAura, H7EffectOnResistance, H7EffectOnStats, H7EffectSpecial, H7EffectWithSpells

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

Properties

NameTypeNotes
mCasterH7Unitprotected
mConditionsH7ConditionStructprotected
mEffectTagsarray<H7StructsAndEnumsNative.ESpellTag>protected
mEffectTargetH7StructsAndEnumsNative.EEffectTargetprotected
mEventContainerH7EventContainerStructprotected
mFXH7FXObjectprotected
mGroupintprotected
mIsBeingExecutedboolprotected
mRankH7StructsAndEnumsNative.ESkillRankprotected
mRemovedDuringExecutionboolprotected
mSourceOfEffectH7EffectContainerprotected
mTargetH7IEffectTargetableprotected
mTargetLimitintprotected
mTargetOverwriteH7IEffectTargetableprotected
mTempTargetsarray<H7IEffectTargetable>protected
mTooltipBuffInstanceH7EffectContainerprotected
mTriggerH7TriggerStructprotected

Functions

NameDeclaration
AddTagfunction AddTag(H7StructsAndEnumsNative.ESpellTag Tag)
AttackConditionChecknative function bool AttackConditionCheck()
AttackConditionCheckOnArchetypestatic native function bool AttackConditionCheckOnArchetype(H7ConditionStructExtendAttack condition, H7EventContainerStruct eventContainer, H7ICaster Initiator, H7ICaster Owner, H7ICaster caster, bool isPersistentStatEffect)
CasterConditionChecknative function bool CasterConditionCheck(H7ICaster Initiator)
CasterConditionCheckOnArchetypestatic native function bool CasterConditionCheckOnArchetype(H7CasterConditionStruct condition, H7ICaster Initiator, H7ICaster itemOwner, H7ICaster buffOwner)
CheckMagicSynergynative function bool CheckMagicSynergy(H7ICaster attacker, H7IEffectTargetable Target)
ClearCachedTargetsfunction ClearCachedTargets()
ClearTooltipContainerInstancefunction ClearTooltipContainerInstance()
CompareRanknative function bool CompareRank(H7StructsAndEnumsNative.ESkillRank myRank, optional H7StructsAndEnumsNative.ESkillType skillType = 0)
ConditionChecknative function bool ConditionCheck(H7IEffectTargetable Target, H7ICaster Initiator, bool targetCheckOnly)
ConditionCheckOnArchetypestatic native function bool ConditionCheckOnArchetype(H7ConditionStruct conditions, H7IEffectTargetable Target, H7ICaster Initiator, H7ICaster Owner, H7ICaster caster, H7EventContainerStruct eventContainer, bool targetCheckOnly, bool isStatEffect, bool isPersistentStatEffect, bool isTeleportSpell, int teleportSpellRange)
DebugFunctionnative function DebugFunction(bool isSimulated)
DoOperationBoolstatic native function bool DoOperationBool(H7StructsAndEnumsNative.EOperationBool Op, int ValueA, int ValueB)
EventListenernative function EventListener(Object Sender, bool isSimulated, H7EventContainerStruct container)
Executeprotected event Execute(optional bool isSimulated = false)
ExecuteSavenative function ExecuteSave(optional bool isSimulated = false)
GenerateCombatActionfunction H7CombatResult GenerateCombatAction(optional H7CombatResult baseCombatAction)
GetAbsValueAsStringfunction string GetAbsValueAsString()
GetAlignmentTypestatic native function H7StructsAndEnumsNative.EAlignmentType GetAlignmentType(H7ICaster caster, H7IEffectTargetable Target)
GetCachedTargetsfunction array<H7IEffectTargetable> GetCachedTargets()
GetChancenative function float GetChance()
GetConditonsfunction H7ConditionStruct GetConditons()
GetDefaultStringfunction string GetDefaultString()
GetEventContainerfunction H7EventContainerStruct GetEventContainer()
GetFXfunction H7FXObject GetFX()
GetGroupfunction int GetGroup()
GetHumanReadableMultiplierstatic function string GetHumanReadableMultiplier(float Multiplier)
GetHumanReadableMultiplierAbsstatic function string GetHumanReadableMultiplierAbs(float Multiplier)
GetHumanReadableMultiplierAbsIntstatic function string GetHumanReadableMultiplierAbsInt(float Multiplier)
GetHumanReadablePercentstatic function string GetHumanReadablePercent(float Percent)
GetHumanReadablePercentAbsstatic function string GetHumanReadablePercentAbs(float Percent)
GetHumanReadablePercentAbsIntstatic function string GetHumanReadablePercentAbsInt(float Percent)
GetHumanReadablePercentIntstatic function string GetHumanReadablePercentInt(float Percent)
GetHumanReadableStatModstatic function string GetHumanReadableStatMod(H7MeModifiesStat StatMod)
GetIconStringfunction string GetIconString()
GetLocaNameForSpellOperationfunction string GetLocaNameForSpellOperation(H7StructsAndEnumsNative.ESpellOperation Op)
GetLocaNameForTriggerfunction string GetLocaNameForTrigger(H7StructsAndEnumsNative.ETrigger h7trigger)
GetMaxCapfunction string GetMaxCap()
GetMaxStringfunction string GetMaxString()
GetMinCapfunction string GetMinCap()
GetMinStringfunction string GetMinString()
GetNamefunction string GetName()
GetOperationfunction string GetOperation()
GetOperationStringstatic function string GetOperationString(H7StructsAndEnumsNative.EOperationType Op, float Value)
GetPropertyfunction string GetProperty(string prop, optional H7StructsAndEnumsNative.ESkillRank considerOnlyEffectsOfRank = 0, optional H7UnitSnapShot myCaster)
GetRegistratornative function H7IEventManagingObject GetRegistrator()
GetRequiredRankfunction H7StructsAndEnumsNative.ESkillRank GetRequiredRank()
GetSourcefunction H7EffectContainer GetSource()
GetTagsfunction array<H7StructsAndEnumsNative.ESpellTag> GetTags()
GetTagsPlusBaseTagsnative function GetTagsPlusBaseTags(out array<H7StructsAndEnumsNative.ESpellTag> tags)
GetTargetEnumfunction H7StructsAndEnumsNative.EEffectTarget GetTargetEnum()
GetTargetsnative function GetTargets(out array<H7IEffectTargetable> Targets, optional bool ignoreImmunity = true)
GetTargetsByEffectTargetnative function GetTargetsByEffectTarget(out array<H7IEffectTargetable> Targets, optional H7StructsAndEnumsNative.EEffectTarget effectTarget = mEffectTarget)
GetTooltipLinefunction string GetTooltipLine(optional bool extendedVersion = false, optional H7IEffectTargetable actualTarget, optional bool showRank = false, optional bool showCause = false)
GetTooltipReplacementfunction string GetTooltipReplacement(optional bool resolveBuff = false)
GetTriggerfunction H7TriggerStruct GetTrigger()
GetValidTargetsnative function GetValidTargets(out array<H7IEffectTargetable> Targets, out array<H7IEffectTargetable> validTargets, optional bool ignoreImmunity = false)
GetValuefunction float GetValue()
GetValueAsStringfunction string GetValueAsString()
HasTagnative function bool HasTag(H7StructsAndEnumsNative.ESpellTag SearchTag)
InitEffectfunction InitEffect(H7EffectProperties Properties, H7EffectContainer Source, bool registerEffect)
InstanciateFXfunction InstanciateFX()
IsPreventedByImmunityOfnative function bool IsPreventedByImmunityOf(H7IEffectTargetable Target)
IsPreventedByImmunityOfOnArchetypestatic native function bool IsPreventedByImmunityOfOnArchetype(H7IEffectTargetable Target, H7SpellEffect Data, array<H7StructsAndEnumsNative.ESpellTag> tags, H7StructsAndEnumsNative.EAbilitySchool abilitySchool, bool isSpellEffect)
LocalizeFailSafefunction string LocalizeFailSafe(string locaKey)
RankChecknative function bool RankCheck(H7ICaster Unit)
RegisterTriggernative function RegisterTrigger()
SetAreaAroundXTargetsprotected native function SetAreaAroundXTargets(out array<H7IEffectTargetable> Targets, H7StructsAndEnumsNative.EEffectTarget effectTarget)
SetEventContainerfunction SetEventContainer(H7EventContainerStruct container)
SetFirstRowsprotected native function SetFirstRows(out array<H7IEffectTargetable> Targets, H7StructsAndEnumsNative.EEffectTarget effectTarget)
SetUnitTargetOverwritefunction SetUnitTargetOverwrite(H7IEffectTargetable Target)
ShowInTooltipevent bool ShowInTooltip()
TargetConditionChecknative function bool TargetConditionCheck(H7IEffectTargetable Target, H7ConditionStructExtendedTarget condition, H7ICaster Initiator, H7ICaster caster)
TargetConditionCheckOnArchetypestatic native function bool TargetConditionCheckOnArchetype(H7ConditionStructExtendedTarget condition, H7IEffectTargetable Target, H7ICaster Initiator, H7ICaster caster, H7ICaster Owner, bool isPersistentStatEffect)
TriggerEffectnative function TriggerEffect(bool isSimulated)
UnpackContainerfunction UnpackContainer()
UnregisterTriggernative function UnregisterTrigger()

Default values

mTrigger=(mTriggerType=ETrigger.PERSISTENT,mChance=100,mUseLuckRoll=false)
mEventContainer=(Targetable=none,TargetableTargets=none,ActionTag=none,ActionSchool=EAbilitySchool.MIGHT,EffectContainer=none,Action=ECommandTag.None,Path=none,Result=none,Amount=1)

Inherited

FromMembers
Object13 properties, 308 functions