If I'm reading the tech.txt correctly (which is questionable ), you increased SetDetection by +200... which is distance, not strength. Something that is stealth uses detection strength and stealth to determine visibility (I believe), so my patch adds to yours by setting "METER_DETECTION_STRENGTH" +200.
Please do let me know if I'm wrong, because if I am I do want to correct my misunderstanding(s).
Notes on rev 5507
Moderator: Oberlus
Forum rules
Always mention the exact version of FreeOrion you are testing.
When reporting an issue regarding the AI, if possible provide the relevant AI log file and a save game file that demonstrates the issue.
Always mention the exact version of FreeOrion you are testing.
When reporting an issue regarding the AI, if possible provide the relevant AI log file and a save game file that demonstrates the issue.
Re: Notes on rev 5507
Code released under GPL 2.0. Content released under GPL 2.0 and Creative Commons Attribution-ShareAlike 3.0.
- eleazar
- Design & Graphics Lead Emeritus
- Posts: 3858
- Joined: Sat Sep 23, 2006 7:09 pm
- Location: USA — midwest
Re: Notes on rev 5507
This is what i changed it to a week ago. I think you are responding to old scripting.yandonman wrote:If I'm reading the tech.txt correctly (which is questionable ), you increased SetDetection by +200... which is distance, not strength. Something that is stealth uses detection strength and stealth to determine visibility (I believe), so my patch adds to yours by setting "METER_DETECTION_STRENGTH" +200.
Code: Select all
effectsgroups = [
EffectsGroup
scope = And [
OwnedBy TheEmpire Source.Owner
Planet
]
effects = SetDetection Value + 300
EffectsGroup
scope = Source
effects = SetEmpireMeter Source.Owner "METER_DETECTION_STRENGTH" Value + 200
]
METER_DETECTION_STRENGTH is the empire-wide strength.
Re: Notes on rev 5507
Ah... I see the error of my ways (spy_detect #4 vs #5). Much appreciated.
Code released under GPL 2.0. Content released under GPL 2.0 and Creative Commons Attribution-ShareAlike 3.0.