- Joined
- Jan 30, 2013
- Messages
- 12,872
Now that this is out, I can work further with the spells I have been delaying thanks to this effect stuff.
CloudVar1

Events


Unit - A unit Starts the effect of an ability

Conditions


(Ability being cast) Equal to Silence

Actions


Special Effect - Create a special effect at (Target point of ability being cast) using Abilities\Spells\Human\CloudOfFog\CloudOfFog.mdl


Wait 3.00 seconds


Special Effect - Destroy (Last created special effect)
CloudVar2

Events


Unit - A unit Starts the effect of an ability

Conditions


(Ability being cast) Equal to Silence

Actions


Custom script: local effect u


Special Effect - Create a special effect at (Target point of ability being cast) using Abilities\Spells\Human\CloudOfFog\CloudOfFog.mdl


Custom script: set u = GetLastCreatedEffectBJ()


Wait 3.00 seconds


Custom script: call DestroyEffectBJ(u)
TestEffect 2

Events


Unit - A unit Starts the effect of an ability

Conditions


(Ability being cast) Equal to Silence

Actions


Set TSEDuration = 3.00


Set TSEEffectName = Abilities\Spells\Human\CloudOfFog\CloudOfFog.mdl


Set TSEPoint = (Target point of ability being cast)


Trigger - Run TSE_RegisterTrigger (checking conditions)
TestEffect with Event

Events


Unit - A unit Starts the effect of an ability

Conditions


(Ability being cast) Equal to Thunder Clap

Actions


Set TSEDuration = 5.00


Set TSEAttachPoint = overhead


Set TSEEffectName = Abilities\Spells\Human\MagicSentry\MagicSentryCaster.mdl


Set TSETargetUnit = (Triggering unit)


Set TSEUnitAliveCheck = True


Set TSEOnLoopEvent = TestEffect CheckDur <gen>


Set TSEOnLoopTimer = 1.00


Set TSEOnEndEvent = TestEffect HealAfterDelay <gen>


Trigger - Run TSE_RegisterTrigger (checking conditions)
TestEffect HealAfterDelay

Events

Conditions

Actions


Unit - Set life of TSE__TargetUnit to 100.00%
TestEffect CheckDur

Events

Conditions

Actions


Game - Display to (All players) the text: (Current Index: + (String(TSE__ActiveIndex)))


Game - Display to (All players) the text: (Remaining Time: + (String(TSE__RemainingDuration)))
TSESampleRegisterUnit

Events

Conditions

Actions


-------- CORE --------


-------- TSEDuration is the duration of the effect --------


Set TSEDuration = 10.00


-------- TSETargetUnit determine which unit has this effect attached --------


Set TSETargetUnit = (Triggering unit)


-------- TSEAttachPoint is only used in conjunction with TargetUnit to determine in which part of unit it is placed --------


Set TSEAttachPoint = left hand


-------- EffectName is the string to the effect file --------


Set TSEEffectName = war3mapImported/Soul Bow Enchantment Necro.mdx


-------- EXTENSION --------


-------- TSETargetUnitAliveCheck refers to whether the attached effect account whether the unit is alive or not --------


Set TSETargetUnitAliveCheck = False


-------- TSESourceUnit refers to the source of the buff, useful if the TargetUnit and SourceUnit are two different units --------


-------- KNOWN ISSUE TILL V1.5: If SourceUnit is set to a unit and the SourceUnit is killed, the buff will immediately ceased --------


-------- KNOWN ISSUE TILL V1.5: (cont) so if the buff is not tied to the state of the source, it is preferred to not be set --------


Set TSESourceUnit = (Triggering unit)


-------- TSESourceUnitAliveCheck is to troubleshoot the KNOWN ISSUE for v1.5 --------


-------- Since it is considered an issue, the default state is now to ignore SourceUnit state (False) --------


Set TSESourceUnitAliveCheck = False


-------- TSEChanneledOrderID is used for buff tied with channeling spells --------


-------- The buff immediately ceased if the channeling spell ends --------


Set TSEChanneledOrderID = blizzard


-------- TSEChanneledOrderID is used for buff tied with channeling spells --------


-------- TSEOnIndexEvent is an event that runs when the effect is created (directly at moment of effect creation). Refer to data with TSE__ActiveIndex. --------


-------- Read TSELockInstance notes if external array variables uses TSE__ActiveIndex. --------


Set TSEOnIndexEvent = TSEOnIndexEvent


-------- TSEOnLoopEvent is an event that runs every TSEOnLoopTimer seconds. Refer to data with TSE__ActiveIndex. --------


-------- Read TSELockInstance notes if external array variables uses TSE__ActiveIndex. --------


Set TSEOnLoopEvent = TSEOnLoopEvent


-------- TSEOnLoopTimer is the duration between each tick of the loop --------


-------- Setting this allows better control over the OnLoopEvent instead of dealing with TSE_TIMEOUT global --------


-------- This variable cannot be lower than TSE_TIMEOUT --------


Set TSEOnLoopTimer = 1.00


-------- TSEOnEndEvent is an event that runs when the effect is about to be destroyed. Refer to data with TSE__ActiveIndex. --------


-------- Read TSELockInstance notes if external array variables uses TSE__ActiveIndex. --------


Set TSEOnEndEvent = TSEOnEndEvent


-------- If you utilize external array variables tied to TSE__ActiveIndex (v1.6+) OR TSE_Index /TSE_MaxIndex (v1.5-) in any of the event, YOU MUST SET LOCK INSTANCE TO TRUE --------


-------- Else, it is recommended to set this to false so the system performs better --------


Set TSELockInstance = False


-------- END --------


-------- After all core variables are set, run TSE_RegisterTrigger --------


Trigger - Run TSE_RegisterTrigger (checking conditions)
TSESampleRegisterPoint

Events

Conditions

Actions


-------- CORE --------


-------- TSEDuration is the duration of the effect --------


Set TSEDuration = 16.00


-------- TSEEffectName is the string to the effect file --------


Set TSEEffectName = Abilities\Spells\Human\CloudOfFog\CloudOfFog.mdl


-------- TSEPoint is the position of the effect created --------


Set TSEPoint = (Target point of ability being cast)


-------- EXTENSION --------


-------- TSESourceUnit refers to the source of the buff, useful if the TargetUnit and SourceUnit are two different units --------


-------- KNOWN ISSUE TILL V1.5: If SourceUnit is set to a unit and the SourceUnit is killed, the buff will immediately ceased --------


-------- KNOWN ISSUE TILL V1.5: (cont) so if the buff is not tied to the state of the source, it is preferred to not be set --------


Set TSESourceUnit = (Triggering unit)


-------- TSESourceUnitAliveCheck is to troubleshoot the KNOWN ISSUE for v1.5 --------


-------- Since it is considered an issue, the default state is now to ignore SourceUnit state (False) --------


Set TSESourceUnitAliveCheck = False


-------- TSEChanneledOrderID is used for buff tied with channeling spells --------


-------- The buff immediately ceased if the channeling spell ends --------


Set TSEChanneledOrderID = blizzard


-------- TSEChanneledOrderID is used for buff tied with channeling spells --------


-------- TSEOnIndexEvent is an event that runs when the effect is created (directly at moment of effect creation). Refer to data with TSE__ActiveIndex. --------


-------- Read TSELockInstance notes if external array variables uses TSE__ActiveIndex. --------


Set TSEOnIndexEvent = TSEOnIndexEvent


-------- TSEOnLoopEvent is an event that runs every TSEOnLoopTimer seconds. Refer to data with TSE__ActiveIndex. --------


-------- Read TSELockInstance notes if external array variables uses TSE__ActiveIndex. --------


Set TSEOnLoopEvent = TSEOnLoopEvent


-------- TSEOnLoopTimer is the duration between each tick of the loop --------


-------- Setting this allows better control over the OnLoopEvent instead of dealing with TSE_TIMEOUT global --------


-------- This variable cannot be lower than TSE_TIMEOUT --------


Set TSEOnLoopTimer = 1.00


-------- TSEOnEndEvent is an event that runs when the effect is about to be destroyed. Refer to data with TSE__ActiveIndex. --------


-------- Read TSELockInstance notes if external array variables uses TSE__ActiveIndex. --------


Set TSEOnEndEvent = TSEOnEndEvent


-------- If you utilize external array variables tied to TSE__ActiveIndex (v1.6+) OR TSE_Index /TSE_MaxIndex (v1.5-) in any of the event, YOU MUST SET LOCK INSTANCE TO TRUE --------


-------- Else, it is recommended to set this to false so the system performs better --------


Set TSELockInstance = False


-------- END --------


-------- After all core variables are set, run TSE_RegisterTrigger --------


Trigger - Run TSE_RegisterTrigger (checking conditions)