icecreamassassin Posted April 24, 2014 Share Posted April 24, 2014 Yeah that's the issue I'm running into. Several locations have the clearable tag but then have no boss to connect it to :P so sounds like trigger power is the way to go :) thanks Link to comment Share on other sites More sharing options...
icecreamassassin Posted April 25, 2014 Share Posted April 25, 2014 Ok I'm at a loss :tongue: maybe you can point out what I'm missing. I've got this script with the INT defined on each banner display and it appears to do nothing. What am I missing? Scriptname DBM_bannerscript extends ObjectReference Int Property Hold Auto {1 = Reach 2 = Rift 3 = Haafingar 4 = Whiterun 5 = Eastmarch 6 = Hjaalmarch 7 = Pale 8 = Winterhold 9 = Falkreath} FavorJarlsMakeFriendsScript Property ThaneScript Auto Hidden Function Notify() RegisterForSingleUpdate(0.1) EndFunction Event OnInit() ThaneScript = Game.GetForm(0X087E24) As FavorJarlsMakeFriendsScript EndEvent Event OnUpdate() If(Hold == 1) If(thaneScript.ReachImpGetOutofJail > 0 || thaneScript.ReachSonsGetOutofJail > 0) Enable(true) EndIf ElseIf(Hold == 2) If(thaneScript.RiftImpGetOutofJail > 0 || thaneScript.RiftSonsGetOutofJail > 0) Enable(true) EndIf ElseIf(Hold == 3) If(thaneScript.HaafingarImpGetOutofJail > 0 || thaneScript.HaafingarSonsGetOutofJail > 0) Enable(true) EndIf ElseIf(Hold == 4) If(thaneScript.WhiterunImpGetOutofJail > 0 || thaneScript.WhiterunSonsGetOutofJail > 0) Enable(true) EndIf ElseIf(Hold == 5) If(thaneScript.EastmarchImpGetOutofJail > 0 || thaneScript.EastmarchSonsGetOutofJail > 0) Enable(true) EndIf ElseIf(Hold == 6) If(thaneScript.HjaalmarchImpGetOutofJail > 0 || thaneScript.HjaalmarchSonsGetOutofJail > 0) Enable(true) EndIf ElseIf(Hold == 7) If(thaneScript.PaleImpGetOutofJail > 0 || thaneScript.PaleSonsGetOutofJail > 0) Enable(true) EndIf ElseIf(Hold == 8) If(thaneScript.WinterholdImpGetOutofJail > 0 || thaneScript.WinterholdSonsGetOutofJail > 0) Enable(true) EndIf ElseIf(Hold == 9) If(thaneScript.FalkreathImpGetOutofJail > 0 || thaneScript.FalkreathSonsGetOutofJail > 0) Enable(true) EndIf EndIf EndEvent Link to comment Share on other sites More sharing options...
Saerileth Posted April 25, 2014 Author Share Posted April 25, 2014 Well... is anyone calling Notify() on them? Is there like another script, a controller or something? If not, it's not surprising they don't do anything... OnUpdate() is never triggered if the object doesn't register for updates. And Notify() is a custom function I wrote, it's not something the game calls on its own. Try this: Scriptname DBM_bannerscript extends ObjectReference Int Property Hold Auto {1 = Reach 2 = Rift 3 = Haafingar 4 = Whiterun 5 = Eastmarch 6 = Hjaalmarch 7 = Pale 8 = Winterhold 9 = Falkreath} FavorJarlsMakeFriendsScript Property ThaneScript Auto Hidden Event OnInit() ThaneScript = Game.GetForm(0X087E24) As FavorJarlsMakeFriendsScript EndEvent Event OnCellAttach() If(Hold == 1) If(thaneScript.ReachImpGetOutofJail > 0 || thaneScript.ReachSonsGetOutofJail > 0) Enable(true) EndIf ElseIf(Hold == 2) If(thaneScript.RiftImpGetOutofJail > 0 || thaneScript.RiftSonsGetOutofJail > 0) Enable(true) EndIf ElseIf(Hold == 3) If(thaneScript.HaafingarImpGetOutofJail > 0 || thaneScript.HaafingarSonsGetOutofJail > 0) Enable(true) EndIf ElseIf(Hold == 4) If(thaneScript.WhiterunImpGetOutofJail > 0 || thaneScript.WhiterunSonsGetOutofJail > 0) Enable(true) EndIf ElseIf(Hold == 5) If(thaneScript.EastmarchImpGetOutofJail > 0 || thaneScript.EastmarchSonsGetOutofJail > 0) Enable(true) EndIf ElseIf(Hold == 6) If(thaneScript.HjaalmarchImpGetOutofJail > 0 || thaneScript.HjaalmarchSonsGetOutofJail > 0) Enable(true) EndIf ElseIf(Hold == 7) If(thaneScript.PaleImpGetOutofJail > 0 || thaneScript.PaleSonsGetOutofJail > 0) Enable(true) EndIf ElseIf(Hold == 8) If(thaneScript.WinterholdImpGetOutofJail > 0 || thaneScript.WinterholdSonsGetOutofJail > 0) Enable(true) EndIf ElseIf(Hold == 9) If(thaneScript.FalkreathImpGetOutofJail > 0 || thaneScript.FalkreathSonsGetOutofJail > 0) Enable(true) EndIf EndIf EndEvent Link to comment Share on other sites More sharing options...
icecreamassassin Posted April 25, 2014 Share Posted April 25, 2014 That's actually the way I tried it first, I replaced your extends option with object reference (so enable works) and chanted the event to on attach and it did nothing :( Link to comment Share on other sites More sharing options...
Saerileth Posted April 25, 2014 Author Share Posted April 25, 2014 Really? That's strange... it works for me (my version), and I see no reason why it would stop working with this different trigger mechanism. Are you sure your test character is thane in any of the holds? Cheating it in with the setstage command will NOT work, you need to actually have the conversation with the jarls for the jail freecards to be set. Also, could you check if you are having any errors in the papyrus log related to this script? Link to comment Share on other sites More sharing options...
icecreamassassin Posted April 25, 2014 Share Posted April 25, 2014 Yeah my test toon is thane in Whiterun and faulkreath... I'm gonna scrap it and start fresh with the code you listed above, it's possible the ck has corrupted the references it likes to do that a lot :P Link to comment Share on other sites More sharing options...
icecreamassassin Posted April 25, 2014 Share Posted April 25, 2014 nevermind, I take that back, I somehow must have had something slightly off with my original version, but the one you posted above seems to be working at this point for my whiterun banner, so thanks so much for your help, I greatly appreciate it Link to comment Share on other sites More sharing options...
Saerileth Posted April 26, 2014 Author Share Posted April 26, 2014 (edited) You're welcome :smile: I'm glad it works now. Edited April 26, 2014 by Saerileth Link to comment Share on other sites More sharing options...
Recommended Posts