• 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.

[JASS] Strange Syntax Problem

Status
Not open for further replies.
Level 10
Joined
Sep 6, 2007
Messages
440
JASS:
//===========================================================================
// Trigger: Mental Cancelled
//===========================================================================
function Trig_Mental_Cancelled_Conditions takes nothing returns boolean
    if ( not ( GetSpellAbilityId() == 'A001' ) ) then
        return false
    endif
    return true
endfunction

function Trig_Mental_Cancelled_Actions takes nothing returns nothing
    local unit Caster = GetSpellAbilityUnit()
    local unit Victim = GetSpellTargetUnit()  
    call DisableTrigger( gg_trg_Mental_Looping )
    local location Point = GetUnitLoc(Victim)
    call SetUnitFlyHeightBJ( Victim, 0.00, 400.00 )
    call AddSpecialEffectLocBJ( Point, "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
    call AddSpecialEffectLocBJ( Point, "Abilities\\Spells\\Orc\\EarthQuake\\EarthQuakeTarget.mdl" )
    call CreateNUnitsAtLoc( 1, 'h000', GetOwningPlayer(Caster), Point, bj_UNIT_FACING )
    call SetUnitAbilityLevelSwapped( 'A002', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('A001', Caster) )
    call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetLastCreatedUnit() )
    call IssueTargetOrderBJ( GetLastCreatedUnit(), "thunderbolt", Victim )
    call PauseUnitBJ( false, Victim )
    call DestroyEffectBJ( GetLastCreatedEffectBJ() )
    call DisableTrigger( GetTriggeringTrigger() )
endfunction

Ok here's the problem. I use the tool JassCraft and it says " local location Point " has a syntax error. According to this, it doesn't make the variable and doesn't know what does the " Point " 's in my function mean. I know this is just GUI but that's only the start...
 
Status
Not open for further replies.
Top