maniczombie Posted August 22, 2012 Share Posted August 22, 2012 I'm using dynamically attached scripts in my mod Helmet Toggle - Show Hide http://skyrim.nexusmods.com/mods/22765 Which uses a cloak spell to attach a script to all nearby NPCs'. Tutorial on how it's done here: http://www.creationkit.com/Dynamically_Attaching_Scripts Problem is, people have reported a bug that makes this method problematic as it breaks all brawls /quest brawls in the game. What happens is as the cloak is constantly refreshing on the player alias, the npc you are brawling thinks you are casting a spell and so ends the brawl and attacks you.I've found that adding the condition for if the player is in combat doesn't work. If anyone could think of anyway to avoid this happening I would be very grateful! If at the very least I can let people know that this method has this flaw. Link to comment Share on other sites More sharing options...
Mujuro Posted August 22, 2012 Share Posted August 22, 2012 AFAIK, and I could be wrong, but aren't all "brawls" set up as a quest? If so, you can just condition your cloak not to trigger if the brawl quest is at certain stages (e.g., don't toggle until after the player has "accepted" the brawl and before the player has won/lost brawl). BTW, I'd just looked up your mod at the request of a Ceri user 5 minutes before seeing this thread. :) Link to comment Share on other sites More sharing options...
maniczombie Posted August 22, 2012 Author Share Posted August 22, 2012 AFAIK, and I could be wrong, but aren't all "brawls" set up as a quest? If so, you can just condition your cloak not to trigger if the brawl quest is at certain stages (e.g., don't toggle until after the player has "accepted" the brawl and before the player has won/lost brawl). BTW, I'd just looked up your mod at the request of a Ceri user 5 minutes before seeing this thread. :) Conditions such as if player in combat or if player is invulnerable (player is set to invulnerable for brawls) don't effect it as it still casts the spell on a target who doesn't have those conditions anyway. I found a fix for it though. In my script attached to the player I checked if the player was invulnerable, then removed the cloak, then added it back after the brawl was over (player not invulnerable). Link to comment Share on other sites More sharing options...
Mujuro Posted August 22, 2012 Share Posted August 22, 2012 Gotcha, misunderstood your initial issue; didn't realize the issue wasn't necessarily the player being in the brawl, but that during brawls the cloak was affecting others nearby. Link to comment Share on other sites More sharing options...
Recommended Posts