Jump to content

Problem with Dynamically Attached Scripts - Help


Recommended Posts

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

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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...