본문 바로가기

인터넷/유틸

war3map.j 파일구조




Black soy 용 자료모음








globals                                                                                          <----이부분이 (전역) 변수선언 시작
timer e=null
timerdialog o=null
rect array V
~~~~~중략~~~~
group MZ=null
force pZ=null
boolexpr PZ=null
endglobals                                                                                   <------변수 선언을 마치고 함수선언 시작
function sZ takes player SZ returns group
set MZ=CreateGroup()
call GroupEnumUnitsOfPlayer(MZ,SZ,PZ)
return MZ
endfunction
function tZ takes mapcontrol TZ returns force
local integer uZ
local player UZ
set pZ=CreateForce()
set uZ=0
loop
set UZ=Player(uZ)
if GetPlayerController(UZ)==TZ then
call ForceAddPlayer(pZ,UZ)
endif
set uZ=uZ+1
exitwhen uZ==16
endloop
return pZ
endfunction
~~~~중략~~~~

call SetStartLocPrio(10,4,4,MAP_LOC_PRIO_HIGH)               <---끝까지 내려보시면 주로 call이 왕창 나오는 부분이있는데 
call SetStartLocPrio(10,5,5,MAP_LOC_PRIO_HIGH)                      이게 선언한 함수를 수행해주라는 명령부분
call SetStartLocPrio(10,6,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(10,7,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(10,8,8,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(10,9,9,MAP_LOC_PRIO_HIGH)
endfunction

반응형