Hello,
Run into a roadblock with making Darkness use the CloudbreakSpecialPower behaviour. The reason behind this is that its so much easier to produce Global FX, if I make it an OCL power it requires a cast point, making it a bit silly.
The funny thing is that this code works for other powers, Ive used it in heroes like Sauron with no issues, it also produces the SunbeamObject fine when I leave the 'SpecialPowerTemplate = SpellBookCloudBreak' intact and just change the sunbeamobject.
I do not understand why when I try to replicate this type of behaviour into Darkness, it doesnt work. When I click darkness, nothing happens. With or without having any sciences as prerequisites the same issue arises. I have searched everywhere incase there are other spellbookdarkness behaviours by default, but there are none.
Have also tried renaming the entire powers template, same issue.
Why is this behaviour working for heroes and Cloudbreak(changes in the sunbeam object), but not darkness? :/ The moment I change the template back to SpecialPowerTemplate = SpellBookCloudBreak everything is fine and dandy regardless of the object being fired.
Im thinking something simple is wrong as its working for heroes etc just fine. I have not included the sunbeam object as it works ok on heroes.
this is definately the commandset being used by Mordor, the science purchases should not be relevant as no prerequisites have been marked, at least for now, Darkness is available as soon as the game begins.
;;;system;;; Behavior = CloudBreakSpecialPower ModuleTag_darkness SpecialPowerTemplate = SpellBookDarkness SunbeamObject = DarknessWeatherChanger ObjectSpacing = 300 AttributeModifierAffects = ANY +INFANTRY +CAVALRY +MONSTER +HERO +HORDE ALLIES ReEnableAntiCategory = Yes AttributeModifierWeatherBased = Yes WeatherDuration = 60000 ChangeWeather = CLOUDY ;SUNNY End ;;;;cs;;;; CommandSet MordorSpellBookCommandSet 9 = Command_SpellBookDarkness ;;;;;;;cb ;;;;;;; CommandButton Command_SpellBookDarkness Command = SPELL_BOOK SpecialPower = SpellBookDarkness ButtonImage = SBEvil_Darkness TextLabel = CONTROLBAR:Darkness DescriptLabel = CONTROLBAR:TooltipDarkness End ;;;;;;;;;;;;;;;;;; ;------------------------------------------------------------------------------ SpecialPower SpellBookDarkness Enum = SPECIAL_SPELL_BOOK_CLOUD_BREAK ; SPECIAL_SPELL_BOOK_DARKNESS ;;RequiredSciences = SCIENCE_Darkness ReloadTime = 360000 ; ; SPELL_RECHARGE_TIME_TIER_3 ;600000 in milliseconds InitiateSound = SpellDarkness Flags = RESPECT_RECHARGE_TIME_DISCOUNT End
Edited by Valheru, 02 September 2014 - 02:59 AM.