Chaos_Knight
New Member
- Reaction score
- 39
I was creating a Dummy Creating spell. TOOO Hard. I just can some codes and it messed up. My spell does nothing. I can test it but it does nothing, no errors or nothing.
^
Just take a look. After taking a look. Dont wipe. This is awful now, but i justed started with JASS and I'M very proud. There.
JASS:
function Trig_Spell_Actions takes nothing returns boolean
return GetSpellAbilityId() == 039;A000039;
endfunction
function SpellAct takes nothing returns nothing
local unit u1 = GetTriggerUnit()
local player uo = GetOwningPlayer(u1)
local real r = 0
local player ou = GetOwningPlayer(u1)
local location loc = OffsetLocation(GetUnitLoc(u1), 300, 250)
loop
exitwhen r > 360
call CreateUnit(uo,039;u000039;,25,26,r)
call UnitApplyTimedLife(GetLastCreatedUnit(), 039;BTLF039;, 0.20)
call IssuePointOrderLoc(GetLastCreatedUnit(), "shockwave", loc )
set r = r + 36
endloop
endfunction
//===========================================================================
function InitTrig_Spell takes nothing returns nothing
local trigger trig = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( trig, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddAction( trig, function Trig_Spell_Actions )
endfunction
^
Just take a look. After taking a look. Dont wipe. This is awful now, but i justed started with JASS and I'M very proud. There.