- Joined
- Mar 27, 2007
- Messages
- 23
I dont understand what im doing wrong in this script if someone could take a look at it and help me out i would appreciate it
Thanks
JASS:
function Trig_Nuclear_strike_Conditions takes nothing returns boolean
if ( not ( GetIssuedOrderIdBJ() == OrderId("clusterrockets") ) ) then
return false
endif
return true
endfunction
function Trig_Nuclear_strike_Actions takes nothing returns nothing
set effect Nuclear_Stike == AddSpecialEffect
call PlayThematicMusicBJ( "war3mapImported\\Nuke.wav" )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_035" )
call AddSpecialEffectLoc(effect "Abilities\\Spells\\NightElf\\TrueshotAura\\TrueshotAura.mdl" GetOrderPointLoc)
call TriggerSleepAction( 2 )
call DestroyEffect( Nuclear_Target )
set effect Nuclear_Strike = null
endfunction
//===========================================================================
function InitTrig_Nuclear_strike takes nothing returns nothing
set gg_trg_Nuclear_strike = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Nuclear_strike, EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER )
call TriggerAddCondition( gg_trg_Nuclear_strike, Condition( function Trig_Nuclear_strike_Conditions ) )
call TriggerAddAction( gg_trg_Nuclear_strike, function Trig_Nuclear_strike_Actions )
endfunction
Thanks
