• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Zephyr Challenge #2 - Divine

Status
Not open for further replies.
Level 9
Joined
Jul 27, 2006
Messages
652
Although the deadline change does favour my position, i dont want people to think i requested this.
I do agree that it is a strange decision, and i dont want voteing to be prosponed just because of me...
 
Level 18
Joined
Nov 1, 2006
Messages
1,612
Kixer don't worry about it. We know it wasn't you who requested it, it's fine! There are many who haven't had a chance to begin a spell yet, but just found it quite unfair to those of us who have been following this contest since it's beginning to extend the date to allow even more people to come in late. I hope you can get something done, I mean 5 days is a lot of time for one spell!
 
Level 9
Joined
Jul 27, 2006
Messages
652
I too have been following this contest since the start ( actualy before that ) and if i had been able to enter i wouldnt have minded a few extra days for late comers.
But i'll just bide my time untill the next contest ( hey by some strange miricle i might make it in time of this one ). Anyway Mini-Game contest here i come!
 
Come on people, it takes less than an hour to make a spell! (well maybe not for the advanced jassers, but still...)

That's not entirely true, it can take a bit of code for some people.. (*cough* me *cough*)

Anyways, thanks Wolve for putting it in as an attachment. Here is another weird WIP, I need to still fix some things and I need to finish a lot more code. :bored:

Here is the WIP in Notepad:
View attachment JASS Spell [Holy Absorb] NotePad.txt
For those who prefer to see it in jc, here is the link (Sorry, they don't allow .j attachments):
JC_WIP.j from RapidShare

*EDIT*:

Here is the code:

Code:
constant function Holy_Absorb_AbilID takes nothing returns integer
    return 'A000'
endfunction
constant function Holy_FXDestruct_ID takes nothing returns integer
    return 'B000'
endfunction
constant function Holy_FXChannelDS_ID takes nothing returns integer
    return 'B001'
endfunction
constant function LightningID takes nothing returns string
    return "HWPB"
endfunction
constant function SFXHPAbsorbID takes nothing returns string
    return "Abilities\\Spells\\Human\\Resurrect\\ResurrectTarget.mdl"
endfunction
constant function SFXWaveMissle_ID takes nothing returns string
    return "Abilities\\Spells\\Orc\\Shockwave\\ShockwaveMissile.mdl"
endfunction
constant function SFX_AttachP takes nothing returns string
    return "origin"
endfunction
constant function spellduration takes nothing returns integer
    return (GetUnitAbilityLevel(GetTriggerUnit(),'A000')+1)*4
endfunction

function Trig_Holy_Absorb_Conditions takes nothing returns boolean
    return GetSpellAbilityId() == 'A000'
endfunction
function hagfilter takes nothing returns boolean
    if IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE) then
    elseif IsUnitType(GetFilterUnit(), UNIT_TYPE_DEAD) then
    elseif IsUnitType(GetFilterUnit(),UNIT_TYPE_DEAD) then
    elseif IsUnitAlly(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())) then
    endif
    return false
endfunction
function dc_conditions takes nothing returns boolean
    local timer dumt = GetExpiredTimer()
    local unit caster = H2U(GetHandleUnit(dumt,"caster"))
    local boolean array result
    
    set result[1] = IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE) == false
    set result[2] = IsUnitType(GetTriggerUnit(),UNIT_TYPE_MAGIC_IMMUNE) == false
    set result[3] = IsUnitType(GetTriggerUnit(),UNIT_TYPE_DEAD) == false
    set result[4] = IsUnitAlly(GetTriggerUnit(),GetOwningPlayer(caster)) == false
    
    call DestroyTimer(dumt)
    set dumt = null
    set caster = null
    
    return result[1]
    return result[2]
    return result[3]
    return result[4]
endfunction

function dc_actions takes nothing returns nothing
    local unit attacked = GetTriggerUnit()
    local unit attaker = GetAttacker()
    local real damage = GetEventDamage()
    set damage = damage + damage
endfunction

function haggroup takes nothing returns nothing
    local unit caster = GetTriggerUnit()
    local real cx = GetUnitX(caster)
    local real cy = GetUnitY(caster)
    local real ex = GetUnitX(GetEnumUnit())
    local real ey = GetUnitY(GetEnumUnit())
    local trigger gg_trg_Damage_Count = CreateTrigger()
    local boolexpr dc_cond = Condition(function dc_conditions) 
    local lightning array lfx
    
    set lfx[1] = AddLightningEx("HWPB",true,cx,cy,50.00,ex,ey,50.00)
    call TriggerRegisterAnyUnitEventBJ( gg_trg_Damage_Count,EVENT_PLAYER_UNIT_ATTACKED)
    call TriggerAddCondition(gg_trg_Damage_Count,dc_cond)
    call TriggerAddAction(gg_trg_Damage_Count,function dc_actions)
endfunction

function Trig_Holy_Absorb_Actions takes nothing returns nothing
    local timer dumt = CreateTimer()
    local unit caster = GetTriggerUnit()
    local group hag = CreateGroup()
    local boolexpr hfilter = Condition(function hagfilter)
    local real cx = GetUnitX(caster)
    local real cy = GetUnitY(caster)
    
    call GroupEnumUnitsInRange(hag,cx,cy,((GetUnitAbilityLevel(GetTriggerUnit(),'A000')*100)+400),hfilter)
    call ForGroup(hag,function haggroup)
    
    call SetHandleHandle(dumt, "caster", caster)
    
    call DestroyGroup(hag)
    set hag = null
    set caster = null
endfunction

//===========================================================================
function InitTrig_Holy_Absorb takes nothing returns nothing
    local trigger gg_trg_Holy_Absorb = CreateTrigger()
    call TriggerRegisterAnyUnitEventBJ( gg_trg_Holy_Absorb, EVENT_PLAYER_UNIT_SPELL_EFFECT )
    call TriggerAddCondition( gg_trg_Holy_Absorb, Condition( function Trig_Holy_Absorb_Conditions ) )
    call TriggerAddAction( gg_trg_Holy_Absorb, function Trig_Holy_Absorb_Actions )
endfunction
Yes, it is out of order and all weird, but I manage so you can too. :smile:
 
Last edited:
Level 5
Joined
Feb 16, 2006
Messages
151
Tsch, for someone to really have a similar idea to mine...but hey, my version is still way different! =o (I still suggest for the future contests that submissions are sent to the moderators directly, so people having similar ideas don't say the other one jacked it from him...) Anyway, here we go:

Event Rejection
v1.30

Nearby allies get healed by the amount of damage taken for a short moment.
Level 1: Lasts 2 seconds.
Level 1: Lasts 4 seconds.
Level 1: Lasts 6 seconds.
Level 1: Lasts 8 seconds.
 

Attachments

  • event_rejection.jpg
    event_rejection.jpg
    56.8 KB · Views: 153
  • Event Rejection v1.30.w3x
    22.6 KB · Views: 96
Last edited:
Level 10
Joined
Mar 31, 2007
Messages
499
Tsch, for someone to really have a similar idea to mine...but hey, my version is still way different! =o (I still suggest for the future contests that submissions are sent to the moderators directly, so people having similar ideas don't say the other one jacked it from him...) Anyway, here we go:

Event Rejection 1.00 (vjass required)
Units in the targeted area become invulnerable and get healed by amount of damage they should have taken for a short moment.

Nice AOE effect, 9/10 (the healing was alittle unbalanced, but overal it was a\/\/70/\/\3!
 
Level 18
Joined
Nov 1, 2006
Messages
1,612
OK What the hell, I went to update my spell on the last day of the contest (today) and now when I tried to put it on it said I exceeded file size limits. WTF. I deleted the old one, which is just as large, and it still wouldn't let me update the newer one. Did our attachment size limit drop? Please help! I need to be able to put my spell here by today!!!
 
Level 32
Joined
Oct 23, 2006
Messages
5,291
OK What the hell, I went to update my spell on the last day of the contest (today) and now when I tried to put it on it said I exceeded file size limits. WTF. I deleted the old one, which is just as large, and it still wouldn't let me update the newer one. Did our attachment size limit drop? Please help! I need to be able to put my spell here by today!!!

I believe that this unusual situation has now been resolved. Ralle has slightly increased the attachment limits to allow 1)ark_NiTe to update his map. I have temporarily reopended this thread until he does so.

~ Thread reclosed.
 
Status
Not open for further replies.
Top