Hi! I need help please.
I want to make a new spell for a specific map which replace the old spell "army of the dead" but it does not work I will explain all than I made step by step:
I want than this new power work with in the same way as Mordor spell Easterling reinforcement.
- I create some files in folder "C:\An Edain SubMod\data\ini\includes":
CommandButton_SubMod.inc
CommandSet_SubMod.inc
specialpower_Submod.inc
objectcreationlist_Submo
d.inc
System_Submod.inc
I also added a file map.ini to my map folder.
- In map.ini I added these lines:
Object GondorSpellBook
CommandSet = GondorSpellBookForMT_SubmodCommandSet
End
PlayerTemplate FactionMen
SpellBookMp = GondorSpellBook
PurchaseScienceCommandSetMP = GondorSpellStoreForMT_SubmodCommandSet
End
- In my file CommandSet_Submod.inc I wrote these lines:
CommandSet GondorSpellBookForMT_SubmodCommandSet
1 = Command_SpellBookGeneralView
2 = Command_SpellBookUnitView
3 = Command_SpellBookHealMod
4 = Command_SpellBookHornGondors
5 = Command_SpellBookBaumeisterGondors
6 = Command_SpellBookLoneTower_Edain
7 = Command_SpellBookArrowVolleyGood
8 = Command_SpellBookGandalftheWhite
9 = Command_SpellBookBeistandinderNotNormal
10 = Command_SpellBookDieGraueSchaar
11 = Command_SpellBookCloudBreak
12 = Command_SpellBookAdler
13 = Command_SpellBookArmyoftheDeadForMT_Submod
14 = Command_SpellBookSummonRohanGondor
End
CommandSet GondorSpellStoreForMT_SubmodCommandSet
1 = Command_PurchaseSpellHornGondors
2 = Command_PurchaseSpellBaumeisterGondors
3 = Command_PurchaseSpellHealMod
4 = Command_PurchaseSpellBeistandinderNotNormal
5 = Command_PurchaseSpellArrowVolleyGood
6 = Command_PurchaseSpellLoneTowerMen_Edain
7 = Command_PurchaseSpellGandalftheWhite
8 = Command_PurchaseSpellDieGraueSchaar
9 = Command_PurchaseSpellCloudBreak
10 = Command_PurchaseSpellAdler
11 = Command_PurchaseSpellArmyoftheDeadForMT_Submod
12 = Command_PurchaseSpellSummonRohanGondor
End
- In my file CommandButton_Submod.inc I wrote these lines:
CommandButton Command_SpellBookArmyoftheDeadForMT_Submod
Command = SPELL_BOOK
SpecialPower = SpellBookArmyoftheDeadForMT_Submod
ButtonImage = SB23Good_ArmyoftheDeadMT
TextLabel = CONTROLBAR:SummonArmyoftheDead
DescriptLabel = CONTROLBAR:TooltipSummonArmyoftheDead
ButtonBorderType = ACTION
RadiusCursorType = PalantirVisionRadiusCursor
End
CommandButton Command_PurchaseSpellArmyoftheDeadForMT_Submod
Command = PURCHASE_SCIENCE
ButtonBorderType = UPGRADE
ButtonImage = SB23Good_ArmyoftheDeadMT
Science = SCIENCE_ArmyoftheDeadForMT_Submod
TextLabel = CONTROLBAR:SummonArmyoftheDead
DescriptLabel = CONTROLBAR:TooltipSummonArmyoftheDead
End
- In my file specialpower_Submod.inc I wrote these lines:
SpecialPower SpellBookArmyoftheDeadForMT_Submod
Enum = SPECIAL_SPELL_BOOK_PALANTIR_VISION
ReloadTime = SPELL_RECHARGE_TIME_TIER_4_VERYSLOW
RequiredSciences = SCIENCE_ArmyoftheDead
InitiateAtLocationSound = ArmyDeadEnterMono
End
- In my file System_Submod.inc I wrote these lines:
Behavior = OCLSpecialPower ModuleTag_SummonDeadForMT_Submod
SpecialPowerTemplate = SpellBookArmyoftheDeadForMT_Submod
OCL = OCL_GondorArmyofTheDeadEggForMT_Submod
CreateLocation = CREATE_AT_LOCATION
AvailableAtStart = No
RequirementsFilterMPSkirmish = SPELL_BOOK_REQUIREMENTS_FILTER
RequirementsFilterStrategic = SPELL_BOOK_REQUIREMENTS_FILTER_STRATEGIC
End
- In my file objectcreationlist_Submo
d.inc I wrote these lines:
ObjectCreationList OCL_GondorArmyofTheDeadEggForMT_Submod
End
- I made script in worlderbuider wich spawn units when the player use the new spell "SpellBookArmyoftheDeadFo
rMT_Submod".
- But when I go in-game I can't use the spell:
I can buy it in the store but I can click on it like you can see in this video:
https://www.youtube.com/watch?v=rZV7JAbTWhA&feature=youtu.be