Difference between revisions of "Script/LogicEnums"
|Line 334:||Line 334:|
Revision as of 08:17, 3 August 2017
- 1 EEntityType
- 2 EDamageType
- 3 EResource
- 4 EBuildingType
- 5 EBuildingStage
- 6 EBuildingProduction
- 7 ECreatureType
- 8 ECreatureAttribute
- 9 ECreatureAnimation
- 10 ERace
- 11 ELogicObjectType
- 12 EFactionRelation
- 13 EItemSlot
- 14 ECreatureEquipMode
- 15 ECreatureUnequipMode
- 16 EBuildingCustomState
- 17 EHeroPartyEvent
- 18 EInventoryEvent
- 19 ECreatureInventoryEvent
- 20 ECreatureEvent
- 21 EBuildingEvent
- 22 EBuildingCreatureEvent
- 23 enum ELogicObjectEvent
- 24 ESectorEvent
- 25 EFollowPathWaitMode
- 26 EUIEvent
- 27 EUIWindow
- 28 EQuestState
- 29 ESoundTrack
- 30 EAIFlag
- 31 EItemProperty
Static Creature Building Effect ResourceDeposit LogicObject Invalid
Pierce Slash Blunt Thrust Crush Siege Fire Ice Air White Black Arcane Irresistible Undefined
Types of RTS resources in the game.
Wood Planks Stone Brick IronOre Iron IronBar BlackAsh BlackAshPackage BlackAshPotion Fish Meat Food Lenya LenyaPackage LenyaEssence Aria AriaCask DistilledAria None
Default SectorCenter ResourceCollector ResourceProducer UnitProducer Sentry CreepSpawn Charge
Planned Construction Completed Remains
Upgrade Technology Unit Resource Action Spell
Character Summon Unit Mob Animal Worker Founder
Strength Dexterity Intelligence Constitution Willpower
Idle IdleAlerted IdleCombat IdleShoulder IdleResting01 IdleResting02 IdleResting03 IdleResting04 IdleSweep IdleCleanvase IdleLookout IdleSitting IdleBench IdleGround IdleDrunkStanding IdleArguingAgg IdleArguingDef IdleCry IdlePray WalkSlow Walk Run Carry CarrySack CarryShoulder Build Chop Dig Crop Gut Fish PickUp Drop Attack AttackSpear AttackPunch AttackSword AttackDualWield AttackTwoHandedPolearm AttackTwoHandedSword AttackTwoHandedAxe AttackTwoHandedStaff AttackBow AttackCrossbow AttackMassive KnockdownShortFront KnockdownShortBack KnockdownFarFront KnockdownFarBack StandUpFront StandUpBack Hit Die Resurrection Spawn CastInstantSelf CastInstantEnemy CastShortSelf CastShortEnemy CastLongSelf CastLongEnemy CastSpecial01 CastSpecial02 CastSpecial03 CastSpecial04 CastSpecial05 CastSpecial06 CastSpecial07 CastSpecial08 CastSpecial09 CastSpecial10 TalkCalm TalkExcited ListenCalm ListenExcited TalkDying ListenDying TalkWounded ListenWounded HelpUp None
Human Elf Dwarf Orc DarkElf Goblin Troll Wildlife Demon Undead Archfire Golem IronOne Dragonoid Medusa None
Container NavBlocker Switch QuestMarker
Allied Hostile Neutral
None PrimaryHand SecondaryHand Head Neck Torso Ring1 Ring2 Holster Item
Give // Give item to creature. If a previous item was equipped, move it to inventory. FromInventory // Take item to equip from inventory. Do nothing if the item is not in the inventory. If a previous item was equipped, move to inventory. Replace // Replace item in given slot, effectively destroying the currently equipped item.
Remove // Remove the item from the given slot, effectively destroying it. AddToInventory // Add the unequipped item to the party inventory. Drop // Drop the unequipped item at the creature's feet.
Script1 Script2 Script3
Event types which may be triggered by the hero party.
Loot // A hero opens a loot container Talk // A hero talks to another character Trade // A hero opens a trader's trade window Switch // A hero interacts with a switch Examine // A hero interacts with any other object type Interact // Triggered by any interaction of a hero, including all of the above. Killed // A hero is killed Wiped // All heroes are dead simultaneously LevelUp // The hero party gains a new level AllInside // The entire hero party is within a given trigger AllOutside // The entire hero party is outside a given trigger AnyInside // Any party member enters a given trigger AnyOutside // Any party member leaves a given trigger AllInsideSector // The entire hero party is within a given sector AllOutsideSector // The entire hero party is outside a given sector AnyInsideSector // Any party member enters a given sector AnyOutsideSector // Any party member leaves a given sector AnyCanSee // Any party member can see the creature or building _sTargetName AnyCannotSee // Any party member can no longer see the creature or building _sTargetName AllCanSee // The entire party can see the creature or building _sTargetName AllCannotSee // No party member can see the creature or building _sTargetName AnyInAggroRange // Any party member is in aggro range of the creature or building _sTargetName AnyOutsideAggroRange // Any party member is no longer in aggro range of the creature or building _sTargetName AllInAggroRange // The entire party is in aggro range of the creature or building _sTargetName AllOutsideAggroRange // No party member is in aggro range of the creature or building _sTargetName HeroJoined // A new hero has joined the party HeroLeft // A hero has left the party HeroAttacking // Any hero is attacking the creature or building _sTargetName (or anything, if _sTargetName is empty) AbilityPointsGained // Any hero has gained ability points AttributePointsGained// Any hero has gained attribute points SpellUnlocked // A hero has learned a new spell PerkUnlocked // A hero has gained a new perk QuestStarted // The hero party has received a new quest QuestUpdated // A quest in the hero party's journal has been updated (task activated/completed/failed) QuestCompleted // The hero party has successfully completed a quest QuestFailed // The hero party has failed to complete a quest HeroRevivePeriodEnded// The player failed to revive a downed party member in time which must now be revived at a godstone
Added Removed Used Read
Equipped Unequipped Used Consumed
Killed // triggers once the target creature has been killed Damaged // triggers each time the target receives damage Resurrected // triggers once the target creature has been resurrected after previously being dead/non-existant EnteredArea // triggers once the target creature enters the given area LeftArea // triggers once the target creature leaves the given area EnteredSector // triggers once the target creature enters the given sector LeftSector // triggers once the target creature leaves the given sector CanSee // triggers once the target creature can see the creature or building specified by _sParam CannotSee // triggers once the target creature can no longer see the creature or building specified by _sParam EnteredAggroRange // triggers once the target creature comes within aggro range of the creature or building specified by _sParam LeftAggroRange // triggers once the target creature is no longer in aggro range of the creature or building specified by _sParam FollowPathWait // triggers once the target creature stops to wait for the hero party during a follow path command FollowPathResume // triggers once the target creature resumes after waiting for the hero party during a follow path command FollowPathFinished // triggers once the target creature has finished following its assigned path TimedActionFinished // triggers once the target creature has successfully finished a timed action TimedActionCanceled // triggers once a timed action performed by the target creature has been canceled prematurely
Placed Completed Destroyed Repaired Charging Charged ProductionStarted ProducationStalled ProductionFinished WorkerAssignmentChanged OwnerChanged GodstonePortalChanged
CreaturesSpawned // Triggered when creatures are spawned by a building
Looted // Triggered whenever one or more items are removed from an item container AllLooted // Triggered once the last item has been removed from an item container Unlocked // Triggered once a locked object has been unlocked
Describes what a creature should wait for while following a path.
WaitForAnyHeroes // at least one hero must be present before moving on WaitForAllHeroes // entire hero party must be present before moving on WaitForAvatar // the avatar must be present before moving on
EntitySelected EnableTutorials ResetTutorials PlayerMarker CharacterCreatorClosed CutsceneFinished VideoFinished
Different types of UI windows which can be accessed from the script
WorldMap LocalMap PartyInventory PartyAbilities QuestJournal ArchfireSelection
Possible states of a quest or quest task.
Unfinished // The quest or task has not been finished yet. Completed // The quest or task has been completed successfully. Failed // The quest or task has not been fulfilled.
TrackMusic TrackAmbient TrackReverb
Flags that control the behavior and permissions of an AI.
CanControlUnits CanControlHeroes CanControlBuildings CanControlProduction CanAttack CanScout CanExpand CanDefend CanLoot CanManageEquipment CanAssignAttributes CanAssignSkills CanBuild CanUpgradeBuildings CanManageWorkers CanProduceUnits CanUpgradeUnits
Blueprint QuestItem CanStack CanTrade CanConsume CanRead CanUse Undestroyable TwoHandedWeapon