Difference between revisions of "IsSpellTarget"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Kkuhlmann
 
imported>JT
Line 1: Line 1:
'''Syntax:'''
Returns 1 if the calling reference is currently being affected by the specified magic item (an [[Actor Effect]] (spell), an [[Object Effect]] (enchantment), or an [[Ingestible]] (potion)).
  IsSpellTarget MagicID
 
== Syntax ==
''[ActorID.]''IsSpellTarget MagicID
 
== Example ==
  BuddyRef.IsSpellTarget TrainingMedicineHigh
 
This will return 1 if Buddy has the specified Actor Ability.
 
== Detecting addictions ==
 
If an actor is addicted to a chem, this function will return 1 when the addiction Actor Effect is passed to this function, even when the actor is not presently undergoing withdrawal symptoms.  You can use this to detect whether the player is addicted to a substance.
 
'''Example:'''
'''Example:'''
  IsSpellTarget SuperStrengthBuff
  Player.IsSpellTarget WithdrawalAlcohol


Returns 1 if the calling reference is currently being affected by the specified magic item (spell, enchantment or potion).  
This will return 1 even if the player has recently consumed alcohol and is not presently undergoing withdrawal.


==See Also==  
== See Also ==  
[[HasMagicEffect]]  
[[HasMagicEffect]]  



Revision as of 18:21, 14 January 2009

Returns 1 if the calling reference is currently being affected by the specified magic item (an Actor Effect (spell), an Object Effect (enchantment), or an Ingestible (potion)).

Syntax

[ActorID.]IsSpellTarget MagicID 

Example

BuddyRef.IsSpellTarget TrainingMedicineHigh

This will return 1 if Buddy has the specified Actor Ability.

Detecting addictions

If an actor is addicted to a chem, this function will return 1 when the addiction Actor Effect is passed to this function, even when the actor is not presently undergoing withdrawal symptoms. You can use this to detect whether the player is addicted to a substance.

Example:

Player.IsSpellTarget WithdrawalAlcohol

This will return 1 even if the player has recently consumed alcohol and is not presently undergoing withdrawal.

See Also

HasMagicEffect