Hi all!
Need help with summoning DolAmroth (GondorKnightsofDol)
So i am created the summon power:
;------------------------------------------------------------------------------
ChildObject GondorKnightsofDol_Summoned GondorKnightsofDolHorde
IsTrainable = No
CommandPoints = 0
EquivalentTo = GondorKnightsofDolHorde
Behavior = LifetimeUpdate ModuleTag_LifetimeUpdate
; This one does the work, but the one in the horde displays the timer
MinLifetime = 180000
MaxLifetime = 180000
DeathType = FADED
End
Behavior = SlowDeathBehavior ModuleTag_SlowDeathFaded
DeathTypes = NONE +FADED
FadeDelay = 0
FadeTime = 4000
DestructionDelay = 4000
DeathFlags = DEATH_1
Sound = INITIAL SpellGenericUnsummonFasterMS
End
End
;-----------------------------------------------------------------------------------------
Object GondorKnightsofDolSummonEgg
Draw = W3DScriptedModelDraw ModuleTag_Draw
DefaultModelConditionState
Model = None
End
End
KindOf = INERT IMMOBILE UNATTACKABLE
Body = ActiveBody ModuleTag_MakesKillWork
MaxHealth = 1
End
Behavior = LifetimeUpdate ModuleTag_HatchTrigger
MinLifetime = 0.0
MaxLifetime = 0.0
End
Behavior = SlowDeathBehavior ModuleTag_HatchProcess
DestructionDelay = 2000
OCL = FINAL OCL_SpawnKnightsofDol
End
End
in objectcreationlist i added:
; ---------------------------------------------------------------------------------------
; Create A bunch of Men of Dale guys out of thin air.
ObjectCreationList OCL_SpawnKnightsofDolEgg
CreateObject
ObjectNames = GondorKnightsofDolSummonEgg
IgnoreCommandPointLimit = Yes
Disposition = LIKE_EXISTING
End
End
; ---------------------------------------------------------------------------------------
; Create A bunch of Men of Dale guys out of thin air.
ObjectCreationList OCL_SpawnKnightsofDol
CreateObject
ObjectNames = GondorKnightsofDol_Summoned
Count = 3
FadeIn = Yes
FadeTime = 8000
IgnoreCommandPointLimit = Yes
Disposition = SPAWN_AROUND
DispositionAngle = 120 ;SpawnAround uses this as the arc between guys
DispositionIntensity = 250 ; and this for distance from center
End
End
In system.ini i added this:
Behavior = OCLSpecialPower ModuleTag_SummonDolAmroth
SpecialPowerTemplate = SpellBookDolAmrothAllies
OCL = OCL_SpawnKnightsofDolEgg
TriggerFX = FX_DunedainSummon
CreateLocation = CREATE_AT_LOCATION
UpgradeName = Upgrade_DolAmrothAllies
AvailableAtStart = No
RequirementsFilterMPSkirmish = SPELL_BOOK_REQUIREMENTS_FILTER
RequirementsFilterStrategic = SPELL_BOOK_REQUIREMENTS_FILTER_STRATEGIC
End
In specialpower this:
;---------------------------------------------------------------------------------------------------
SpecialPower SpellBookDolAmrothAllies
Enum = SPECIAL_SPELL_BOOK_DUNEDAIN_ALLIES
RequiredSciences = SCIENCE_DolAmrothAllies
ReloadTime = SPELL_RECHARGE_TIME_TIER_1 ; in milliseconds
InitiateAtLocationSound = SpellSummonDunedainAllies
RadiusCursorRadius = 100.0
Flags = NO_FORBIDDEN_OBJECTS RESPECT_RECHARGE_TIME_DISCOUNT
ForbiddenObjectFilter = NO_SUMMON_NEAR_OBJECT_FILTER
ForbiddenObjectRange = 100.0
End
In Science this:
Science SCIENCE_DolAmrothAllies
PrerequisiteSciences = SCIENCE_GOOD OR SCIENCE_MEN OR SCIENCE_ELVES OR SCIENCE_DWARVES OR SCIENCE_ARNOR
SciencePurchasePointCost = GOOD_RANK_1_COST
SciencePurchasePointCostMP = 5
IsGrantable = Yes
End
And create buttons end etc. So always good but when they summoned my commandpoints increase to 300, i thinked Points parameter to zero mean they do not increase commandpoints "IsTrainable = No CommandPoints = 0 EquivalentTo = GondorKnightsofDolHorde".
Need help!