Not Stable Yet!
This article is part of the Witcher 3 scripting community documentation, which is considered to be UNSTABLE until after the release of the Blood and Wine DLC. Edits to these pages may be overwritten without notice!
ISerializable > IScriptable > CObject
Public Functions
CacheSettings
public function CacheSettings()
- Location:
- starts @ line 185, ends @ line 283
CanBeAppliedOnDeadTarget
public function CanBeAppliedOnDeadTarget() : bool
- Returns:
- Location:
- starts @ line 816, ends @ line 816
CheckCustomCounter
public function CheckCustomCounter()
- Location:
- starts @ line 608, ends @ line 609
CumulateWith
public function CumulateWith(effect : CBaseGameplayEffect)
- Parameters:
- effect : CBaseGameplayEffect
- Location:
- starts @ line 574, ends @ line 602
Debug_HAX_FIX
public final function Debug_HAX_FIX(t : CActor)
- Parameters:
- t : CActor
- Location:
- starts @ line 834, ends @ line 838
GetAbilityName
GetBuffLevel
GetBuffResist
GetCreator
public function GetCreator() : CGameplayEntity
- Returns:
- Location:
- starts @ line 746, ends @ line 749
GetCreatorPowerStat
public function GetCreatorPowerStat() : SAbilityAttributeValue
- Returns:
- Location:
- starts @ line 859, ends @ line 862
GetDurationLeft
public function GetDurationLeft() : float
- Returns:
- Location:
- starts @ line 740, ends @ line 740
GetEffectDescriptionLocalisationKey
public function GetEffectDescriptionLocalisationKey() : string
- Returns:
- Location:
- starts @ line 806, ends @ line 806
GetEffectNameLocalisationKey
public function GetEffectNameLocalisationKey() : string
- Returns:
- Location:
- starts @ line 758, ends @ line 804
GetEffectType
public function GetEffectType() : EEffectType
- Returns:
- Location:
- starts @ line 807, ends @ line 807
GetEffectValue
public function GetEffectValue() : SAbilityAttributeValue
- Returns:
- Location:
- starts @ line 873, ends @ line 876
GetIcon
GetInitialDuration
public function GetInitialDuration() : float
- Returns:
- Location:
- starts @ line 743, ends @ line 743
GetInteraction
public final function GetInteraction(effect : CBaseGameplayEffect) : EEffectInteract
- Parameters:
- effect : CBaseGameplayEffect
- Returns:
- Location:
- starts @ line 504, ends @ line 535
GetResistStat
public function GetResistStat() : ECharacterDefenseStats
- Returns:
- ECharacterDefenseStats
- Location:
- starts @ line 817, ends @ line 817
GetSourceName
public function GetSourceName() : string
- Returns:
- Location:
- starts @ line 813, ends @ line 813
GetTargetEffectName
public function GetTargetEffectName() : name
- Returns:
- Location:
- starts @ line 854, ends @ line 857
GetTimeActive
GetTimeLeft
GetVibratePadHighFreq
public function GetVibratePadHighFreq() : float
- Returns:
- Location:
- starts @ line 869, ends @ line 872
GetVibratePadLowFreq
public function GetVibratePadLowFreq() : float
- Returns:
- Location:
- starts @ line 864, ends @ line 867
Init
public function Init(params : SEffectInitInfo)
- Parameters:
- params : SEffectInitInfo
- Location:
- starts @ line 106, ends @ line 155
IsActive
IsNegative
IsNeutral
IsOnPlayer
IsPaused
IsPausedDuringDialogAndCutscene
public function IsPausedDuringDialogAndCutscene() : bool
- Returns:
- Location:
- starts @ line 812, ends @ line 812
IsPositive
IsPotionEffect
IsSignEffect
OnLoad
public function OnLoad(t : CActor, eff : W3EffectManager)
- Parameters:
- t : CActor
- eff : W3EffectManager
- Location:
- starts @ line 158, ends @ line 168
OnTargetDeath
public function OnTargetDeath()
- Location:
- starts @ line 487, ends @ line 490
OnTargetDeathAnimFinished
public function OnTargetDeathAnimFinished()
- Location:
- starts @ line 497, ends @ line 497
OnTargetUnconscious
public function OnTargetUnconscious()
- Location:
- starts @ line 492, ends @ line 495
OnTimeUpdated
public function OnTimeUpdated(dt : float)
- Parameters:
- dt : float
- Location:
- starts @ line 612, ends @ line 644
Pause
RecalcDuration
public function RecalcDuration()
- Location:
- starts @ line 286, ends @ line 302
RecalcPotionDuration
public final function RecalcPotionDuration()
- Location:
- starts @ line 840, ends @ line 852
Resume
public final function Resume(sourceName : name)
- Parameters:
- sourceName : name
- Location:
- starts @ line 684, ends @ line 687
ResumeForced
public final function ResumeForced()
- Location:
- starts @ line 690, ends @ line 693
SetTimeLeft
public function SetTimeLeft(t : float)
- Parameters:
- t : float
- Location:
- starts @ line 810, ends @ line 810
ShowOnHUD
UsesCustomCounter
Protected Functions
CalculateDuration
protected function CalculateDuration(optional setInitialDuration : bool)
- Parameters:
- optional setInitialDuration : bool
- Location:
- starts @ line 305, ends @ line 336
GetEffectStrength
protected function GetEffectStrength() : float
- Returns:
- Location:
- starts @ line 567, ends @ line 571
GetSelfInteraction
protected function GetSelfInteraction(e : CBaseGameplayEffect) : EEffectInteract
- Parameters:
- e : CBaseGameplayEffect
- Returns:
- Location:
- starts @ line 538, ends @ line 564
OnPaused
protected function OnPaused()
- Location:
- starts @ line 681, ends @ line 681
OnResumed
protected function OnResumed()
- Location:
- starts @ line 682, ends @ line 682
PlayTargetFX
protected function PlayTargetFX()
- Location:
- starts @ line 408, ends @ line 419
SetEffectValue
protected function SetEffectValue()
- Location:
- starts @ line 171, ends @ line 182
StopTargetFX
protected function StopTargetFX()
- Location:
- starts @ line 422, ends @ line 433
Protected Vars
abilityName
protected var abilityName : name
- Location:
- defined @ line 49
attributeName
protected var attributeName : name
- Location:
- defined @ line 50
cameraEffectName
protected var cameraEffectName : name
- Location:
- defined @ line 70
canBeAppliedOnDeadTarget
protected var canBeAppliedOnDeadTarget : bool
- Location:
- defined @ line 27
creatorHandle
protected var creatorHandle : EntityHandle
- Location:
- defined @ line 53
creatorPowerStat
protected var creatorPowerStat : SAbilityAttributeValue
- Location:
- defined @ line 24
deny
protected var deny : array<EEffectType>
- Location:
- defined @ line 63
dontAddAbilityOnTarget
protected var dontAddAbilityOnTarget : bool
- Location:
- defined @ line 26
duration
protected var duration : float
- Location:
- defined @ line 17
effectDescriptionLocalisationKey
protected var effectDescriptionLocalisationKey : string
- Location:
- defined @ line 82
effectManager
protected var effectManager : W3EffectManager
- Location:
- defined @ line 28
effectNameLocalisationKey
protected var effectNameLocalisationKey : string
- Location:
- defined @ line 81
effectType
protected const var effectType : EEffectType
- Location:
- defined @ line 51
effectValue
protected var effectValue : SAbilityAttributeValue
- Location:
- defined @ line 54
iconPath
protected var iconPath : string
- Location:
- defined @ line 79
initialDuration
protected saved var initialDuration : float
- Location:
- defined @ line 16
isActive
protected var isActive : bool
- Location:
- defined @ line 20
isCameraEffectNameValid
protected var isCameraEffectNameValid : bool
- Location:
- defined @ line 73
isNegative
protected var isNegative : bool
- Location:
- defined @ line 40
isNeutral
protected var isNeutral : bool
- Location:
- defined @ line 39
isOnPlayer
protected var isOnPlayer : bool
- Location:
- defined @ line 46
isPausedDuringDialogAndCutscene
protected var isPausedDuringDialogAndCutscene : bool
- Location:
- defined @ line 25
isPlayingCameraEffect
protected var isPlayingCameraEffect : bool
- Location:
- defined @ line 71
isPositive
protected var isPositive : bool
- Location:
- defined @ line 38
isPotionEffect
protected var isPotionEffect : bool
- Location:
- defined @ line 48
isSignEffect
protected var isSignEffect : bool
- Location:
- defined @ line 47
override
protected var override : array<EEffectType>
- Location:
- defined @ line 64
pauseCounters
protected var pauseCounters : array<SBuffPauseLock>
- Location:
- defined @ line 19
potionItemName
protected var potionItemName : name
- Location:
- defined @ line 55
resistance
protected var resistance : float
- Location:
- defined @ line 23
shouldPlayTargetEffect
protected var shouldPlayTargetEffect : bool
- Location:
- defined @ line 91
showOnHUD
protected var showOnHUD : bool
- Location:
- defined @ line 80
sourceName
protected var sourceName : string
- Location:
- defined @ line 65
switchCameraEffect
protected var switchCameraEffect : bool
- Location:
- defined @ line 72
target
protected var target : CActor
- Location:
- defined @ line 52
targetEffectName
protected var targetEffectName : name
- Location:
- defined @ line 90
timeActive
protected var timeActive : float
- Location:
- defined @ line 15
timeLeft
protected var timeLeft : float
- Location:
- defined @ line 18
usesCustomCounter
protected var usesCustomCounter : bool
- Location:
- defined @ line 21
Event Handlers
OnEffectAdded
event OnEffectAdded(optional customParams : W3BuffCustomParams)
- Parameters:
- optional customParams : W3BuffCustomParams
- Location:
- starts @ line 358
OnEffectAddedPost
event OnEffectAddedPost()
- Location:
- starts @ line 344
OnEffectRemoved
event OnEffectRemoved()
- Location:
- starts @ line 436
OnUpdate
Uninteresting Sub-Classes
These sub-classes have no public/protected members that are not overrides of their parent and have been merged here.
W3Effect_AbilityOnLowHP
class W3Effect_AbilityOnLowHP extends CBaseGameplayEffect
- Location:
- /game/gameplay/effects/effects/other/abilityOnLowHP.ws starts @ line 10, ends @ line 68
W3Effect_AdrenalineDrain
class W3Effect_AdrenalineDrain extends CBaseGameplayEffect
- Location:
- /game/gameplay/effects/effects/auto/adrenaline.ws starts @ line 10, ends @ line 52
W3Effect_AirDrain
class W3Effect_AirDrain extends CBaseGameplayEffect
- Location:
- /game/gameplay/effects/effects/drain/airDrain.ws starts @ line 10, ends @ line 62
W3Effect_AirDrainDive
class W3Effect_AirDrainDive extends CBaseGameplayEffect
- Location:
- /game/gameplay/effects/effects/drain/airDrainDiving.ws starts @ line 10, ends @ line 116
W3Effect_DoTHPRegenReduce
class W3Effect_DoTHPRegenReduce extends CBaseGameplayEffect
- Location:
- /game/gameplay/effects/effects/damageOverTime/dotRegenPause.ws starts @ line 9, ends @ line 21
W3Effect_DoppelgangerEssenceRegen
class W3Effect_DoppelgangerEssenceRegen extends CBaseGameplayEffect
- Location:
- /game/gameplay/effects/effects/other/doppelgangerEssenceRegen.ws starts @ line 10, ends @ line 66
W3Effect_Drunkenness
class W3Effect_Drunkenness extends CBaseGameplayEffect
- Location:
- /game/gameplay/effects/effects/other/drunkenness.ws starts @ line 9, ends @ line 47
W3Effect_LowHealth
class W3Effect_LowHealth extends CBaseGameplayEffect
- Location:
- /game/gameplay/effects/effects/other/lowHealth.ws starts @ line 10, ends @ line 16
W3Effect_OverEncumbered
class W3Effect_OverEncumbered extends CBaseGameplayEffect
- Location:
- /game/gameplay/effects/effects/other/overEncumbered.ws starts @ line 9, ends @ line 52
W3Effect_Runeword8
class W3Effect_Runeword8 extends CBaseGameplayEffect
- Location:
- /game/gameplay/effects/effects/other/runeword8.ws starts @ line 6, ends @ line 60
W3Effect_SilverDust
class W3Effect_SilverDust extends CBaseGameplayEffect
- Location:
- /game/gameplay/effects/effects/other/silverDust.ws starts @ line 9, ends @ line 60
W3Effect_Slowdown
class W3Effect_Slowdown extends CBaseGameplayEffect
- Location:
- /game/gameplay/effects/effects/other/slowdown.ws starts @ line 12, ends @ line 86
W3Effect_SlowdownAxii
class W3Effect_SlowdownAxii extends W3Effect_Slowdown
- Location:
- /game/gameplay/effects/effects/other/slowdownAxii.ws starts @ line 6, ends @ line 9
W3Effect_SlowdownFrost
class W3Effect_SlowdownFrost extends CBaseGameplayEffect
- Location:
- /game/gameplay/effects/effects/other/slowdownFrost.ws starts @ line 6, ends @ line 28
W3Effect_StaminaDrain
class W3Effect_StaminaDrain extends CBaseGameplayEffect
- Location:
- /game/gameplay/effects/effects/drain/staminaDrain.ws starts @ line 10, ends @ line 77
W3Effect_StaminaDrainSwimming
class W3Effect_StaminaDrainSwimming extends CBaseGameplayEffect
- Location:
- /game/gameplay/effects/effects/drain/staminaDrainSwimming.ws starts @ line 10, ends @ line 102
W3Effect_Weaken
class W3Effect_Weaken extends CBaseGameplayEffect
- Location:
- /game/gameplay/effects/effects/other/weaken.ws starts @ line 6, ends @ line 11
W3Effect_WeatherBonus
class W3Effect_WeatherBonus extends CBaseGameplayEffect
- Location:
- /game/gameplay/effects/effects/other/weatherBonus.ws starts @ line 9, ends @ line 15
W3Effect_WolfHour
class W3Effect_WolfHour extends CBaseGameplayEffect
- Location:
- /game/gameplay/effects/effects/other/wolfHour.ws starts @ line 6, ends @ line 26
W3HitSeverityEffect
abstract class W3HitSeverityEffect extends CBaseGameplayEffect
- Location:
- /game/gameplay/effects/effects/hitSeverity.ws starts @ line 10, ends @ line 13
W3Potion_Cat
class W3Potion_Cat extends CBaseGameplayEffect
- Location:
- /game/gameplay/effects/effects/potion/Cat.ws starts @ line 9, ends @ line 125
W3Potion_GoldenOriole
class W3Potion_GoldenOriole extends CBaseGameplayEffect
- Location:
- /game/gameplay/effects/effects/potion/GoldenOriole.ws starts @ line 10, ends @ line 67
W3Potion_MariborForest
class W3Potion_MariborForest extends CBaseGameplayEffect
- Location:
- /game/gameplay/effects/effects/potion/MariborForest.ws starts @ line 10, ends @ line 28
W3Potion_Pheromone
class W3Potion_Pheromone extends CBaseGameplayEffect
- Location:
- /game/gameplay/effects/effects/potion/Pheromone.ws starts @ line 9, ends @ line 24
W3Potion_PheromoneBear
class W3Potion_PheromoneBear extends W3Potion_Pheromone
- Location:
- /game/gameplay/effects/effects/potion/PheromoneBear.ws starts @ line 16, ends @ line 34
W3Potion_PheromoneDrowner
class W3Potion_PheromoneDrowner extends W3Potion_Pheromone
- Location:
- /game/gameplay/effects/effects/potion/PheromoneDrowner.ws starts @ line 16, ends @ line 31
W3Potion_PheromoneNekker
class W3Potion_PheromoneNekker extends W3Potion_Pheromone
- Location:
- /game/gameplay/effects/effects/potion/PheromoneNekker.ws starts @ line 16, ends @ line 31
W3Potion_WhiteHoney
class W3Potion_WhiteHoney extends CBaseGameplayEffect
- Location:
- /game/gameplay/effects/effects/potion/WhiteHoney.ws starts @ line 10, ends @ line 33
W3Potion_WhiteRaffardDecoction
class W3Potion_WhiteRaffardDecoction extends CBaseGameplayEffect
- Location:
- /game/gameplay/effects/effects/potion/WhiteRaffardDecoction.ws starts @ line 10, ends @ line 42