Transforming Dunedain in to a normal unit
#81
Posted 12 December 2008 - 05:05 PM
#82
Posted 12 December 2008 - 05:25 PM
...Annoyed... Send me all the code you edited and i will see if i can get it to work
ok mate here it goes
in dunedain in gondorranger.ini
//------------------------------------------------------------------------------// Aka DunedainChildObject GondorRangerInn GondorRangerSelectPortrait = UPDunedainRangerDisplayName = OBJECT:DunedainRangerCommandPoints = 6CommandSet = DunedainRangerHordeCommandSet CamouflageDetectionMultiplier = CAMOUFLAGE_DETECTION_DISTANCE_LONGDraw = W3DHordeModelDraw ModuleTag_01OkToChangeModelColor = YesDefaultModelConditionStateModel = Cine_GryRngSkeleton = GURanger_SKLWeaponLaunchBone = PRIMARY ARROWWeaponLaunchBone = QUINARY ARROWEnd#include "GondorRangerAnims.inc"End// *** AUDIO Parameters ***VoiceAttack = DunedainVoiceAttackVoiceAttackAir = DunedainVoiceAttack VoiceAttackCharge = DunedainVoiceAttackVoiceAttackMachine = DunedainVoiceAttackVoiceAttackStructure = DunedainVoiceAttackVoiceCreated = DunedainVoiceSaluteVoiceFullyCreated = DunedainVoiceSalute VoiceGuard = DunedainVoiceMoveVoiceMove = DunedainVoiceMove VoiceMoveToCamp = DunedainVoiceMoveVoiceMoveWhileAttacking = DunedainVoiceMoveVoicePriority = 43VoiceRetreatToCastle = DunedainVoiceRetreatVoiceSelect = DunedainVoiceSelectMSVoiceSelectBattle = DunedainVoiceSelectBattleVoiceEnterStateAttack = DunedainVoiceEnterStateAttack VoiceEnterStateAttackCharge = DunedainVoiceEnterStateAttackVoiceEnterStateAttackMachine = DunedainVoiceEnterStateAttackVoiceEnterStateAttackStructure = DunedainVoiceEnterStateAttackVoiceEnterStateMove = DunedainVoiceEnterStateMoveVoiceEnterStateMoveToCamp = DunedainVoiceEnterStateMoveVoiceEnterStateMoveWhileAttacking = DunedainVoiceEnterStateMoveVoiceEnterStateRetreatToCastle = DunedainVoiceEnterStateRetreatSoundImpact = ImpactHorseCrowdResponseKey = GoodMenUnitSpecificSoundsVoiceCreatedFromInn = DunedainVoiceSalute-InnVoiceEnterUnitElvenTransportShip = DunedainVoiceMoveShipVoiceFullyCreatedFromInn = DunedainVoiceSalute-InnVoiceGarrison = DunedainVoiceMoveGarrisonVoiceInitiateCaptureBuilding = DunedainVoiceCaptureBuildingVoiceMoveToTrees = DunedainVoiceMoveForest VoiceEnterStateMoveToTrees = DunedainVoiceEnterStateMoveForest ;VoiceEnterStateInitiateCaptureBuilding =End//***ENGINEERING parameters***Body = ActiveBody ModuleTag_02CheerRadius = EMOTION_CHEER_RADIUSMaxHealth = 325;;GondorRangerInn_HEALTHMaxHealthDamaged = 100;;GondorRangerInn_HEALTH_DAMAGEDBurningDeathBehavior = YesBurningDeathFX = FX_InfantryBurningFlameDodgePercent = 50%EndBehavior = PlayerHealSpecialPower ModuleTag_HealSpecialPowerTemplate = SpellDuneDainHealHealAffects = INFANTRYHealAmount = 0.5;;1.0; 0.5 = 50% of maximum healthHealRadius = 5HealFX = FX_SpellHealUnitHealBuff ;FX_DefaultUnitHealBuff; To replenish hordes a bitHealOCL = OCL_HealSpellDuneDainHordeReplenishPingAvailableAtStart = YesEndBehavior = AutoHealBehavior ModuleTag_RogashHealingStartsActive = YesHealingAmount = 50HealingDelay = 5000StartHealingDelay = 5000HealOnlyIfNotInCombat = YesEnd; --------- ATHELAS -----------------------------------------------------------------Behavior = SpecialPowerModule ModuleTag_AragornAthelasSpecialPowerTemplate = SpecialAbilityDunedainAthelasUpdateModuleStartsAttack = YesTriggerFX = FX_AragornAthelasEndBehavior = SpecialAbilityUpdate ModuleTag_AragornAthelasUpdate SpecialPowerTemplate = SpecialAbilityDunedainAthelasStartAbilityRange = 1.6UnpackTime = 1 ; Nothing to touching itPreparationTime = 3 ; touching it to grabbing itPackTime = 2096; whacking it to holding it niceAwardXPForTriggering = 0EndBehavior = AutoAbilityBehavior ModuleTag_AthelasAutoAbilitySpecialAbility = SpecialAbilityDunedainAthelasMaxScanRange = 150Query = 1 ANY ALLIES +HORDE; 2 friendly hordes or an enemyEndBehavior = AutoHealBehavior ModuleTag_AthelasHealingStartsActive = Yes; Active, as in no upgrade requiredButtonTriggered = Yes; But doesn't actually run on its own.HealingAmount = ATHELAS_HEAL_AMOUNTRadius = 200HealOnlyOthers = NoSingleBurst = YesUnitHealPulseFX = FX_AragornAthelasKindOf = ARCHEREndBehavior = SlowDeathBehavior ModuleTag_05DeathTypes = ALL -KNOCKBACK -FADEDSinkDelay = 3000SinkRate = 0.40 // in Dist/SecDestructionDelay = 15000Sound = INITIAL HumanVoiceDieDeathFlags = DEATH_1EndEnd
then this in menhordes.ini
ChildObject GondorRangerInnHorde GondorRangerHordeBuildCost = INN_UNIT_BUILDCOST_MENCommandSet = DunedainRangerHordeCommandSetBehavior = HordeContain ModuleTag_HordeContainFrontAngle = 270FlankedDelay = 2000ObjectStatusOfContained = InitialPayload = GondorRangerInn 12Slots = 12PassengerFilter = NONE +INFANTRYShowPips = NoThisFormationIsTheMainFormation = Yes //Used to determine which armorset to use (and anything else we want!)RandomOffset=X:4 Y:4MeleeBehavior = AmoebaEnd// Banner Carrier info BannerCarriersAllowed = GondorInfantryBanner // types of units that are allowed as banner carriersBannerCarrierPosition = UnitType:GondorRangerInn Pos:X:30.0 Y:0.0 // (DEFAULT) position of banner carrier; Positions for 6RankInfo = RankNumber:1 UnitType:GondorRangerInn Position:x:20 Y:10 Position:X:20 Y:-10 Position:X:20 Y:30 Position:X:20 Y:-30 Position:X:20 Y:50 Position:X:20 Y:-50RankInfo = RankNumber:2 UnitType:GondorRangerInn Position:X:0 Y:10 Leader 1 0 Position:X:0 Y:-10 Leader 1 1 Position:X:0 Y:30 Leader 1 2 Position:X:0 Y:-30 Leader 1 3 Position:X:0 Y:50 Leader 1 4 Position:X:0 Y:-50 Leader 1 5RanksToReleaseWhenAttacking = 1 2 MeleeAttackLeashDistance = 1 //How far the hordes can move from the center of the horde when melee attacking. BackUpMinDelayTime = 1 //The minimum amount of time to delay before backing upBackUpMaxDelayTime = 3000 //The maximum amount of time to delay before backing upBackUpMinDistance = 1 //The minimum number of cells to backupBackUpMaxDistance = 3 //The maximum number of cells to backupBackupPercentage = 80% //The amount of chance that a unit will back up.End; --------- ATHELAS -----------------------------------------------------------------Behavior = SpecialPowerModule ModuleTag_AragornAthelasSpecialPowerTemplate = SpecialAbilityDunedainAthelasUpdateModuleStartsAttack = YesTriggerFX = FX_AragornAthelasEndBehavior = SpecialAbilityUpdate ModuleTag_AragornAthelasUpdate SpecialPowerTemplate = SpecialAbilityDunedainAthelasStartAbilityRange = 1.6UnpackTime = 1 ; Nothing to touching itPreparationTime = 3 ; touching it to grabbing itPackTime = 2096 ; whacking it to holding it niceAwardXPForTriggering = 0EndBehavior = AutoAbilityBehavior ModuleTag_AthelasAutoAbilitySpecialAbility = SpecialAbilityDunedainAthelasMaxScanRange = 150Query = 1 ANY ALLIES +HORDE; 2 friendly hordes or an enemyEndBehavior = AutoHealBehavior ModuleTag_AthelasHealingStartsActive = Yes; Active, as in no upgrade requiredButtonTriggered = Yes; But doesn't actually run on its own.HealingAmount = ATHELAS_HEAL_AMOUNTRadius = 200HealOnlyOthers = NoSingleBurst = YesUnitHealPulseFX = FX_AragornAthelasKindOf = ARCHEREndEnd
then this in commandbutton.ini
CommandButton Command_SpecialAbilityAthelasDunedainCommand = SPECIAL_POWER SpecialPower = SpecialAbilityDunedainAthelasTextLabel = CONTROLBAR:AthelasButtonImage = HSAragornAthelasCursorName = BombardRadiusCursorType = AthelasRadiusCursorInvalidCursorName = GenericInvalidButtonBorderType = ACTION DescriptLabel = CONTROLBAR:ToolTipAthelasInPalantir = YesAutoAbility = YesPresetRange = 100.0NeedDamagedTarget = YesEnd
then this in their commandset.ini
CommandSet DunedainRangerHordeCommandSet1 = Command_ToggleStance2 = Command_SpecialAbilityAthelas3 = Command_ArcherBombard4 = Command_MenLongShotAbility5 = Command_PurchaseUpgradeGondorFireArrows6 = Command_PurchaseUpgradeGondorBasicTraining12 = Command_CaptureBuilding13 = Command_AttackMove14 = Command_Stop16 = Command_SetStanceBattle17 = Command_SetStanceAggressive18 = Command_SetStanceHoldGroundEnd
this in specialpower.ini
SpecialPower SpellDuneDainHealInitiateAtLocationSound = SpellHealEnum = SPECIAL_GENERAL_TARGETLESS_THREE;;SPECIAL_SPELL_BOOK_HEALReloadTime = SPELL_RECHARGE_TIME_TIER_1End;------------------------------------------------------------------------------SpecialPower SpecialAbilityDunedainAthelasEnum = SPECIAL_ATHELASReloadTime = 90000RadiusCursorRadius = 150.0InitiateAtLocationSound = AragornAthelesEffectEnd
and this in objectcreationlist.ini
;------------------------------------------------------------------------------ObjectCreationList OCL_HealSpellDuneDainHordeReplenishPingCreateObjectObjectNames = HealSpellDuneDainHordeReplenishPingCount = 1EndEnd
and i think that is all
EDIT. you really should teach me how to properly insert the codes lol
Edited by sporting1986, 12 December 2008 - 06:29 PM.
#83
Posted 12 December 2008 - 06:24 PM
I will have a 'go' at this tommorow if thats ok with you because i'm fairly busy at the moment
#84
Posted 12 December 2008 - 06:28 PM
Right I will teach you how to properly insert the codes later
I will have a 'go' at this tommorow if thats ok with you because i'm fairly busy at the moment
of course that is not a problem bro
thanks for the help
#85
Posted 14 December 2008 - 10:00 AM
2 = Command_SpecialAbilityAthelas
Command_SpecialAbilityAthelasDunedain ;.... SpecialPower = SpecialAbilityDunedainAthelas ;...Why is it not
Command_SpecialAbilityAthelasDunedain ;.... SpecialPower = SpellDuneDainHeal ;...
Maybe that is why it did not work?
And if that is not the only problem then try this
In the unit & the hordes ini
;;Behavior = UnpauseSpecialPowerUpgrade ModuleTag_DDSelfHealEnabler ;; SpecialPowerTemplate = SpellDuneDainHeal ;; TriggeredBy = Upgrade_whateverSelfHeal ;;End Behavior = PlayerHealSpecialPower ModuleTag_DDSelfHeal SpecialPowerTemplate = SpellDuneDainHeal UpdateModuleStartsAttack = Yes StartsPaused = No;;Yes HealAffects = INFANTRY CAVALRY MONSTER HealAmount = .5 // percent of max health HealRadius = 1 HealFX = FX_SpellHealUnitHealBuff End Behavior = SpecialAbilityUpdate ModuleTag_DDSelfHealUpdate SpecialPowerTemplate = SpellDuneDainHeal UnpackTime = 1 ;// (changing this will scale anim speed) PreparationTime = 1;// time to complete hack once prepared (changing this will scale anim speed) PackTime = 2000 ;// (changing this will scale anim speed) UnpackingVariation = 5 End
First try without an upgrade, if it works then try with an upgrade
#86
Posted 14 December 2008 - 05:12 PM
Why is it...
2 = Command_SpecialAbilityAthelasCommand_SpecialAbilityAthelasDunedain ;.... SpecialPower = SpecialAbilityDunedainAthelas ;...Why is it notCommand_SpecialAbilityAthelasDunedain ;.... SpecialPower = SpellDuneDainHeal ;...
Maybe that is why it did not work?
And if that is not the only problem then try this
In the unit & the hordes ini;;Behavior = UnpauseSpecialPowerUpgrade ModuleTag_DDSelfHealEnabler ;; SpecialPowerTemplate = SpellDuneDainHeal ;; TriggeredBy = Upgrade_whateverSelfHeal ;;End Behavior = PlayerHealSpecialPower ModuleTag_DDSelfHeal SpecialPowerTemplate = SpellDuneDainHeal UpdateModuleStartsAttack = Yes StartsPaused = No;;Yes HealAffects = INFANTRY CAVALRY MONSTER HealAmount = .5 // percent of max health HealRadius = 1 HealFX = FX_SpellHealUnitHealBuff End Behavior = SpecialAbilityUpdate ModuleTag_DDSelfHealUpdate SpecialPowerTemplate = SpellDuneDainHeal UnpackTime = 1;// (changing this will scale anim speed) PreparationTime = 1;// time to complete hack once prepared (changing this will scale anim speed) PackTime = 2000;// (changing this will scale anim speed) UnpackingVariation = 5 End
First try without an upgrade, if it works then try with an upgrade
tried both and still nothing
Now it works finaly!!!!!!!! i will post the entire code but i think the problem was in the athelas commandset
Command_SpecialAbilityAthelasDunedain with this now works perfectly
Edited by sporting1986, 14 December 2008 - 08:48 PM.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users