• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

Help fixing my fail jass?

Status
Not open for further replies.
Level 4
Joined
Dec 10, 2008
Messages
25
Hello hiveworkshop. I'm new to JASS and I ran into a problem. just need a few pointers.
JASS:
function Trig_Counter_Helix_Func002C takes nothing returns boolean
    if ( not ( UnitHasBuffBJ(GetTriggerUnit(), 'B000') == true ) ) then
        return false
    endif
    return true
endfunction

function Trig_Counter_Helix_Conditions takes nothing returns boolean
    if ( not Trig_Counter_Helix_Func002C() ) then
        return false
    endif
    return true
endfunction

function Trig_Counter_Helix_Func001Func002002003001 takes nothing returns boolean
    return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(GetTriggerUnit())) == true )
endfunction

function Trig_Counter_Helix_Func001Func002002003002 takes nothing returns boolean
    return ( IsUnitAliveBJ(GetFilterUnit()) == true )
endfunction

function Trig_Counter_Helix_Func001Func002002003 takes nothing returns boolean
    return GetBooleanAnd( Trig_Counter_Helix_Func001Func002002003001(), Trig_Counter_Helix_Func001Func002002003002() )
endfunction

function Trig_Counter_Helix_Func001Func003A takes nothing returns nothing
    call AddSpecialEffectTargetUnitBJ( "origin", GetEnumUnit(), "Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl" )
    call ConditionalTriggerExecute( gg_trg_Destroy_FX )
    call UnitDamageTargetBJ( GetTriggerUnit(), GetEnumUnit(), ( 75.00 + ( 25.00 * I2R(GetUnitAbilityLevelSwapped('A000', GetTriggerUnit())) ) ), ATTACK_TYPE_HERO, DAMAGE_TYPE_NORMAL )
endfunction

function Trig_Counter_Helix_Func001C takes nothing returns boolean
    if ( not ( GetRandomInt(1, 100) <= 15 ) ) then
        return false
    endif
    return true
endfunction

function Trig_Counter_Helix_Actions takes nothing returns nothing
    if ( Trig_Counter_Helix_Func001C() ) then
        set udg_Temp_Point = GetUnitLoc(GetTriggerUnit())
        set udg_Temp_Group = GetUnitsInRangeOfLocMatching(200.00, udg_Temp_Point, Condition(function Trig_Counter_Helix_Func001Func002002003))
        call ForGroupBJ( udg_Temp_Group, function Trig_Counter_Helix_Func001Func003A )
        call SetUnitAnimation( GetTriggerUnit(), "spin" )
        call RemoveLocation(udg_Temp_Point)
        set udg_Temp_Point = null
        call DestroyGroup(udg_Temp_Group)
        set udg_Temp_Group = null
        call DisableTrigger( GetTriggeringTrigger() )
        call TriggerSleepAction( 0.25 )
        call EnableTrigger( GetTriggeringTrigger() )
        call SetUnitAnimation( GetTriggerUnit(), "stand" )
    else
    endif
endfunction

//===========================================================================
function InitTrig_Counter_Helix takes nothing returns nothing
    set gg_trg_Counter_Helix = CreateTrigger(  )
    call TriggerRegisterAnyUnitEventBJ( gg_trg_Counter_Helix, EVENT_PLAYER_UNIT_ATTACKED )
    call TriggerAddCondition( gg_trg_Counter_Helix, Condition( function Trig_Counter_Helix_Conditions ) )
    call TriggerAddAction( gg_trg_Counter_Helix, function Trig_Counter_Helix_Actions )
endfunction

um. i kinda just made a GUI and convert it. :\ im super newb sorry sorry D:
 
Level 2
Joined
Jul 17, 2009
Messages
9
I don't know JASS, but if you haven't closed WorldEditor since converting it, just press Ctrl + Z, or the Undo button, it'll fix it.
 
Status
Not open for further replies.
Top