Hi guys,
I've had a lot of help on Agecomm regarding creating a hero based on a Longbow - thanks to musketeer925 and Ichirai Shonin. However, there is one problem that neither of them have an answer to - gathering wood.
This hero - named Robin Hood - is designed to gather food from hunts (which works perfectly) and wood from trees. The problem is, he swings at the tree once, and then the tree dies and the wood disappears and is not added to the stockpile. The actual tree remains standing. He then moves to the next tree and this happens again. However, if a villie chops the tree, Robin will gather from it without any problems.
Also, there are problems with auras. I've tried to create two auras for him - increasing hitpoints and attack of the units around him. Only the HP aura works. Also, if possible, I'd like the aura to increase units' range as well.
I've attached the proto(x), tactics and anim code.
proto:
I've had a lot of help on Agecomm regarding creating a hero based on a Longbow - thanks to musketeer925 and Ichirai Shonin. However, there is one problem that neither of them have an answer to - gathering wood.
This hero - named Robin Hood - is designed to gather food from hunts (which works perfectly) and wood from trees. The problem is, he swings at the tree once, and then the tree dies and the wood disappears and is not added to the stockpile. The actual tree remains standing. He then moves to the next tree and this happens again. However, if a villie chops the tree, Robin will gather from it without any problems.
Also, there are problems with auras. I've tried to create two auras for him - increasing hitpoints and attack of the units around him. Only the HP aura works. Also, if possible, I'd like the aura to increase units' range as well.
I've attached the proto(x), tactics and anim code.
proto:
<Unit id ='903' name ='Robin_Hood'>
<DBID> 1319< /DBID>
<DisplayNameID> 80012< /DisplayNameID>
<EditorNameID> 80013< /EditorNameID>
<PopulationCount> 0< /PopulationCount>
<ObstructionRadiusX> 0.4900< /ObstructionRadiusX>
<ObstructionRadiusZ> 0.4900< /ObstructionRadiusZ>
<FormationCategory> Ranged< /FormationCategory>
<MaxVelocity> 4.0000< /MaxVelocity>
<MaxRunVelocity> 6.0000< /MaxRunVelocity>
<MovementType> land< /MovementType>
<TurnRate> 18.0000< /TurnRate>
<AnimFile> units\spc\robin\robin.xml< /AnimFile>
<ImpactType> Flesh< /ImpactType>
<PhysicsInfo> dude< /PhysicsInfo>
<Icon> units\spc\robin\robin_icon< /Icon>
<PortraitIcon> units\spc\robin\robin_portrait< /PortraitIcon>
<RolloverTextID> 80014< /RolloverTextID>
<ShortRolloverTextID> 80015< /ShortRolloverTextID>
<InitialHitpoints> 950.0000< /InitialHitpoints>
<MaxHitpoints> 950.0000< /MaxHitpoints>
<LOS> 27.0000< /LOS>
<ProjectileProtoUnit> Arrow< /ProjectileProtoUnit>
<AutoAttackRange> 20.0000< /AutoAttackRange>
<UnitAIType> RangedCombative< /UnitAIType>
<TrainPoints> 30.0000< /TrainPoints>
<Bounty> 40.0000< /Bounty>
<CarryCapacity resourcetype ='Food'> 1.0000< /CarryCapacity>
<CarryCapacity resourcetype ='Wood'> 1.0000< /CarryCapacity>
<AllowedAge> 0< /AllowedAge>
<Armor type ='Ranged' value ='0.3000'> < /Armor>
<UnitType> LogicalTypeHealed< /UnitType>
<UnitType> LogicalTypeNeededForVictory< /UnitType>
<UnitType> LogicalTypeHandUnitsAutoAttack< /UnitType>
<UnitType> LogicalTypeLandMilitary< /UnitType>
<UnitType> LogicalTypeScout< /UnitType>
<UnitType> LogicalTypeValidSPCUnitsDeadCondition< /UnitType>
<UnitType> LogicalTypeGarrisonInShips< /UnitType>
<UnitType> LogicalTypeRangedUnitsAutoAttack< /UnitType>
<UnitType> LogicalTypeVillagersAttack< /UnitType>
<UnitType> LogicalTypeHandUnitsAttack< /UnitType>
<UnitType> LogicalTypeRangedUnitsAttack< /UnitType>
<UnitType> LogicalTypeMinimapFilterMilitary< /UnitType>
<UnitType> AbstractRangedInfantry< /UnitType>
<UnitType> AbstractInfantry< /UnitType>
<UnitType> ConvertsHerds< /UnitType>
<UnitType> AbstractCavalryInfantry< /UnitType>
<UnitType> Unit< /UnitType>
<UnitType> Military< /UnitType>
<UnitType> UnitClass< /UnitType>
<UnitType> Hero< /UnitType>
<UnitType> HasBountyValue< /UnitType>
<UnitType> Ranged< /UnitType>
<Train row ='0' page ='0' column ='2'> NatBlowgunAmbusher< /Train>
<Train row ='0' page ='0' column ='2'> NatClubmanLoyal< /Train>
<Flag> CollidesWithProjectiles< /Flag>
<Flag> ApplyHandicapTraining< /Flag>
<Flag> CorpseDecays< /Flag>
<Flag> ShowGarrisonButton< /Flag>
<Flag> DontRotateObstruction< /Flag>
<Flag> ObscuredByUnits< /Flag>
<Flag> NotDeleteable< /Flag>
<Flag>