Maglir guild removal issues.

Post » Sat Feb 19, 2011 7:48 am

Trying to fix Maglir not being removed from the FG properly. Thought I had fixed it by using
Maglir.SetFactionRank FightersGuild -1
in the Dialog editor 'Result Script' but not sure I'm doing it correctly.

What's the best place to use
Maglir.SetFactionRank FightersGuild -1
as a 'Result Script' in the Dialog Editor or in a Main Script like 'FGD04DefectorScript' or maybe both just to make sure it kicks the little bugger out? :wink:



Thanks for any help.

Edit
Would this be the proper syntax for the Dialog Editor Script Result?
set Maglir.SetFactionRank FightersGuild to -1

What would be be proper syntax in the FGD04DefectorScript'?


NM got it with MaglirREF.SetFactionRank FightersGuild -1
User avatar
Ilona Neumann
 
Posts: 3308
Joined: Sat Aug 19, 2006 3:30 am

Post » Sat Feb 19, 2011 5:24 am

Why not use the UOP? The fix already exists in there.
User avatar
Lily Evans
 
Posts: 3401
Joined: Thu Aug 31, 2006 11:10 am

Post » Fri Feb 18, 2011 10:16 pm

Yes, we fixed it in the UOP. Furthermore, as we were fixing it, we discovered that SetFactionRank -1 acts like a toggle. So if you set it when he is already removed from the FG, it will add him back in...
User avatar
Alyna
 
Posts: 3412
Joined: Wed Aug 30, 2006 4:54 am

Post » Sat Feb 19, 2011 2:34 am

So the only safe way to do it is in an if?

i.e.
if xxx.GetFactionRank factionname >= 0   xxx.SetFactionRank factionname -1endif

User avatar
Angela Woods
 
Posts: 3336
Joined: Fri Feb 09, 2007 2:15 pm

Post » Sat Feb 19, 2011 9:26 am

Yeah, it looks like it. In the case of the UOP, it turned out to be an invalid bug report that we were trying to fix. It turned out that Maglir was being removed from the FG properly in the first place, so the UOP fix wasn't necessary. Now I'd have to trace through exactly when it got fixed - I think there was a problem with Maglir not being removed from the guild originally, but it may have been fixed in the original UOP and didn't need to be fixed again in the UOPS, which is the part I was involved with.
User avatar
Matt Bee
 
Posts: 3441
Joined: Tue Jul 10, 2007 5:32 am


Return to IV - Oblivion