C# 클래스 ACR_CreatureBehavior.CreatureObject

This class represents a creature within the game.
상속: ACR_CreatureBehavior.GameObject
파일 보기 프로젝트 열기: ALandFarAway/ALFA-Base-Resources 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
AbilityDamaged bool
AbilityDrained bool
Blinded bool
Charmed bool
CleanUpNeeded bool
Confused bool
Cursed bool
Darkness bool
Dazed bool
Deaf bool
Diseased bool
Dominated bool
Entangled bool
Frightened bool
HasCombatRoundProcess bool
Insane bool
LevelDrain bool
MoveDown bool
OverrideTarget uint
Paralyzed bool
Petrified bool
Poisoned bool
Silenced bool
Sleeping bool
Slowed bool
Stunned bool
TacticsType AIParty.AIType
Turned bool
UsingEndCombatRound bool
Wounded bool

공개 메소드들

메소드 설명
CanAct ( ) : bool

This determines if the creature has any negative status effects which prevent actions in combat.

CreatureObject ( uint ObjectId, GameObjectManager ObjectManager ) : System

Construct a creature object and insert it into the object table.

DropParty ( ) : void
GetAlliesInMelee ( ) : int

This returns the number of allies who are near hostile opponents.

OnAttacked ( uint AttackerObjectId ) : void

Called when the creature is attacked.

OnBlocked ( uint BlockerObjectId ) : void

Called when the creature's movement is blocked.

OnConversation ( ) : void

Called when someone attempts to open a static conversation with the creature.

OnDamaged ( uint DamagerObjectId, int TotalDamageDealt ) : void

Called when the creature is damaged.

OnDeath ( uint KillerObjectId ) : void

Called when the creature dies.

OnEndCombatRound ( ) : void

Called at the end of a combat round, when direction for the next round of combat is necessary. This managed the bulk of action in combat.

OnHeartbeat ( ) : void

Called approximately every six seconds on an NPC, regardless of whether or not the NPC is in combat.

OnInventoryDisturbed ( ) : void

Called when a creature picks up or loses an item.

OnPerception ( uint PerceivedObjectId, bool Heard, bool Inaudible, bool Seen, bool Vanished ) : void

Called when the perception state of the creature changes.

OnRested ( ) : void

Called after a creature rests.

OnRundown ( ) : void

Called when the C# object state is being run down because the game engine half of the object has been deleted. This might occur after the fact.

OnSpawn ( ) : void

Called when the creature is spawned, immediately after the class' constructors are run. Responsible for establishing party membership.

OnSpellCastAt ( uint CasterObjectId, int SpellId ) : void

Called when a spell is cast on the creature.

OnUserDefined ( int UserDefinedEventNumber ) : void

Called whenever a builder invokes an event by script.

RefreshNegativeStatuses ( ) : void

This refreshes the public variables which track status afflictions on the creature.

SelectCombatRoundAction ( bool fromAllyCall ) : void

This function is the primary means by which actions are selected for a given combat round.

TryRemoveStatusAfflictions ( CreatureObject HealTarget ) : bool

This will look for status afflictions that need healing.

TryRemoveUrgentStatusAfflictions ( CreatureObject HealTarget ) : bool

This will look for the most-urgent disabling status afflictions on HealTarget and attempt to cure them.

TryToAttackMelee ( bool PrioritizeSoftTargets = false, bool DistributeAttacks = false ) : bool
TryToAttackRanged ( ) : bool

This function causes Creature to switch to ranged weapons, if the weapon wielded isn't already ranged, and attack from a distance.

TryToBuffAll ( ) : bool

This will search for an ability to buff an ally, or oneself, which is not already applied to its target.

TryToDebuffAll ( ) : bool

This attempts to find a valid place to put down large field-altering effects, and destructive (but dangerous and indiscriminate) spells. It will attempt to avoid friendly fire, but might hit allies who just happen to be within the area of effect anyway.

TryToDebuffCareful ( ) : bool

This attempts to find a place to send an attack which either only harms enemies or which only harms single targets.

TryToHeal ( CreatureObject HealTarget, int HitPoints ) : bool

This will search for an ability that will directly restore about HitPoints of hit points and use it on HealTarget

TryToHealAll ( ) : bool

This will look for an action that will improve the condition of the party.

_AttackWrapper ( CreatureObject AttackTarget ) : bool

This serves as a wrapper about calls to ActionAttack, to apply things like the uncanny dodge modifiers

비공개 메소드들

메소드 설명
CallToFriends ( ) : void

This method speaks a string of the creature calling out to its friends that it has spotted trouble.

OnPerceptionHeardObject ( uint PerceivedObjectId, bool InitialDetection ) : void

Called when an object first hears an object.

OnPerceptionLostHearingObject ( uint PerceivedObjectId, bool LastDetection ) : void

Called when an object loses hearing of another object.

OnPerceptionLostSightObject ( uint PerceivedObjectId, bool LastDetection ) : void

Called when an object loses sight of another object.

OnPerceptionSeenObject ( uint PerceivedObjectId, bool InitialDetection ) : void

Called when an object first sees an object.

SetAbberationEffects ( ) : void
SetAngelEffects ( ) : void
SetAnimalEffects ( ) : void
SetArchonEffects ( ) : void
SetColdEffects ( ) : void
SetConstructEffects ( ) : void
SetDragonEffects ( ) : void
SetElementalEffects ( ) : void
SetExtraAttacks ( int Attacks ) : void
SetFeyEffects ( ) : void
SetFireEffects ( ) : void
SetGiantEffects ( ) : void
SetIncorporealEffects ( ) : void
SetMagicalBeastEffects ( ) : void
SetMonstrousHumanoidEffects ( ) : void
SetOozeEffects ( ) : void
SetPlantEffects ( ) : void
SetUndeadEffects ( ) : void
SetVerminEffects ( ) : void
TryToCallForHelp ( ) : bool
TryToCleanUp ( ) : bool
_AmbientBehavior ( ) : void

This orders this creature to perform whatever it's supposed to perform when not engaged in something else.

_BashObject ( uint Target ) : void

This orders Creature to bash Target until it is destroyed.

_EquipWeapon ( bool meleeWeapon = true ) : void
_FindTargetForBuff ( NWScript.NWScriptEngineStructure3 Buff ) : uint

This seeks a target for a buff talent, prioritizing on high-risk allies, but only selecting one who doesn't already have the effect.

_FindTargetForDebuff ( NWScript.NWScriptEngineStructure3 Debuff ) : uint

This seeks a target for for large terrain-altering or wide effect spells meant to sway battles. It prioritizes distant and high-danger targets.

_FindTargetForDispel ( ) : uint

This seeks an enemy target with the most visual effects present, which would imply an in-character motivation to dispel.

_GetIsMeleeWeapon ( int baseItemType ) : bool
_GetIsProficient ( CLRScriptBase script, uint item ) : bool
_GetKnownFieldAlteringEffect ( ) : NWScript.NWScriptEngineStructure3
_GetKnownPartyBuff ( ) : NWScript.NWScriptEngineStructure3

This seeks a known talent which can provide benefit to the party.

_GetKnownSelfBuff ( ) : NWScript.NWScriptEngineStructure3

This seeks a known talent which can provide benefit to oneself.

_GetKnownSingleBuff ( ) : NWScript.NWScriptEngineStructure3

This seeks a known talent which can provide benefit to one ally.

_GetKnownUnfriendlyDebuff ( ) : NWScript.NWScriptEngineStructure3
_IsFriendlyFire ( int nTargetArea ) : bool

This function attempts to determine if the spell just cast on this creature was plausibly friendly fire, based on the locations of nearby enemies.

_IsMindMagiced ( uint CreatureId ) : bool

Determines if Creature has effects which would typically cause targeting problems, and might result in attacking a friendly person.

_SetMutualEnemies ( uint Creature1, uint Creature2 ) : void

This function causes Creature1 and Creature2 to be flagged as temporary enemies of one another, with no specified decay time. They, thus, will fight until killed or separated, but will not break the rest of their factions.

_TemporaryRangedCombat ( uint Reason, bool WaitForDeath = false ) : void

This function causes Creature to switch to change to ranged weapons temporarily. It should be used when ranged combat is only a good idea for a moment, because of battlefield conditions.

메소드 상세

CanAct() 공개 메소드

This determines if the creature has any negative status effects which prevent actions in combat.
public CanAct ( ) : bool
리턴 bool

CreatureObject() 공개 메소드

Construct a creature object and insert it into the object table.
public CreatureObject ( uint ObjectId, GameObjectManager ObjectManager ) : System
ObjectId uint Supplies the creature object id.
ObjectManager GameObjectManager Supplies the object manager.
리턴 System

DropParty() 공개 메소드

public DropParty ( ) : void
리턴 void

GetAlliesInMelee() 공개 메소드

This returns the number of allies who are near hostile opponents.
public GetAlliesInMelee ( ) : int
리턴 int

OnAttacked() 공개 메소드

Called when the creature is attacked.
public OnAttacked ( uint AttackerObjectId ) : void
AttackerObjectId uint Supplies the attacker object id. ///
리턴 void

OnBlocked() 공개 메소드

Called when the creature's movement is blocked.
public OnBlocked ( uint BlockerObjectId ) : void
BlockerObjectId uint Supplies the blocker object /// id.
리턴 void

OnConversation() 공개 메소드

Called when someone attempts to open a static conversation with the creature.
public OnConversation ( ) : void
리턴 void

OnDamaged() 공개 메소드

Called when the creature is damaged.
public OnDamaged ( uint DamagerObjectId, int TotalDamageDealt ) : void
DamagerObjectId uint Supplies the damager object id. ///
TotalDamageDealt int Supplies the total damage dealt. ///
리턴 void

OnDeath() 공개 메소드

Called when the creature dies.
public OnDeath ( uint KillerObjectId ) : void
KillerObjectId uint Supplies the killer object id.
리턴 void

OnEndCombatRound() 공개 메소드

Called at the end of a combat round, when direction for the next round of combat is necessary. This managed the bulk of action in combat.
public OnEndCombatRound ( ) : void
리턴 void

OnHeartbeat() 공개 메소드

Called approximately every six seconds on an NPC, regardless of whether or not the NPC is in combat.
public OnHeartbeat ( ) : void
리턴 void

OnInventoryDisturbed() 공개 메소드

Called when a creature picks up or loses an item.
public OnInventoryDisturbed ( ) : void
리턴 void

OnPerception() 공개 메소드

Called when the perception state of the creature changes.
public OnPerception ( uint PerceivedObjectId, bool Heard, bool Inaudible, bool Seen, bool Vanished ) : void
PerceivedObjectId uint Supplies the perceived object id. ///
Heard bool True if the object is now heard.
Inaudible bool True if the object is now not /// heard.
Seen bool True if the object is now seen.
Vanished bool True if the object is now not seen.
리턴 void

OnRested() 공개 메소드

Called after a creature rests.
public OnRested ( ) : void
리턴 void

OnRundown() 공개 메소드

Called when the C# object state is being run down because the game engine half of the object has been deleted. This might occur after the fact.
public OnRundown ( ) : void
리턴 void

OnSpawn() 공개 메소드

Called when the creature is spawned, immediately after the class' constructors are run. Responsible for establishing party membership.
public OnSpawn ( ) : void
리턴 void

OnSpellCastAt() 공개 메소드

Called when a spell is cast on the creature.
public OnSpellCastAt ( uint CasterObjectId, int SpellId ) : void
CasterObjectId uint Supplies the spell caster object id. ///
SpellId int Supplies the spell id.
리턴 void

OnUserDefined() 공개 메소드

Called whenever a builder invokes an event by script.
public OnUserDefined ( int UserDefinedEventNumber ) : void
UserDefinedEventNumber int Supplies the user-defined /// event number associated with the event request.
리턴 void

RefreshNegativeStatuses() 공개 메소드

This refreshes the public variables which track status afflictions on the creature.
public RefreshNegativeStatuses ( ) : void
리턴 void

SelectCombatRoundAction() 공개 메소드

This function is the primary means by which actions are selected for a given combat round.
public SelectCombatRoundAction ( bool fromAllyCall ) : void
fromAllyCall bool
리턴 void

TryRemoveStatusAfflictions() 공개 메소드

This will look for status afflictions that need healing.
public TryRemoveStatusAfflictions ( CreatureObject HealTarget ) : bool
HealTarget CreatureObject The target to be healed
리턴 bool

TryRemoveUrgentStatusAfflictions() 공개 메소드

This will look for the most-urgent disabling status afflictions on HealTarget and attempt to cure them.
public TryRemoveUrgentStatusAfflictions ( CreatureObject HealTarget ) : bool
HealTarget CreatureObject The target to be healed
리턴 bool

TryToAttackMelee() 공개 메소드

public TryToAttackMelee ( bool PrioritizeSoftTargets = false, bool DistributeAttacks = false ) : bool
PrioritizeSoftTargets bool
DistributeAttacks bool
리턴 bool

TryToAttackRanged() 공개 메소드

This function causes Creature to switch to ranged weapons, if the weapon wielded isn't already ranged, and attack from a distance.
public TryToAttackRanged ( ) : bool
리턴 bool

TryToBuffAll() 공개 메소드

This will search for an ability to buff an ally, or oneself, which is not already applied to its target.
public TryToBuffAll ( ) : bool
리턴 bool

TryToDebuffAll() 공개 메소드

This attempts to find a valid place to put down large field-altering effects, and destructive (but dangerous and indiscriminate) spells. It will attempt to avoid friendly fire, but might hit allies who just happen to be within the area of effect anyway.
public TryToDebuffAll ( ) : bool
리턴 bool

TryToDebuffCareful() 공개 메소드

This attempts to find a place to send an attack which either only harms enemies or which only harms single targets.
public TryToDebuffCareful ( ) : bool
리턴 bool

TryToHeal() 공개 메소드

This will search for an ability that will directly restore about HitPoints of hit points and use it on HealTarget
public TryToHeal ( CreatureObject HealTarget, int HitPoints ) : bool
HealTarget CreatureObject The one to receive healing.
HitPoints int The amount to heal.
리턴 bool

TryToHealAll() 공개 메소드

This will look for an action that will improve the condition of the party.
public TryToHealAll ( ) : bool
리턴 bool

_AttackWrapper() 공개 메소드

This serves as a wrapper about calls to ActionAttack, to apply things like the uncanny dodge modifiers
public _AttackWrapper ( CreatureObject AttackTarget ) : bool
AttackTarget CreatureObject
리턴 bool

프로퍼티 상세

AbilityDamaged 공개적으로 프로퍼티

This contains whether or not this creature has ability damage, and thus needs help from a lesser restoration, restoration, or greater restoration.
public bool AbilityDamaged
리턴 bool

AbilityDrained 공개적으로 프로퍼티

This contains whether or not this creature has ability drain, and thus needs help from a restoration or greater restoration.
public bool AbilityDrained
리턴 bool

Blinded 공개적으로 프로퍼티

This contains whether or not this creature is blinded, and thus needs a remove blindness spell.
public bool Blinded
리턴 bool

Charmed 공개적으로 프로퍼티

This contains whether a target is charmed, and thus is unwilling to fight enemies
public bool Charmed
리턴 bool

CleanUpNeeded 공개적으로 프로퍼티

This determines if a healer believes that a party still needs healing after a fight is over.
public bool CleanUpNeeded
리턴 bool

Confused 공개적으로 프로퍼티

This contains whether a target is confused, and thus acting randomly.
public bool Confused
리턴 bool

Cursed 공개적으로 프로퍼티

This contains whether a target is cursed, and in need of a remove curse spell.
public bool Cursed
리턴 bool

Darkness 공개적으로 프로퍼티

This contains whether a target is afflicted by a Darkness spell, and thus needs true seeing or to move.
public bool Darkness
리턴 bool

Dazed 공개적으로 프로퍼티

This contains whether a target is dazed, and thus incapable of fighting.
public bool Dazed
리턴 bool

Deaf 공개적으로 프로퍼티

This contains whether a target is deaf, and in need of healing.
public bool Deaf
리턴 bool

Diseased 공개적으로 프로퍼티

This contains whether a target is diseased.
public bool Diseased
리턴 bool

Dominated 공개적으로 프로퍼티

This contains whether a target is following the orders of an enemy spellcaster.
public bool Dominated
리턴 bool

Entangled 공개적으로 프로퍼티

This contains whether a target has been trapped by webs, ropes, or the like.
public bool Entangled
리턴 bool

Frightened 공개적으로 프로퍼티

This contains whether a target is "frightened" by the NWN2 engine, which is mechanically "panicked"
public bool Frightened
리턴 bool

HasCombatRoundProcess 공개적으로 프로퍼티

This contains whether or not this creature has an active cycle of combat round processing.
public bool HasCombatRoundProcess
리턴 bool

Insane 공개적으로 프로퍼티

This contains whether a target is permanently confused, and thus in desparate need of healing.
public bool Insane
리턴 bool

LevelDrain 공개적으로 프로퍼티

This contains whether a target has negative levels.
public bool LevelDrain
리턴 bool

MoveDown 공개적으로 프로퍼티

This contains whether some effect is reducing the creature's movement speed.
public bool MoveDown
리턴 bool

OverrideTarget 공개적으로 프로퍼티

public uint OverrideTarget
리턴 uint

Paralyzed 공개적으로 프로퍼티

This contains whether a target is paralyzed.
public bool Paralyzed
리턴 bool

Petrified 공개적으로 프로퍼티

This contains whether a target has been turned to stone.
public bool Petrified
리턴 bool

Poisoned 공개적으로 프로퍼티

This contains whether a target has been poisoned.
public bool Poisoned
리턴 bool

Silenced 공개적으로 프로퍼티

This contains whether a target has been silenced.
public bool Silenced
리턴 bool

Sleeping 공개적으로 프로퍼티

This contains whether a target is sleeping.
public bool Sleeping
리턴 bool

Slowed 공개적으로 프로퍼티

This contains whether a target is slowed.
public bool Slowed
리턴 bool

Stunned 공개적으로 프로퍼티

This contains whether a target is stunned.
public bool Stunned
리턴 bool

TacticsType 공개적으로 프로퍼티

public AIParty.AIType TacticsType
리턴 AIParty.AIType

Turned 공개적으로 프로퍼티

This contains whether a target has been turned.
public bool Turned
리턴 bool

UsingEndCombatRound 공개적으로 프로퍼티

This contains whether or not EndCombatRound has begun firing for the NPC.
public bool UsingEndCombatRound
리턴 bool

Wounded 공개적으로 프로퍼티

This contains whether a target is bleeding, and in need of a cure spell.
public bool Wounded
리턴 bool