Hi Everyone,
First time poster here (but long time MW player)! I was wondering if anyone would be able to help with this at all? I have an idea for a mod I would like to make that would allow NPCs to cast spells that would normally be reserved for the player alone - things like Demoralize and Rally etc. I know how to get the game to detect when this effect is active on the player, but does anyone know if it's possible to control player movement via a script at all?
For example, an NPC casts Demoralize Humanoid on the player, which causes the player to turn around and run in the opposite direction (or in random directions, similar to the Fear effect in games like World of Warcraft etc). Further examples could be calm, which would force the player to sheathe their weapon/unready their spells etc, or Rally, which would put them into combat stance and make them run towards the aggressor (that last one could be a bit tricky as it might depend on unique IDs).
I'm aware that removing control from the player for too long would be very annoying, so I wouldn't want anything the NPCs could cast to have a particularly high duration, but it's always seemed a bit jarring to me that the player is the only Breton/Khajiit/Redguard/Whatever in the world who's completely immune to these effects and it could be interesting to force the player to adopt a different approach when dealing with mysticism or illusion casters.
I'm not at all sure how well this would be implemented in practice, so it's not 100% that I'll be able to finish this, but any ideas or criticisms or whatever on how this could be implemented would be very much appreciated!