Quote from: Helios on January 27, 2019, 04:25:21 am
https://mega.nz/#!EBdjVQyQ!LqF3_A3EhhPd85i39T7MAJdTenepDegn_T_TjVBZLa0
Here is the updated demo, with the new 1.12 SES script. I also added a few commentary NPC for your convenience.
Ok, I dug a little deeper, and had to go back and reread my own documentation.
Guard on the right that can sense you on the sand. Config gave him a range=4, but, also gave him a light_range=6. Since the Player had a Lightsource, the light_range was used instead of range.
Center guard, the one that cant hear you if you are invisible. This is the confusing part. The Listen Range applies more to the PAGE than the Distance. The Listen Range actually applies to how far they will "sense", which is not the distance. Thus, it applies to both Sight and Sound. Since Invis sets the distance for the Default state to 2, then 2 becomes the Distance. The Listen Range is the SIGHT RANGE once the Guard had Heard but NOT SEEN you, thus, you have to be within the Invis Distance to get Sound to Trigger the guard to the LISTEN Page. Really confusing I know, I had to go back and reread it myself.
You had it right tho. Basically something like this
range=4
listen_range=5 (remember, that is now how far the guard can "see" you)
on_range=6
light_range=6 (overrides default state at night, not the Listen state, ONLY WHEN LIT)
dark_range=3(also overrides default at night, ONLY WHEN NOT LIT)
Suggest adding these:
invis_range=3
quiet_range=2
stealth_range=1
Hopefully that makes more sense now. I didnt set up different ranges for sight and sound, just different ways of triggering different states.
For example, default state of 4, but youre right next to the guard, in range, and the View keeps him from seeing you. If you dont move, he wont hear you. If youre on the other side of a wall, thats when the Listen Range kicks in, and he has farther SIGHT. Once the guard has SEEN you, then you can do other stuff like Ignore Walls, highest state of alert, and gonna come after you!