모드 강좌
C&C3 새로운 유닛 추가
페이지 정보
본문
CNCXml\GDI\Units\GDIEngineer.xml 파일을 복사한다.
SampleMod\data 폴더에 붙여넣고 파일 이름을 GDIHealer.xml로 바꾼다.
* 읽기 전용이 체크되어 있으니, 파일 속성에서 읽기 전용을 체크 해제하는 것을 잊지말자.
GDIHealer.xml를 열어서 id를 GDIHealer로 바꾼다.
<GameObject
id="GDIHealer"
inheritFrom="BaseInfantry"
SelectPortrait="Portrait_GDIEngineer"
ButtonImage="Portrait_GDIEngineer"
SampleUpdatedLogicCommand.xml를 열어서
<LogicCommand
Type="UNIT_BUILD"
id="Command_ConstructGDIHealer">
<Object>GDIHealer</Object>
</LogicCommand>
를 추가한다.
Mod.xml을 열고
<Include type="all" source="DATA:SampleMod/Data/GDIElfWarrior.xml"/> 아래에
<Include type="all" source="DATA:SampleMod/Data/GDIHealer.xml"/> 을 추가한다.
SampleUpdatedLogicCommandSet.xml을 열고
<Cmd>Command_ConstructGDIHealer</Cmd> 을 추가한다.
<LogicCommandSet
id="GDIBarracksCommandSet">
<Cmd>Command_ConstructGDIRifleSoldierSquad</Cmd>
<Cmd>Command_ConstructGDIMissileSoldierSquad</Cmd>
<Cmd>Command_ConstructGDIEngineer</Cmd>
<Cmd>Command_ConstructGDIGrenadeSoldierSquad</Cmd>
<Cmd>Command_ConstructGDISniperSquad</Cmd>
<Cmd>Command_ConstructGDICommando</Cmd>
<Cmd>Command_ConstructGDIZoneTrooperSquad</Cmd>
<Cmd>Command_ConstructGDIElfWarrior</Cmd>
<Cmd>Command_ConstructGDIHealer</Cmd>
<Cmd>Command_TogglePower</Cmd>
<Cmd>Command_SelfRepair</Cmd>
<Cmd>Command_Sell</Cmd>
<Cmd>Command_SetDefaultBuilding</Cmd>
<Cmd>Command_SetRallyPoint_Infantry</Cmd>
</LogicCommandSet>
이제 추가되었는지 확인하자.