Adding Sunflare to Haldir
#1
Posted 18 October 2009 - 12:42 AM
#2
Posted 18 October 2009 - 08:18 AM
http://www.the3rdage...?apage=436#page
Just keep in mind you dont need to do every step in that tutorial
But instead of the balrog's ocl... Add this to his code...
Behavior = OCLSpecialPower ModuleTag_Sunflare SpecialPowerTemplate = SpellBookSunflare OCL = OCL_SpecialPowerSunflare CreateLocation = CREATE_AT_LOCATION AvailableAtStart = No AttributeModifierAffects = ANY +INFANTRY +CAVALRY +MONSTER -HERO ENEMIES ReEnableAntiCategory = Yes AttributeModifierWeatherBased = Yes WeatherDuration = SPELL_SUNFLARE_DURATION ChangeWeather = SUNNY End
Edited by Ridder Geel, 18 October 2009 - 08:20 AM.
#3
Posted 18 October 2009 - 06:53 PM
So I put that in Haldir.ini.Follow this tutorial by my little brother
http://www.the3rdage...?apage=436#page
Just keep in mind you dont need to do every step in that tutorial
But instead of the balrog's ocl... Add this to his code...Behavior = OCLSpecialPower ModuleTag_Sunflare SpecialPowerTemplate = SpellBookSunflare OCL = OCL_SpecialPowerSunflare CreateLocation = CREATE_AT_LOCATION AvailableAtStart = No AttributeModifierAffects = ANY +INFANTRY +CAVALRY +MONSTER -HERO ENEMIES ReEnableAntiCategory = Yes AttributeModifierWeatherBased = Yes WeatherDuration = SPELL_SUNFLARE_DURATION ChangeWeather = SUNNY End
What would I put in specialpower.ini?
Edited by Jack, 18 October 2009 - 07:00 PM.
#4
Posted 18 October 2009 - 06:56 PM
So that will be in something like 2 hours or so
Otherwise if you want a faster answer... then someone else needs to help you
#5
Posted 18 October 2009 - 07:45 PM
AHHHH you jerkI will tell you more later when i have time
So that will be in something like 2 hours or so
Otherwise if you want a faster answer... then someone else needs to help you
#6
Posted 18 October 2009 - 09:09 PM
In your unit's code add...
Behavior = UnpauseSpecialPowerUpgrade ModuleTag_MyEvilSunflareSpellEnabler SpecialPowerTemplate = MyEvilSunflareSpell TriggeredBy = Upgrade_Objectlevel10 End Behavior = OCLSpecialPower ModuleTag_Sunflare SpecialPowerTemplate = MyEvilSunflareSpell OCL = OCL_SpecialPowerSunflare CreateLocation = CREATE_AT_LOCATION StartsPaused = Yes ; AvailableAtStart = No AttributeModifierAffects = ANY +INFANTRY +CAVALRY +MONSTER -HERO ENEMIES ReEnableAntiCategory = Yes AttributeModifierWeatherBased = Yes WeatherDuration = SPELL_SUNFLARE_DURATION ChangeWeather = SUNNY End
In specialpower.ini add...
SpecialPower MyEvilSunflareSpell Enum = SPECIAL_SPELL_BOOK_SUNFLARE Flags = WATER_OK RadiusCursorRadius = SPELL_SUNFLARE_EFFECT_RADIUS ReloadTime = SPELL_RECHARGE_TIME_TIER_4;// in milliseconds ViewObjectDuration = SPELL_SUNFLARE_VIEW_OBJECT_DURATION ViewObjectRange = SPELL_SUNFLARE_VIEW_OBJECT_RANGE InitiateAtLocationSound = SpellSunflareMS MaxCastRange = 250 End
Add this code to commandbutton.ini....
CommandButton Command_SpecialAbilityDainSummonRoyalGuard Command = SPECIAL_POWER SpecialPower = MyEvilSunflareSpell Options = NEED_TARGET_POS TextLabel = CONTROLBAR:Sunflare ButtonImage = SBGood_Sunflare RadiusCursorType = SunflareRadiusCursor CursorName = AttackObj InvalidCursorName = GenericInvalid ButtonBorderType = ACTION DescriptLabel = CONTROLBAR:TooltipSunflare InPalantir = Yes End
All you need to do now... is give your guy the upgrade that he needs to get the power (currently Upgrade_Objectlevel10)
And put the commandbutton in the commandset
I think i have not missed anything... but maybe i did And maybe it does not work, i have not tested it so...
Good luck!
#7
Posted 18 October 2009 - 09:54 PM
^ ^ Error Pic ^ ^
:(
You sure the code is right?
Sorry for being such a pest too.
Edited by Jack, 18 October 2009 - 10:15 PM.
#8
Posted 18 October 2009 - 10:22 PM
Command_SpecialAbilityDainSummonRoyalGuard to Command_SpecialAbilityMyEvilSunflare
Oh and that means that u gave him an upgrade that does not exist give him one that he can get that exists... or make a new one
#9
Posted 18 October 2009 - 10:32 PM
#10
Posted 18 October 2009 - 10:35 PM
Upgrade_ObjectLevel10
use that one
give it to him at level 10 in his experience level
#11
Posted 18 October 2009 - 10:45 PM
Well it worked but...uhhh it does exist
Upgrade_ObjectLevel10
use that one
give it to him at level 10 in his experience level
http://www.megaupload.com/?d=F1ALVMN0
New error.
YAAYYYYY
#12
Posted 18 October 2009 - 10:56 PM
ModuleTag_Sunflare
Delete one of them (i suggest the one you did not add following my latest instructions
Next time upload the picture to the forum, its faster
#13
Posted 18 October 2009 - 11:05 PM
Opens up fine.
I recruit him and he doesn't have the power though..?
He doesn't even have it as one of his visible powers.
The button image isn't there.
#14
Posted 18 October 2009 - 11:08 PM
I really should go to sleep now... Ill help more tomorrow, though you should be able to figure it out... I think
Edited by Ridder Geel, 18 October 2009 - 11:09 PM.
#15
Posted 18 October 2009 - 11:12 PM
CURSES!!... you added the button to the commandset?
I really should go to sleep now... Ill help more tomorrow, though you should be able to figure it out... I think
Thanks for the help.
#16
Posted 18 October 2009 - 11:59 PM
Now how would I do this for Flood Power?
(Yes I know, I'm turning Haldir into a JUGGERNAUT OF OWN)
#17
Posted 19 October 2009 - 12:56 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users