Name | Type | is_array | initial_value |
a | integer | Yes | |
A_ActiveSpells | integer | No | |
A_AllBirdsGroup | group | No | |
A_AttackedUnits | group | No | |
A_Birds | unit | Yes | |
A_FinalTarget | unit | No | |
A_GeneralInteger | integervar | Yes | |
A_Hero | unit | Yes | |
A_HeroesGroup | group | No | |
A_Level | integer | Yes | |
A_MUIInteger | integer | No | |
A_RadReal | real | No | |
A_TargetGroups | group | Yes | |
A_TempPoint | location | Yes | |
A_TravelingBirds | group | No | |
angle | real | No | |
b | real | Yes | |
BA | integervar | No | |
BA_Angle | real | Yes | |
BA_AOE | real | Yes | |
BA_Calculation | real | Yes | |
BA_Damage | real | Yes | |
BA_Distance | real | Yes | |
BA_Distance_Decoy | real | Yes | |
BA_Dummy | unit | Yes | |
BA_Equation | real | No | |
BA_Fly | real | Yes | |
BA_Formula | real | Yes | |
BA_Group | group | Yes | |
BA_Hero | unit | Yes | |
BA_Level | integer | No | |
BA_Max_Height | real | Yes | |
BA_Nova_Count | integer | Yes | |
BA_Off_Arrow | boolean | Yes | |
BA_Off_Blast | boolean | Yes | |
BA_Point | location | Yes | |
BA_Skip_1 | integer | No | |
BA_Skip_2 | integer | No | |
BA_Special | effect | Yes | |
BA_Speed | real | Yes | |
BA_Targ | location | Yes | |
BA_Times | integer | No | |
Cast_caster | unit | No | |
Cast_target | unit | No | |
caster | unit | No | |
Caster | unit | No | |
Counter | integer | No | |
CurrionAddingNumber | integer | Yes | |
CurrionCaster | unit | Yes | |
CurrionIndexing | integer | No | |
CurrionNumber | integer | Yes | |
CurrionTarget | unit | Yes | |
DamageGroup | group | No | |
Deplacement_ab | abilcode | No | |
Deplacement_pause | real | No | |
Deplacement_vis1 | fogmodifier | No | |
Deplacement_vis2 | fogmodifier | No | |
Destroyfirewall | real | No | |
Dialog | dialog | No | |
Dialogbuttons | button | Yes | |
dummyunit2 | unit | Yes | |
Eff1 | effect | No | |
Eff2 | effect | No | |
Effect_Time | real | No | |
EL_Ability_Level | integer | No | |
El_Arena_lighting | integer | No | |
EL_base_damage | real | No | |
EL_Base_Damage | real | No | |
EL_Base_Number_of_lightings | integer | No | |
EL_Base_Number_of_Ligtnings | integer | No | |
EL_caster | unit | No | |
EL_Caster | unit | No | |
EL_Damage_Area_of_Effect | real | No | |
EL_Damage_Group | group | No | |
EL_Dummy_Ability_Clap | abilcode | No | |
EL_Dummy_Ability_Ligtning | abilcode | No | |
EL_Loop_Location | location | No | |
EL_owner | integer | No | |
EL_Owner | player | No | |
EL_Seek_Area_of_Effect | real | No | |
EL_Seek_Group | group | No | |
EL_Seek_Unit | unit | No | |
EL_Targeted_Location | location | No | |
EL_Total_Damage | real | No | |
EL_Total_Number_of_Ligtnings | integer | No | |
FD_Angle | real | Yes | |
FD_AoE | real | Yes | |
FD_Damage | real | Yes | |
FD_DamageGroup | group | Yes | |
FD_Distance | real | Yes | |
FD_DummySpell | abilcode | No | |
FD_Effect | effect | Yes | |
FD_Group | group | No | |
FD_Integer | integer | Yes | |
FD_Level | integer | Yes | |
FD_MovedDistance | real | Yes | |
FD_Point | location | Yes | |
FD_SpeedUnits | real | Yes | |
FD_TreesDestroy | boolean | Yes | |
FD_Unit | unit | Yes | |
FDK_TempPoint | location | Yes | |
Fire_dragon_caster | unit | Yes | |
Fire_dragon_target | unit | Yes | |
Fire_Effect | effect | No | |
Fire_Effect_Array | effect | Yes | |
Fire_Integer_Array | integer | Yes | |
Fire_Real_Time | real | Yes | |
Fire_Time | real | Yes | |
Fire_time_1 | boolean | Yes | |
Fire_time_2 | boolean | Yes | |
Fire_time_3 | boolean | Yes | |
FireWall_Left | integervar | No | |
FireWall_Location | location | No | |
FireWall_Right | integervar | No | |
GB_Caster | unit | Yes | |
GB_Dummy | unit | Yes | |
GB_DummyPt | location | Yes | |
GB_EffectCounter | integer | Yes | |
GB_Int | integer | Yes | |
GB_Level | integer | Yes | |
GB_MoveReal | real | Yes | |
GB_MoveToPt | location | Yes | |
GB_TarPt | location | Yes | |
GB_UnitGrp | group | Yes | |
group_x | group | Yes | |
GroupLeak | group | No | |
HB | integervar | No | |
HB_Angle | real | Yes | |
HB_Bug | integer | Yes | |
HB_Catch | unit | Yes | |
HB_Damage | real | Yes | |
HB_Debug | integer | Yes | |
HB_Distance | real | Yes | |
HB_Group | group | Yes | |
HB_Hero | unit | Yes | |
HB_LEVEL | integer | No | |
HB_MaxDistance | real | Yes | |
HB_Off | boolean | Yes | |
HB_ON | boolean | Yes | |
HB_Point | location | Yes | |
HB_Skip | integer | No | |
HB_Special | effect | Yes | |
HB_START | location | Yes | |
HB_Times | integer | No | |
HB_Unit | unit | Yes | |
integer | integer | No | |
integer2 | integer | No | |
invulnerable_unit | unit | No | |
Leak_point | location | Yes | |
mdom_effect | effect | No | |
Mental_domination | abilcode | No | |
Meteor_Location | location | No | |
Meteor_Point2 | location | No | |
No | integer | No | |
Notvotedplayers | force | No | |
NuclearFlame_Area | real | No | |
NuclearFlame_Location | location | No | |
Owner | player | No | |
PhantomAxeUnit | unit | Yes | |
point_a | location | Yes | |
point_b | location | Yes | |
point_c | location | Yes | |
PointLeak | location | No | |
PointLeak2 | location | No | |
Posx | real | No | |
Posy | real | No | |
power_charge_caster | unit | Yes | |
power_charge_effect1 | effect | Yes | |
power_charge_effect2 | effect | Yes | |
red | player | No | Player00 |
RushEffect | effect | Yes | |
RushSound | sound | No | |
RushUnit | unit | Yes | |
RushUnitLocation | rect | Yes | |
RushUnitPoint | location | Yes | |
RushUnitPointOffset | location | Yes | |
RushVictim | unit | Yes | |
RushVictimInit | unit | Yes | |
RushVictimPoint | location | Yes | |
SAxeEffects | effect | Yes | |
SAxeGroup | group | Yes | |
SAxeNumber | integer | Yes | |
SAxePoint | location | Yes | |
SAxeTarget | unit | Yes | |
SAxeUnit | unit | Yes | |
Sheild_How_Many | integer | No | |
SS | integervar | No | |
SS_Angle | real | Yes | |
SS_Angle_Speed_Rotation | real | Yes | |
SS_Countdown | integer | Yes | |
SS_Damage | real | Yes | |
SS_Distance | real | Yes | |
SS_Dummy | unit | Yes | |
SS_Formula | real | Yes | |
SS_Group | group | Yes | |
SS_Hero | unit | Yes | |
SS_Knockback_Off | boolean | Yes | |
SS_LEVEL | integer | No | |
SS_Number | real | Yes | |
SS_Point | location | Yes | |
SS_Rotate_Off | boolean | Yes | |
SS_Skip | integer | No | |
SS_Special | effect | Yes | |
SS_Speed | real | Yes | |
SS_Times | integer | No | |
SS_Unit | unit | Yes | |
Target_Point | location | Yes | |
Team1lives | integer | No | |
team2lives | integer | No | |
tempCaster | unit | No | |
tempGroup | group | No | |
tempgroup | group | No | |
temploc | location | No | |
tempNum | integer | No | |
temppoint | location | No | |
temppoint2 | location | No | |
tempUnit | unit | No | |
ToD_Ability | integer | No | |
ToD_Base_Chance | integer | No | |
ToD_Base_Heal | real | No | |
ToD_Caster | unit | No | |
ToD_Dummy_Ability | abilcode | No | |
ToD_Dummy_Ability_Frenzy | abilcode | No | |
ToD_Heal_Group | group | No | |
ToD_Owner | player | No | |
ToD_Position | location | No | |
ToD_Target_Location | location | No | |
ToD_Unit_Counter | integer | No | |
true_a | boolean | Yes | |
TSlahesUnit | unit | Yes | |
TSlashesEffect | effect | Yes | |
Unidad_d | unit | No | |
unit_a | unit | Yes | |
unit_b | unit | Yes | |
unit_c | unit | Yes | |
WF_Angle | real | No | |
WF_Caster | unit | No | |
WF_Caster_Loc | location | No | |
WF_Check | boolean | No | |
WF_Distance | real | No | |
WF_Group | group | No | |
WF_Offset | location | No | |
WF_Point | location | No | |
x | integer | No | |
y | integer | No | |
Yes | integer | No | |
Yonshou_Caster | unit | No | |
Yonshou_Target | unit | No |
// Deplacement - Spell for exchange the position of 2 units
// Jass version with local variables
// This version supports multiple instances of the spell.
// Requires 1.13 version of WTFT
// For use it in your map do this ...
// 1- Copy the ability "deplacement" to your map
// 2- Make a new detonator and "convert to text"
// 3- Change the text for this trigger
// 4- Make the "Deplacement_ab" var of type ability
// and inizializate with the spell copied.
// I hope It be usefull for you
function Trig_Deplacement_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == udg_Deplacement_ab ) ) then
return false
endif
return true
endfunction
function Trig_Deplacement_Actions takes nothing returns nothing
local real Deplacement_pause
local unit Cast_caster
local unit Cast_target
local real Posx
local real Posy
local effect Eff1
local effect Eff2
local fogmodifier Deplacement_vis1
local fogmodifier Deplacement_vis2
if ( GetUnitAbilityLevelSwapped(udg_Deplacement_ab, GetTriggerUnit()) == 1 ) then
set Deplacement_pause = 5.00
else
if ( GetUnitAbilityLevelSwapped(udg_Deplacement_ab, GetTriggerUnit()) == 2 ) then
set Deplacement_pause = 2.50
else
set Deplacement_pause = 0.50
endif
endif
set Cast_caster = GetSpellAbilityUnit()
set Cast_target = GetSpellTargetUnit()
set Posx = GetLocationX(GetUnitLoc(Cast_caster))
set Posy = GetLocationY(GetUnitLoc(Cast_caster))
call AddSpecialEffectTargetUnitBJ( "origin", Cast_caster, "Abilities\\Spells\\Undead\\Darksummoning\\DarkSummonTarget.mdl" )
set Eff1 = GetLastCreatedEffectBJ()
call AddSpecialEffectTargetUnitBJ( "origin", Cast_target, "Abilities\\Spells\\Undead\\Darksummoning\\DarkSummonTarget.mdl" )
set Eff2 = GetLastCreatedEffectBJ()
call PauseUnitBJ( true, Cast_target )
call SetUnitFlyHeightBJ( Cast_caster, 0.00, ( GetUnitFlyHeight(Cast_caster) / 0.60 ) )
call SetUnitFlyHeightBJ( Cast_target, 0.00, ( GetUnitFlyHeight(Cast_target) / 0.60 ) )
call TriggerSleepAction( 0.60 )
call AddSpecialEffectLocBJ( GetUnitLoc(Cast_caster), "Abilities\\Spells\\Undead\\Darksummoning\\DarkSummonTarget.mdl" )
call TriggerSleepAction( 0.20 )
call DestroyEffectBJ( Eff1 )
set Eff1 = GetLastCreatedEffectBJ()
call AddSpecialEffectLocBJ( GetUnitLoc(Cast_target), "Abilities\\Spells\\Undead\\Darksummoning\\DarkSummonTarget.mdl" )
call TriggerSleepAction( 0.20 )
call DestroyEffectBJ( Eff2 )
set Eff2 = GetLastCreatedEffectBJ()
call CreateFogModifierRadiusLocBJ( true, GetOwningPlayer(Cast_caster), FOG_OF_WAR_VISIBLE, GetUnitLoc(Cast_caster), 300.00 )
set Deplacement_vis1 = GetLastCreatedFogModifier()
call FogModifierStart( Deplacement_vis1 )
call CreateFogModifierRadiusLocBJ( true, GetOwningPlayer(Cast_target), FOG_OF_WAR_VISIBLE, GetUnitLoc(Cast_target), 300.00 )
set Deplacement_vis2 = GetLastCreatedFogModifier()
call FogModifierStart( Deplacement_vis2 )
call ShowUnitHide( Cast_caster )
call ShowUnitHide( Cast_target )
call TriggerSleepAction( Deplacement_pause )
call SetUnitPositionLoc( Cast_caster, GetUnitLoc(Cast_target) )
call SetUnitPositionLoc( Cast_target, Location(Posx, Posy) )
call TriggerSleepAction( Deplacement_pause )
call ShowUnitShow( Cast_target )
call ShowUnitShow( Cast_caster )
call DestroyFogModifier( Deplacement_vis1 )
call DestroyFogModifier( Deplacement_vis2 )
call PauseUnitBJ( false, Cast_target )
call SetUnitFlyHeightBJ( Cast_caster, GetUnitDefaultFlyHeight(Cast_caster), ( GetUnitDefaultFlyHeight(Cast_caster) / 0.60 ) )
call SetUnitFlyHeightBJ( Cast_target, GetUnitDefaultFlyHeight(Cast_target), ( GetUnitDefaultFlyHeight(Cast_target) / 0.60 ) )
call TriggerSleepAction( 0.60 )
call DestroyEffectBJ( Eff1 )
call DestroyEffectBJ( Eff2 )
endfunction
//===========================================================================
function InitTrig_Deplacement takes nothing returns nothing
set gg_trg_Deplacement = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Deplacement, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Deplacement, Condition( function Trig_Deplacement_Conditions ) )
call TriggerAddAction( gg_trg_Deplacement, function Trig_Deplacement_Actions )
endfunction
function Trig_Mental_domination_JASS_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == udg_Mental_domination ) ) then
return false
endif
return true
endfunction
function Trig_Mental_domination_JASS_Actions takes nothing returns nothing
local unit Unidad_d
local player Owner
local effect mdom_effect
set Unidad_d = GetSpellTargetUnit()
set Owner = GetOwningPlayer(Unidad_d)
call AddSpecialEffectTargetUnitBJ( "origin", Unidad_d, "Abilities\\Spells\\Items\\AIsp\\SpeedTarget.mdl" )
set mdom_effect = GetLastCreatedEffectBJ()
call TriggerSleepAction( 20.00 )
call SetUnitOwner( Unidad_d, Owner, true )
call DestroyEffectBJ( mdom_effect )
call AddSpecialEffectTargetUnitBJ( "origin", Unidad_d, "Abilities\\Spells\\Other\\Charm\\CharmTarget.mdl" )
set mdom_effect = GetLastCreatedEffectBJ()
call TriggerSleepAction( 3.00 )
call DestroyEffectBJ( mdom_effect )
endfunction
//===========================================================================
function InitTrig_Mental_domination_JASS takes nothing returns nothing
set gg_trg_Mental_domination_JASS = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Mental_domination_JASS, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Mental_domination_JASS, Condition( function Trig_Mental_domination_JASS_Conditions ) )
call TriggerAddAction( gg_trg_Mental_domination_JASS, function Trig_Mental_domination_JASS_Actions )
endfunction