I'm currently trying to tailor myself a creature core tweaking the ambient system to my fancy, and I ran into something. I wanted to use EVENT_TYPE_PERCEPTION_APPEAR and EVENT_TYPE_PERCEPTION_DISAPPEAR to make a few on the fly adjustments.
Long story short, the PERCEPTION_DISAPPEAR event doesn't seem to trigger - ever - by itself. Not while the perceived creature is still alive, at least.
To illustrate if need be, here the core script handling the events :
- http://pastie.org/825615
Don't mind the AMBIENT_CONTINUE block, it's just a workaround for the lack of automatic PERCEPTION_DISAPPEAR event.
And here a log example of what happened before the workaround. Imagine the main character running around the NPC, going in and out the range several times during the log.
- http://pastie.org/825631
Note that the PERCEPTION_APPEAR sometimes triggers (but not always, FloatyMessage proving it) depending on the current ambient system state. Whether the NPC is roaming, in a looping animation, etc.
Am I missing something, or does a perceived creature remains in the perceiver list until death makes them part, literally ? And more importantly, does the PERCEPTION_DISAPPEAR just never triggers by itself ? Or am I missing the obvious one more time ?
Modifié par Phaenan, 15 février 2010 - 04:09 .





Retour en haut






