jass to vjass conversion

mordocai

New Member
Reaction score
17
hey guys i kinda need this spell that wolfie made for me converted to vjass. +Rep, and credits will be given
JASS:
//Put this next line in your map header
group BDGROUP = CreateGroup()
//Put the above line in your map header


private function DURATION takes integer level returns integer
    return (level + 2)
endfunction

private function AOE takes integer level returns integer
    return ((level * 100) + 300)
endfunction
    
// +----------------------------------------------+
// |       -=-=- NO TOUCHIE PAST HERE -=-=-       |
// |       -=-=- NO TOUCHIE PAST HERE -=-=-       |
// |       -=-=- NO TOUCHIE PAST HERE -=-=-       |
// +----------------------------------------------+

private function BDGConditions takes nothing returns boolean
    return IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(GetTriggerUnit())) and IsUnitType(GetFilterUnit(), UNIT_TYPE_DEAD) != true
endfunction

private function BDGActions takes nothing returns nothing
    if (bj_cineFadeContinueTimer != null) then
        call DestroyTimer(bj_cineFadeContinueTimer)
    endif
    if (bj_cineFadeFinishTimer != null) then
        call DestroyTimer(bj_cineFadeFinishTimer)
    endif
    call SetCineFilterTexture("ReplaceableTextures\\CameraMasks\\Black_mask.blp")
    call SetCineFilterBlendMode(BLEND_MODE_BLEND)
    call SetCineFilterTexMapFlags(TEXMAP_FLAG_NONE)
    call SetCineFilterStartUV(0, 0, 1, 1)
    call SetCineFilterEndUV(0, 0, 1, 1)
    call SetCineFilterStartColor(100, 100, 100, 100)
    call SetCineFilterEndColor(0, 0, 0, 0)
    call SetCineFilterDuration(0.50)
    call DisplayCineFilter(true)

    if (bj_cineFadeContinueTimer != null) then
        call DestroyTimer(bj_cineFadeContinueTimer)
    endif
    if (bj_cineFadeFinishTimer != null) then
        call DestroyTimer(bj_cineFadeFinishTimer)
    endif
    call SetCineFilterTexture("ReplaceableTextures\\CameraMasks\\Black_mask.blp")
    call SetCineFilterBlendMode(BLEND_MODE_BLEND)
    call SetCineFilterTexMapFlags(TEXMAP_FLAG_NONE)
    call SetCineFilterStartUV(0, 0, 1, 1)
    call SetCineFilterEndUV(0, 0, 1, 1)
    call SetCineFilterStartColor(0, 0, 0, 0)
    call SetCineFilterEndColor(100, 100, 100, 100)
    call SetCineFilterDuration(DURATION(GetUnitAbilityLevel(GetTriggerUnit(), BDID)))
    call DisplayCineFilter(true)
endfunction

private function BDConditions takes nothing returns boolean
    return (GetSpellAbilityId() == 'A000')
endfunction
    
private function BDActions takes nothing returns nothing
    local real CX = GetUnitX(GetTriggerUnit())
    local real CY = GetUnitY(GetTriggerUnit())

    call GroupEnumUnitsInRange(BDGROUP, CX, CY, AOE(GetUnitAbilityLevel(GetTriggerUnit(), 'A000')), Condition(function BDGConditions))
    call ForGroup(BDGROUP, function BDGActions)
endfunction

//====================================================================================================
private function BDInit takes nothing returns nothing
    local trigger t = CreateTrigger()
    local integer i = 0

    loop
        call TriggerRegisterPlayerUnitEvent(t, Player(i), EVENT_PLAYER_UNIT_SPELL_EFFECT, null)
        set i = i + 1
    exitwhen i == bj_MAX_PLAYER_SLOTS
    endloop
    call TriggerAddCondition(t, Condition(function BDConditions))
    call TriggerAddAction(t, function BDActions)        
endfunction
 

bOb666777

Stand against the ugly world domination face!
Reaction score
117
Technically, this is vJass, except you don't use any vjass features :p
 

mordocai

New Member
Reaction score
17
well you know what i mean >> he made it in vjass once but i deleted it. I just need the features of vjass and hopefully wont have to put anything in my header
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top