이제부터 생각날때마다 토막토막 한두개씩 명령어 올릴게


[콘솔사용법] 검색 ㄱㄱ




오늘의 콘솔: 멀티에서 팀 나누기



-참고-


기본 팀 이름은 

플레이어 player

적군 enemy

중립 neutral (공용)




-기본-

/c game.player.print( game.player.force.name )

자기가 속한 팀 이름 확인


/c for F in pairs(game.forces) do game.player.print(F) end

모든 팀 이름 출력


/c game.create_force('팀이름') 

새로운 팀 만들기


/c game.players['친구이름'].force=game.forces['팀이름'] 

플레이어를 다른 팀으로 옮기기


/c game.merge_forces('팀1', '팀2')

팀 병합


PVP 금지: 

/c game.forces['팀1'].set_cease_fire('팀2', true) 

PVP 허용: 

/c game.forces['팀1'].set_cease_fire('팀2', false)




-고급-


/c TR = game.forces['원본팀'].technologies for T in pairs( TR ) do if TR[T].researched then game.forces['대상팀'].technologies[T].researched=true end end

연구 이전


/c BS = game.surfaces[1].find_entities({{-10, -10}, {10, 10}}) for BD in pairs( BS ) do BS[BD].force = game.forces['대상팀] end

영역 안에 있는 엔티티 대상 팀에 속하게 하기(소유 지정)

영역은 

{-10, -10}, {10, 10}

이 부분을 수정하면 됨

각각의 좌표는 직사각형의 왼쪽 아래 꼭짓점과 오른쪽 위 꼭짓점임

커서 위치의 좌표는 F4를 눌러 확인