Name | Type | is_array | initial_value |
Armor_Integer | integer | No | |
BS_Active | boolean | Yes | |
BS_Caster | unit | Yes | |
BS_CurDamageIntevall | real | Yes | |
BS_Damage | real | Yes | |
BS_DamageIntevall | real | Yes | |
BS_Distance | real | Yes | |
BS_FlyingHight | real | Yes | |
BS_Height | real | Yes | |
BS_LeakPoint | location | Yes | |
BS_Lightning | lightning | Yes | |
BS_LoopIndex | integer | Yes | |
BS_Missle | unit | Yes | |
BS_MissleX | real | No | |
BS_MissleY | real | No | |
BS_MissleZ | real | No | |
BS_SFX | effect | Yes | |
BS_Target | unit | Yes | |
BS_TargetX | real | No | |
BS_TargetY | real | No | |
BS_TargetZ | real | No | |
BS_TempReal | real | Yes | |
BS_Timer | real | Yes | |
BS_XDegree | real | Yes | |
BS_XSpeed | real | Yes | |
BS_ZDegree | real | Yes | |
BS_ZSpeed | real | Yes | |
Caster | unit | No | |
DamageGroup | group | No | |
DashCaster | unit | Yes | |
DashDamage | real | Yes | |
DashDistance | integer | Yes | |
DashGroup1 | group | No | |
DashGroup2 | group | No | |
DashGroup3 | group | No | |
DashInteger | integer | Yes | |
DashPoint3 | location | Yes | |
DashPoint4 | location | Yes | |
DashPoint5 | location | Yes | |
DashReal1 | real | Yes | |
DashReal2 | real | Yes | |
DashSpeed | real | Yes | |
DoingNothingGroup | group | No | |
Item_Integer | integer | No | |
JD_Angle | real | Yes | |
JD_BouncesCur | integer | Yes | |
JD_BouncesMax | integer | Yes | |
JD_DamageBig | real | Yes | |
JD_DamageSmall | real | Yes | |
JD_Distances | real | Yes | |
JD_Group | group | No | |
JD_HighSettings | real | Yes | |
JD_IntegerAVar | integervar | No | |
JD_Integers | integer | Yes | |
JD_JumpHigh | real | Yes | |
JD_Owner | unit | Yes | |
JD_ReachedDistance | real | Yes | |
JD_RealTimer | real | Yes | |
JD_SmallFalse_BigTrue | boolean | Yes | |
JD_SmallPoint | location | No | |
JD_SpeedUnits | real | Yes | |
JD_TempGroup | group | No | |
JD_TempPoint | location | Yes | |
JD_TreesDestroy | boolean | Yes | |
JD_Unit | unit | Yes | |
JDA_Caster | unit | No | |
JDA_DestroyTrees_Dash | boolean | No | |
JDA_JumpHigh_Distance | real | No | |
JDA_SmallFalse_BigTrue | boolean | No | |
JDA_Speed | real | No | |
JDA_TargetPoint | location | No | |
JDA_Unit | unit | No | |
Kill | integer | Yes | |
LeaverGroup | group | No | |
Point1 | location | No | |
Point2 | location | No | |
SF_BouncesNumber | integer | No | |
SF_DamageBigMissiles | real | No | |
SF_DamageSmallMissiles | real | No | |
SF_DestroyTrees | boolean | No | |
SF_NumberOfSmallMissiles | integer | No | |
SF_RangeBetweenBounces | real | No | |
SF_RangeOfSmallMissiles | real | No | |
SF_TempPoint | location | Yes | |
sheepA | real | No | |
sheepG | group | No | |
sheepH | unit | No | |
sheepPT | location | No | |
sheepT | unit | No | |
Slot_Integer | integer | No | |
Spawn_Point | location | Yes | |
Spawn_Point2 | location | Yes | |
SpawnRegions | rect | Yes | |
SpawnRegions2 | rect | Yes | |
SpawnRegions3 | rect | Yes | |
SpawnRegions4 | rect | Yes | |
SpawnRegions5 | rect | Yes | |
Target_Point | location | Yes | |
TempGroup | group | No | |
TempGroup2 | group | No | |
TempGroup3 | group | No | |
TempLoc | location | No | |
TempLoc2 | location | No | |
UnitGroup1 | group | No | |
Unitposition | location | No | |
Weapon_Integer | integer | No |
//TESH.scrollpos=0
//TESH.alwaysfold=0
////////////////////////////////////////////////////////////////////////////
// By Barathrum (Dark_Lord_12) //
// //
// //
// To import the spell: //
// //
// Create a new trigger, convert it and replace the whole code with myne. //
// //
// You will also need an ability, you can copy mine or create your own. //
// //
// I used the ID A000, if you use an other, just change it. //
////////////////////////////////////////////////////////////////////////////
function Slash_Condition takes nothing returns boolean
return GetSpellAbilityId() == 'A01C'
endfunction
function Death takes nothing returns boolean
return ( GetWidgetLife(GetFilterUnit()) <= 0) == false
endfunction
function Slash_Actions takes nothing returns nothing
local unit caster = GetSpellAbilityUnit() // casting unit
local location start_position = GetUnitLoc(caster) // casting units original location when casted
local group enemies = CreateGroup() // the group of units that will be hit by the spell
local unit temp // the current slashed target
local integer count = GetUnitAbilityLevel (caster, 'A01C') * 7 // number of slashes (currently set to do 7 slashes x level of omnislash)
local location temp_loc //location of temp (current slashed unit)
local effect blinkEffect // the effect of caster (blink)
local effect targetEffect // the effect of slashed unit (phoenix misle)
local real delay = 0.10 // this is the delay between slashes. Currently 0.10
call GroupEnumUnitsInRangeOfLoc(enemies, start_position, 750.0, Condition(function Death)) // the range of caster wich units will be picked for targets (currently 750 )
call DestroyEffect( AddSpecialEffectLoc("Abilities\\Spells\\NightElf\\Blink\\BlinkTarget.mdl", GetUnitLoc (caster)))
loop
call TriggerSleepAction (delay)
set temp = null
set temp = GroupPickRandomUnit(enemies)
loop
if GetWidgetLife(temp) <= 0 then
set temp = null
set temp = GroupPickRandomUnit(enemies)
else
exitwhen caster != null
endif
endloop
exitwhen temp == null or count <= 0
if IsUnitEnemy(temp, GetOwningPlayer(caster)) then
set temp_loc = GetUnitLoc(temp)
call DestroyEffect( AddSpecialEffectLoc("Abilities\\Spells\\NightElf\\Blink\\BlinkTarget.mdl", GetUnitLoc (caster)))
call SetUnitPositionLoc(caster, temp_loc)
call SetUnitAnimation( caster, "attack" )
call UnitDamageTarget(caster, temp, GetUnitAbilityLevel (caster, 'A01C') * 100, true, false, ATTACK_TYPE_CHAOS, DAMAGE_TYPE_NORMAL, null) // the demage dealt (currently 100 x level of spell omnislash)
set targetEffect = AddSpecialEffectTarget("Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile_mini.mdl",temp,"chest")
call DestroyEffect (targetEffect)
set count = count - 1
call RemoveLocation(temp_loc)
endif
//call GroupRemoveUnit(enemies, temp)
endloop
call RemoveLocation(start_position)
call DestroyGroup(enemies)
set caster = null
set start_position = null
set enemies = null
set temp = null
call RemoveLocation (temp_loc)
set temp_loc = null
call DestroyEffect (blinkEffect)
call DestroyEffect (targetEffect)
endfunction
function InitTrig_Slash takes nothing returns nothing
set gg_trg_Slash = CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Slash, EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_Slash, Condition(function Slash_Condition))
call TriggerAddAction(gg_trg_Slash, function Slash_Actions)
endfunction