- Joined
- Jun 15, 2016
- Messages
- 472
I tried creating a skeleton spawning system, and after a lot of simplification, I got to a test map with the following code:
It has 2 errors that I typed in comments, and I don't know why I got them (What wrong arguments/argument order).
What's really bothering me though are 2 more errors in the map config section, Which I did not touch (except deleting the map initialization triggers maybe?) which are also commented below:
any ideas?
JASS:
function First_Encounter_Birth takes unit u returns nothing
local rect temp_loc = GetUnitLoc(u)
call SetUnitAnimation (u,"birth") // type mismatch in assignment
call DestroyEffect(AddSpecialEffectLoc("Abilities\Spells\Undead\RaiseSkeletonWarrior\RaiseSkeleton.mdl",temp_loc)) // excpected a valid arguement list
endfunction
function First_Encounter_Set takes nothing returns nothing
call CreateUnitAtLoc(1,"uske",SpawnPoint,315)
local unit temp = GetLastCreatedUnit()
call First_Encounter_Birth(temp)
endfunction
function InitTrig_JASS_Test takes nothing returns nothing
local trigger JASS_Test = CreateTrigger()
call TriggerRegisterEnterRegionSimple(JASS_Test,footswitch)
call TriggerAddAction (JASS_Test,function )
set JASS_Test = null
endfunction
It has 2 errors that I typed in comments, and I don't know why I got them (What wrong arguments/argument order).
What's really bothering me though are 2 more errors in the map config section, Which I did not touch (except deleting the map initialization triggers maybe?) which are also commented below:
JASS:
call InitCustomPlayerSlots( ) // expected a fuction name
call SetPlayerSlotAvailable( Player(0), MAP_CONTROL_USER )
call InitGenericPlayerSlots( ) // expected a code statement
any ideas?