I made quite simple script to apply the "bubble" visual effect on any creature in area. Since the bubbless were added in latest patch I dont think this will be on vault already.
DOWNLOAD (erf)
Instalation:
- put "underwater_enter" into area's OnEnter event, or Execute this script from your current script
- put "underwater_exit" into area's OnExit event, or Execute this script from your current script
How does it work:
The script applies the bubble effect on breathing creature, that means that undead, constructs, elementals and neither oozes gets it. If a variable NO_BUBBLES with non-zero value is present on such creature, visual effect won't be applied as well. NPCs gets this visual effect permanently until they leave current area, in case the creature is player controlled character however, the bubble effect is applied temporarily and its re-applied every 6 seconds unless the player is dead or polymorphed into creature that doesn't breathe. Of course, resurrected player gets bubble effect again.
Notes about the visual effect:
1) Some creatures might not be able to show the effect. I couldn't seen the effect on my faerie dragon familiar, but script told me that the effect is present. So either I am bubble blind or some creatures doesn't allow this VFX.
2) The effect itself comes with a sound of bubbles which gets repeated after a while. The sound can be hear even if the bubble effect was applied on enemy creature so in underwater area, this sound will be played over and over.
Anyway, I wasn't very sure if aquatic or water creatures like sharks should do bubbles. Also the script doesn't contain a "can creature breath here" check as I supposed that if she couldn't, she wouldn't gets in there in the first place. Also this would be quite dependant on custom content like variables on item etc so I dropped the idea. But if this functionality is appreciated I could make it. Any feedback appreciated.
Modifié par ShaDoOoW, 14 novembre 2011 - 05:06 .