Здравствуйте! Авторизуйтесь или зарегистрируйтесь, чтобы использовать полный функционал сайта
Быстрая авторизация через соцсети:

Главная » Статьи » Моддинг » Коддинг
Захват строений созданным героем

Снова привет! А сегодня я напишу, как созданному герою класса капитан Гондора и подкупленный человек разблокировать способность "Conquer" - подчинение строений врага (кроме крепости) навсегда!
Для этого нам понадобятся следующие адреса в ini (BIG файле):
1.data\ini\сommandbutton.ini.
2.data\ini\object\createahero\createaheropowers.
3.data\ini\createaherospecialpowers.

Сначала разблокируем эту способность в сommandbutton.ini.. Для этого нужно убрать вот это: //.

Было так:

//------------------- Create A Hero ----------------------------
//--------------------------------------------------------------
// CommandButton Command_CreateAHero_HotW_Conquer
// Command = SPECIAL_POWER
// SpecialPower = SpecialAbilityCreateAHeroHotWConquer
// Options = CONTEXTMODE_COMMAND NEED_TARGET_ENEMY_OBJECT
// TextLabel = CONTROLBAR:CAH_HotW_Conquer
// ButtonImage = CAHConquer
// ButtonBorderType = ACTION
// DescriptLabel = CONTROLBAR:ToolTipCAH_HotW_Conquer
// InPalantir = Yes
// AutoAbility = No
// CursorName = CaptureBuilding
// InvalidCursorName = GenericInvalid
//
// CreateAHeroUIAllowableUpgrades = Upgrade_CreateAHero_ClassHeroOfTheWest
// CreateAHeroUIMinimumLevel = 7
// CreateAHeroUIPrerequisiteButtonName = None
// End

//------------------- Create A Hero ----------------------------
//--------------------------------------------------------------
// CommandButton Command_CreateAHero_CM_Conquer
// Command = SPECIAL_POWER
// SpecialPower = SpecialAbilityCreateAHeroCMConquer
// Options = CONTEXTMODE_COMMAND NEED_TARGET_ENEMY_OBJECT
// TextLabel = CONTROLBAR:CAH_CM_Conquer
// ButtonImage = CAHConquer
// ButtonBorderType = ACTION
// DescriptLabel = CONTROLBAR:ToolTipCAH_CM_Conquer
// InPalantir = Yes
// AutoAbility = No
// CursorName = CaptureBuilding
// InvalidCursorName = GenericInvalid
//
// CreateAHeroUIAllowableUpgrades = Upgrade_CreateAHero_ClassCorruptedMan
// CreateAHeroUIMinimumLevel = 7
// CreateAHeroUIPrerequisiteButtonName = None
// End

А будет так:

//------------------- Create A Hero ----------------------------
//--------------------------------------------------------------
CommandButton Command_CreateAHero_HotW_Conquer
Command = SPECIAL_POWER
SpecialPower = SpecialAbilityCreateAHeroHotWConquer
Options = CONTEXTMODE_COMMAND NEED_TARGET_ENEMY_OBJECT
TextLabel = CONTROLBAR:CAH_HotW_Conquer
ButtonImage = CAHConquer
ButtonBorderType = ACTION
DescriptLabel = CONTROLBAR:ToolTipCAH_HotW_Conquer
InPalantir = Yes
AutoAbility = No
CursorName = CaptureBuilding
InvalidCursorName = GenericInvalid

CreateAHeroUIAllowableUpgrades = Upgrade_CreateAHero_ClassHeroOfTheWest
CreateAHeroUIMinimumLevel = 7
CreateAHeroUIPrerequisiteButtonName = None
End

//------------------- Create A Hero ----------------------------
//--------------------------------------------------------------
CommandButton Command_CreateAHero_CM_Conquer
Command = SPECIAL_POWER
SpecialPower = SpecialAbilityCreateAHeroCMConquer
Options = CONTEXTMODE_COMMAND NEED_TARGET_ENEMY_OBJECT
TextLabel = CONTROLBAR:CAH_CM_Conquer
ButtonImage = CAHConquer
ButtonBorderType = ACTION
DescriptLabel = CONTROLBAR:ToolTipCAH_CM_Conquer
InPalantir = Yes
AutoAbility = No
CursorName = CaptureBuilding
InvalidCursorName = GenericInvalid

CreateAHeroUIAllowableUpgrades = Upgrade_CreateAHero_ClassCorruptedMan
CreateAHeroUIMinimumLevel = 7
CreateAHeroUIPrerequisiteButtonName = None
End

Затем идём в object\createahero\createaheropowers. Там находим:

//
// //--------------------------------------------------------------------------
// // CONQUER SPECIAL POWER (Hero of the West)
// //--------------------------------------------------------------------------
// Behavior = UnpauseSpecialPowerUpgrade ModuleTag_CreateAHeroHotWConquerEnabler
// SpecialPowerTemplate = SpecialAbilityCreateAHeroHotWConquer
// TriggeredBy = Upgrade_CreateAHeroHotWConquer
// End
// Behavior = SpecialPowerModule ModuleTag_CreateAHeroHotWConquerStarter
// SpecialPowerTemplate = SpecialAbilityCreateAHeroHotWConquer
// UpdateModuleStartsAttack = Yes
// StartsPaused = Yes
// End
// Behavior = SpecialAbilityUpdate ModuleTag_CreateAHeroHotWConquerUpdate
// SpecialPowerTemplate = SpecialAbilityCreateAHeroHotWConquer
// StartAbilityRange = 5.0
// UnpackTime = 3000 ;// (changing this will scale anim speed)
// PreparationTime = 20000 ;// time to complete hack once prepared (changing this will scale anim speed)
// PackTime = 2000 ;// (changing this will scale anim speed)
// DoCaptureFX = Yes
// UnpackingVariation = 4
// End
//
// //--------------------------------------------------------------------------
// // CONQUER SPECIAL POWER (Corrupted Man)
// //--------------------------------------------------------------------------
// Behavior = UnpauseSpecialPowerUpgrade ModuleTag_CreateAHeroCMConquerEnabler
// SpecialPowerTemplate = SpecialAbilityCreateAHeroCMConquer
// TriggeredBy = Upgrade_CreateAHeroCMConquer
// End
// Behavior = SpecialPowerModule ModuleTag_CreateAHeroCMConquerStarter
// SpecialPowerTemplate = SpecialAbilityCreateAHeroCMConquer
// UpdateModuleStartsAttack = Yes
// StartsPaused = Yes
// End
// Behavior = SpecialAbilityUpdate ModuleTag_CreateAHeroCMConquerUpdate
// SpecialPowerTemplate = SpecialAbilityCreateAHeroCMConquer
// StartAbilityRange = 5.0
// UnpackTime = 3000 ;// (changing this will scale anim speed)
// PreparationTime = 20000 ;// time to complete hack once prepared (changing this will scale anim speed)
// PackTime = 2000 ;// (changing this will scale anim speed)
// DoCaptureFX = Yes
// UnpackingVariation = 4
// End
//

Снова убрав //, получим это:

//--------------------------------------------------------------------------
// CONQUER SPECIAL POWER (Hero of the West)
//--------------------------------------------------------------------------
Behavior = UnpauseSpecialPowerUpgrade ModuleTag_CreateAHeroHotWConquerEnabler
SpecialPowerTemplate = SpecialAbilityCreateAHeroHotWConquer
TriggeredBy = Upgrade_CreateAHeroHotWConquer
End
Behavior = SpecialPowerModule ModuleTag_CreateAHeroHotWConquerStarter
SpecialPowerTemplate = SpecialAbilityCreateAHeroHotWConquer
UpdateModuleStartsAttack = Yes
StartsPaused = Yes
End
Behavior = SpecialAbilityUpdate ModuleTag_CreateAHeroHotWConquerUpdate
SpecialPowerTemplate = SpecialAbilityCreateAHeroHotWConquer
StartAbilityRange = 5.0
UnpackTime = 3000 ;// (changing this will scale anim speed)
PreparationTime = 20000 ;// time to complete hack once prepared (changing this will scale anim speed)
PackTime = 2000 ;// (changing this will scale anim speed)
DoCaptureFX = Yes
UnpackingVariation = 4
End

//--------------------------------------------------------------------------
// CONQUER SPECIAL POWER (Corrupted Man)
//--------------------------------------------------------------------------
Behavior = UnpauseSpecialPowerUpgrade ModuleTag_CreateAHeroCMConquerEnabler
SpecialPowerTemplate = SpecialAbilityCreateAHeroCMConquer
TriggeredBy = Upgrade_CreateAHeroCMConquer
End
Behavior = SpecialPowerModule ModuleTag_CreateAHeroCMConquerStarter
SpecialPowerTemplate = SpecialAbilityCreateAHeroCMConquer
UpdateModuleStartsAttack = Yes
StartsPaused = Yes
End
Behavior = SpecialAbilityUpdate ModuleTag_CreateAHeroCMConquerUpdate
SpecialPowerTemplate = SpecialAbilityCreateAHeroCMConquer
StartAbilityRange = 5.0
UnpackTime = 3000 ;// (changing this will scale anim speed)
PreparationTime = 20000 ;// time to complete hack once prepared (changing this will scale anim speed)
PackTime = 2000 ;// (changing this will scale anim speed)
DoCaptureFX = Yes
UnpackingVariation = 4
End

И последнее: createaherospecialpowers. Там всё тоже аналогично.
Вместо этого:

//------------------------------------------------------------------------------
// SpecialPower SpecialAbilityCreateAHeroHotWConquer
// Enum = SPECIAL_INFANTRY_CAPTURE_BUILDING
// ReloadTime = 180000
// ObjectFilter = CREATE_A_HERO_CONQUER_OBJECT_FILTER
// End

и этого:

//-----------------------------------------------------------------------------------------------------------------------------------------
// CONQUER SPECIAL POWER (Corrupted Man)
//------------------------------------------------------------------------------
// SpecialPower SpecialAbilityCreateAHeroCMConquer
// Enum = SPECIAL_INFANTRY_CAPTURE_BUILDING
// ReloadTime = 120000
// ObjectFilter = CREATE_A_HERO_CONQUER_OBJECT_FILTER
// End

получаем это:

//------------------------------------------------------------------------------
SpecialPower SpecialAbilityCreateAHeroHotWConquer
Enum = SPECIAL_INFANTRY_CAPTURE_BUILDING
ReloadTime = 180000
ObjectFilter = CREATE_A_HERO_CONQUER_OBJECT_FILTER
End

и это:

//-----------------------------------------------------------------------------------------------------------------------------------------
// CONQUER SPECIAL POWER (Corrupted Man)
//------------------------------------------------------------------------------
SpecialPower SpecialAbilityCreateAHeroCMConquer
Enum = SPECIAL_INFANTRY_CAPTURE_BUILDING
ReloadTime = 120000
ObjectFilter = CREATE_A_HERO_CONQUER_OBJECT_FILTER
End

Всё!
Tutorial by Akrahil. Копировать запрещено!




Оценить:
Просмотров: 3057 | Рейтинг: 4.3/6
Категория: Коддинг | Добавил: Akrahil (07.05.2012)
ПОХОЖИЕ МАТЕРИАЛЫ

Всего комментариев: 0
avatar