Arcane
You can change this now in User CP.
- Reaction score
- 87
This is basically a non-channel Starfall - or is supposed to be.
I have no idea how to periodically move the dummy unit to the location of the caster, and I guess through that periodically check if the caster is still alive.
Halp?
I have no idea how to periodically move the dummy unit to the location of the caster, and I guess through that periodically check if the caster is still alive.
Halp?
JASS:
function Trig_Star_Light_Star_Bright_GUI_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 039;ANcl039; ) ) then
return false
endif
return true
endfunction
globals
unit caster
unit dummy
location casterloc
player casterown
timer T=CreateTimer()
integer Total=15
endglobals
function Actions takes nothing returns nothing
set caster = GetTriggerUnit()
set casterown = GetOwningPlayer(caster)
set casterloc = GetUnitLoc(caster)
call CreateNUnitsAtLoc( 1, 039;nvlk039;, casterown, casterloc, bj_UNIT_FACING)
set dummy = GetLastCreatedUnit()
call UnitAddAbility(dummy, 039;AEsf039;)
call SetUnitAbilityLevel(dummy, 039;AEsf039;, GetUnitAbilityLevel(caster, 039;ANcl039;))
call IssueImmediateOrder(dummy, "starfall")
endfunction
//===========================================================================
function InitTrig_JASS takes nothing returns nothing
set gg_trg_JASS = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_JASS, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_JASS, Condition( function Trig_Star_Light_Star_Bright_GUI_Conditions ) )
call TriggerAddAction( gg_trg_JASS, function Actions)
endfunction