Jump to content


Photo

Removing Ai retreat in WOR


  • Please log in to reply
3 replies to this topic

#1 Redhorn Pass

Redhorn Pass

    Also known as Fohel

  • Members
  • 135 posts
  • Projects:The Beorn Mod
  •  An INI coder

Posted 06 May 2008 - 12:08 AM

i have been trying to modify the Ai retreat system so that the AI will not retreat half way through a rela time conflict in WOR. This is what I have:

; WOTR retreat magic numbers
	FarmingThreshold = -10;-2
	ArmyQualityBias = -10;2
	ArmyQuantityBias = -10; 1
	HeroQualityBias = -10;1
	MapControlBias = -10;2
	BaseStrengthBias = -10;1
	RingOwnershipBias = -10;2
	LogicFramesTillRetreatChecksStart = 1
	LogicFrameBetweenRetreatChecks = 1
	LogicFramesTillAISelfDestructs = 1

I have encountered several problems:

1) I tried to use ewxtreme numbers such as 10 and -10 so that the AI would give up really quckly. (So that I could test that the code worked) but nothing happened. Is this the correct code and if so did was I jsut to impatienet with my testing and who could I test the code?

2) I am unsure whether increasing the numbers will make more/ less llikely that a retreat will occur.


Can anyone help? THANKS! :shiftee: :shiftee:
Posted Image

Posted Image

#2 ilmare

ilmare
  • New Members
  • 2 posts

Posted 23 June 2009 - 03:50 PM

i have been trying to modify the Ai retreat system so that the AI will not retreat half way through a rela time conflict in WOR. This is what I have:

; WOTR retreat magic numbers
	FarmingThreshold = -10;-2
	ArmyQualityBias = -10;2
	ArmyQuantityBias = -10; 1
	HeroQualityBias = -10;1
	MapControlBias = -10;2
	BaseStrengthBias = -10;1
	RingOwnershipBias = -10;2
	LogicFramesTillRetreatChecksStart = 1
	LogicFrameBetweenRetreatChecks = 1
	LogicFramesTillAISelfDestructs = 1

I have encountered several problems:

1) I tried to use ewxtreme numbers such as 10 and -10 so that the AI would give up really quckly. (So that I could test that the code worked) but nothing happened. Is this the correct code and if so did was I jsut to impatienet with my testing and who could I test the code?

2) I am unsure whether increasing the numbers will make more/ less llikely that a retreat will occur.


Can anyone help? THANKS! :huh: :xd:


Yes, I have this same probleme Can we delete it ?

^_^ Can anyone help ? Plzzz....

#3 Prolong

Prolong
  • Members
  • 133 posts

Posted 28 June 2009 - 08:13 PM

I'm not familiar with WotR coding, but I'd definitely recommend trying numbers bigger than +-10 to test with - those aren't exactly extreme. Use +-100 and you should hopefully notice changes.

#4 Nertea

Nertea

    ...lo sa raptor!

  • Hosted
  • 3,349 posts
  • Location:Vancouver, Canada
  • Projects:Star Villains and Space heroes, The Dwarf Holds
  •  T3A Chamber Member
  • Division:BFME/Unity

Posted 01 July 2009 - 08:50 PM

LogicFramesTillRetreatChecksStart = 1 looks like it should count the number of frames until the AI checks to see if it should retreat. If you change that to say... 3 million that should stop the retreat check until around an hour has passed.

sig.png
I really don't do requests and my Arnor Soldier is not fit for BFME. Don't ask me for either.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users