Hi. I intend to add a modified mission type: a sentry mission that works only if a unit of the same type is the vission range. That means that a sentried ship would only awake when an enemy ship were at sight.
The entry in CIV4MissionInfos.xml for the standard sentry mission is:
<MissionInfo>
<Type>MISSION_SENTRY</Type>
<Description>TXT_KEY_MISSION_SENTRY</Description>
<Help>TXT_KEY_MISSION_SENTRY_HELP</Help>
<Waypoint>NONE</Waypoint>
<EntityEventType>ENTITY_EVENT_SENTRY</EntityEventType>
<iTime>0</iTime>
<bTarget>0</bTarget>
<bBuild>0</bBuild>
<bSound>1</bSound>
<HotKey>KB_S</HotKey>
<bAltDown>0</bAltDown>
<bShiftDown>0</bShiftDown>
<bCtrlDown>0</bCtrlDown>
<iHotKeyPriority>0</iHotKeyPriority>
<iOrderPriority>12</iOrderPriority>
<bVisible>1</bVisible>
<Button>,Art/Interface/Buttons/Actions/Sentry.dds,Art/Interface/Buttons/Actions_Builds_LeaderHeads_Specialists_Atlas.dds,4,4</Button>
</MissionInfo>
My question is: can I add the modified sentry mission in this file without having to specify a new button? I don't know if it is possible allowing "Shift + Sentry button" to be the new interface of the new mission. I know then I'll have to modify CvEnums.h and other C++ files to make a new CvGameCoreDLL.dll, adding the new behaviour of the new sentry mission.
The entry in CIV4MissionInfos.xml for the standard sentry mission is:
<MissionInfo>
<Type>MISSION_SENTRY</Type>
<Description>TXT_KEY_MISSION_SENTRY</Description>
<Help>TXT_KEY_MISSION_SENTRY_HELP</Help>
<Waypoint>NONE</Waypoint>
<EntityEventType>ENTITY_EVENT_SENTRY</EntityEventType>
<iTime>0</iTime>
<bTarget>0</bTarget>
<bBuild>0</bBuild>
<bSound>1</bSound>
<HotKey>KB_S</HotKey>
<bAltDown>0</bAltDown>
<bShiftDown>0</bShiftDown>
<bCtrlDown>0</bCtrlDown>
<iHotKeyPriority>0</iHotKeyPriority>
<iOrderPriority>12</iOrderPriority>
<bVisible>1</bVisible>
<Button>,Art/Interface/Buttons/Actions/Sentry.dds,Art/Interface/Buttons/Actions_Builds_LeaderHeads_Specialists_Atlas.dds,4,4</Button>
</MissionInfo>
My question is: can I add the modified sentry mission in this file without having to specify a new button? I don't know if it is possible allowing "Shift + Sentry button" to be the new interface of the new mission. I know then I'll have to modify CvEnums.h and other C++ files to make a new CvGameCoreDLL.dll, adding the new behaviour of the new sentry mission.