Jump to content


Photo

Bounty values and Fear/terror resistance


  • Please log in to reply
2 replies to this topic

#1 Miraak5

Miraak5

    Dragonborn

  • Members
  • 291 posts
  • Location:France
  • Projects:Rotwk mod: Wars of the North, BFME1 Patch 1.08
  •  BIG coding, Map scripting and AI coding

Posted 24 November 2018 - 04:24 PM

Hey dudes

i am trying to change 2 things but did not found how to do it

 

1: remove the growing bounty values of heroes (heroes bounty values seems to grow up when the heroes level up wich end up in ridiculously high value)

 

2: units get immunity to fear/terror at level 2 how can i change this to level 5 ?


He was the first...


#2 Ganon

Ganon

    What's this?

  • Project Team
  • 967 posts
  • Location:Ohio, United States
  • Projects:My Link Mod
  •  Code Scientist

Posted 25 November 2018 - 12:46 AM

I'm not sure off-hand what causes the bounty value to increase with rank. One theory is that it might be tied into the "ExperienceAward" in the unit's experiencelevels.ini code. The bigger the ExperienceAward the bigger the Bounty, so to speak.

 

 

As for #2, that is a question that haunted me for years, but I finally figured out that the secret lies in the unit's "EmotionTrackerUpdate".

Behavior = EmotionTrackerUpdate Module_EmotionTracker
    AddEmotion = Terror_Base
    AddEmotion = OVERRIDE UncontrollableFear_Base_Evil
        Duration = 7000 
    End
    AddEmotion = Alert_Base
    IgnoreVeterancy = Yes
End

That's Shelob's "EmotionTrackerUpdate". The "IgnoreVeterancy = Yes" is the important part. Shelob is the only unit in the entirety of BFME 1 that has that line in its emotion tracker and doesn't automatically become immune to fear being higher than rank 1 (It only has one rank, but it's labeled Rank = 10). Understand though, that if you add that line to a unit's emotion tracker, then it won't automatically get fear resistance at any rank. You'll need to add it manually.

 

You say you want it at level 5, so find your unit's "Rank5" in experiencelevels.ini and in the field "AttributeModifiers" for that rank look up the attribute modifier that it's being granted, then make a new unique one to be given instead. Something like this:

ModifierList HeroLevelUpDamage4
Category = LEVEL
Modifier = DAMAGE_ADD M_HERO_LVL5_DAM_ADD 
Modifier = HEALTH M_HERO_LVL5_HP_ADD   
Duration = 0
End
 
ModifierList FearlessHeroLevelUpDamage4
Category = LEVEL
Modifier = DAMAGE_ADD M_HERO_LVL5_DAM_ADD
Modifier = HEALTH M_HERO_LVL5_HP_ADD
Modifier = RESIST_FEAR 100%
Duration = 0
End

Edited by Ganon, 25 November 2018 - 01:45 AM.


#3 Miraak5

Miraak5

    Dragonborn

  • Members
  • 291 posts
  • Location:France
  • Projects:Rotwk mod: Wars of the North, BFME1 Patch 1.08
  •  BIG coding, Map scripting and AI coding

Posted 25 November 2018 - 11:48 AM

Thx im going to try that


He was the first...





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users