- Joined
- Feb 23, 2008
- Messages
- 27
This is coding for an ability I'm using in a map I'm making. My friend coded this for me in JASS but I want to edit it because its unbalanced and I don't know how to edit it. Anybody know the GUI functions for this?
[/code]
JASS:
RAVAGE-
// Objects used:
// 'A03Z' = Ravage (Scorpio : Axel)
// 'e00E' = Spellcaster
// 'A084' = Ravage 1
// DEBUG Trigger Number : 327
function Trig_Ravage_Conditions takes nothing returns boolean
return GetSpellAbilityId()=='A03Z'
endfunction
function Trig_Ravage_Actions takes nothing returns nothing
local location liD=GetUnitLoc(GetTriggerUnit())
local location lng
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=16
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e00E',GetOwningPlayer(GetTriggerUnit()),liD,bj_UNIT_FACING)
call UnitAddAbility(bj_lastCreatedUnit,'A084')
call SetUnitAbilityLevelSwapped('A084',bj_lastCreatedUnit,GetUnitAbilityLevelSwapped('A03Z',GetTriggerUnit()))
set lng=PolarProjectionBJ(liD,100.,(22.5*I2R(bj_forLoopAIndex)))
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,OrderId("impale"),lng)
call RemoveLocation(lng)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(liD)
endfunction
function StartTrigger_Ravage takes nothing returns nothing
set gg_trg_Ravage=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Ravage,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_Ravage,Condition(function Trig_Ravage_Conditions))
call TriggerAddAction(gg_trg_Ravage,function Trig_Ravage_Actions)
endfunction
function InitTrig_Ravage takes nothing returns nothing
endfunction[code=jass]