Invalid Argument Type (unknown type)

smexy_LOLrus

New Member
Reaction score
0
When I try to compile my trigger it gives me the error "Invalid Argument Type (unknown type)". The function I am calling has no arguments so I have no idea why this is happening.

I am very new to Jass and I don't have vJass but I could get it.
Thankyou in advance.
 

smexy_LOLrus

New Member
Reaction score
0
oops, now I feel like an idiot.
here is the code.

JASS:
function Trig_Mytrigger_Actions takes nothing returns nothing

endfunction

function Trig_Mytrigger_Conditions takes nothing returns boolean
    if ( not ( GetLearnedSkillBJ() == 'A011' ) ) then
        return false
    endif
    if ( not ( GetUnitAbilityLevelSwapped('A011', GetTriggerUnit()) == 1 ) ) then
        return false
    endif
    return true
endfunction

//===========================================================================
function InitTrig_Mytrigger takes nothing returns nothing
    set gg_trg_Mytrigger = CreateTrigger(  )
    call TriggerRegisterAnyUnitEventBJ( gg_trg_Mytrigger, EVENT_PLAYER_HERO_SKILL )
    call TriggerAddCondition( gg_trg_Mytrigger, function Trig_Mytrigger_Conditions )
    call TriggerAddAction( gg_trg_Mytrigger, function Trig_Mytrigger_Actions )
endfunction
 

smexy_LOLrus

New Member
Reaction score
0
ok, thanks.
In an unrelated question are there any web pages that are just lists of all the jass natives and commands?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top