Jump to content


Photo

Little problem with fire arrow upgrade


  • Please log in to reply
4 replies to this topic

#1 Glorfindel23

Glorfindel23
  • Project Team
  • 157 posts
  • Projects:Glorfindel23's Submod + MapsPack and The Horse Lords

Posted 03 July 2016 - 09:37 AM

Hi, I've a problem with the fire arrow upgrade :
When I make the fire arrow of a faction granted by the upgrade fire arrow of another faction the damage upgrade and the fire on the arrow working but not the annimation, the units continue to shoot normal arrow.
(I've seen the post above but this is not the same problem)
 
Can you help me please, this is my code :
(I work with the edain mod)
 
Object ElvenLorienArcher


ReplaceModule ModuleTag_WeaponSetUpgradeTag
    Behavior = WeaponSetUpgrade ModuleTag_WeaponSetUpgradeTagMithlond
        TriggeredBy = Upgrade_BruchtalFireArrows
        CustomAnimAndDuration   = AnimState:USER_4 AnimTime:0 TriggerTime:0 
    End
End
ReplaceModule ModuleTag_FireArrowSwapUpgrade
    Behavior = SubObjectsUpgrade ModuleTag_FireArrowSwapUpgradeMithlond
        TriggeredBy       = Upgrade_BruchtalFireArrows
        ShowSubObjects    = FireArowTip
    End
End


End


Object ElvenLorienArcherHorde
CommandSet = ElvenLorienArcherHordeCommandSet_EdainNew


ReplaceModule ModuleTag_ProductionLegality3
    Behavior = StatusBitsUpgrade ModuleTag_ProductionLegality3New
        TriggeredBy = Upgrade_BruchtalFireArrows
    End
End


End


CommandSet ElvenLorienArcherHordeCommandSet_EdainNew
1  = Command_ToggleStance 
        2       = Command_SpecialAbilityGrenzwächterPatrouille
        3       = Command_PurchaseUpgradeBruchtalFireArrows
        4       = Command_SpecialAbilityLembasbrotPassive
5 = Command_PurchaseUpgradeBruchtalHeavyArmor 
12  = Command_CaptureBuilding
13  = Command_AttackMove
14  = Command_Stop
16   = Command_SetStanceBattle
17   = Command_SetStanceAggressive
18   = Command_SetStanceHoldGround
End

 


                                                                                                                                        mini_175165Glorfindel23Cover.jpg

 

31062.png

 

 


#2 Iann Mac

Iann Mac
  • Members
  • 21 posts
  • Location:Scotland

Posted 03 July 2016 - 02:32 PM

Try to approach the problem from the definition of weapon of unit.
Search his weapon in the file weapon.ini o weapon.inc.
And so you will see a code that define where the projectile and weapon damage, depending on the upgrade

 

    ProjectileNugget    ; Default arrow
        ProjectileTemplateName  = GoodFactionArrow
        WarheadTemplateName     = RohanArcherBowWarhead
        ForbiddenUpgradeNames   = Upgrade_RohanFireArrows
    End
    ProjectileNugget    ; Fire arrow avialble through fire upgrade
        ProjectileTemplateName  = GoodFactionFireArrow
        WarheadTemplateName     = RohanArcherBowFireWarhead
        RequiredUpgradeNames    = Upgrade_RohanFireArrows
    End

 



#3 Glorfindel23

Glorfindel23
  • Project Team
  • 157 posts
  • Projects:Glorfindel23's Submod + MapsPack and The Horse Lords

Posted 04 July 2016 - 11:47 PM

Thank you I will try when I've the time :)


Edited by Glorfindel23, 05 July 2016 - 08:10 AM.

                                                                                                                                        mini_175165Glorfindel23Cover.jpg

 

31062.png

 

 


#4 Glorfindel23

Glorfindel23
  • Project Team
  • 157 posts
  • Projects:Glorfindel23's Submod + MapsPack and The Horse Lords

Posted 05 July 2016 - 09:45 AM

Problem Ending ! Thank you Iann Mac ;)


                                                                                                                                        mini_175165Glorfindel23Cover.jpg

 

31062.png

 

 


#5 Iann Mac

Iann Mac
  • Members
  • 21 posts
  • Location:Scotland

Posted 05 July 2016 - 02:17 PM

Thanks Man ........... I hope you can keep progressing in your project........ :mellowthumbsup:​






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users