Is stealth supposed to work on enemies? Specifically, am I supposed to see nothing of a stealthed enemy until they are within a certain range? It doesn't seem to be implemented, or perhaps I'm setting up the enemy mod wrong.
Would you mind showing us, what your changes are, so we can help you better?
I assume we need different stealth powers for hero and enemies, so transformation back would work. However I am no expert for the stealth nor powers. :D
Add the following to mods/fantasycore/enemies/skeletal_warrior.txt:
passive_powers=143
Then go look in the atrium. If it were available for enemies, I'd expect to see nothing of the skeleton when it was far enough away.
P.S. Once again, this is an idea for the Polymorphable game. Every form has a useful ability except bats. All they can do is fly. I thought it would be nice if they could also detect invisibility/stealth with their sonar.
The stealth effect by itself is merely a numerical stat and does not apply any visual changes to entities. While it would be cool to change the entity's opacity based on distance and the stealth stat, I don't think its feasible with plain SDL rendering. I believe SDL only supports changing the alpha of an entire surface if it's using color-keyed alpha (magic pink). And using the SDL_gfx functions would be too slow if we were using them for every entity.
So the answer is that there is currently no stealth for the enemies/NPCs. Thanks.
I'll open a wishlist item.
https://github.com/clintbellanger/flare-engine/issues/737