lofgren Posted July 9, 2016 Share Posted July 9, 2016 Hmm. Maybe try getinfavorstate == 0 Link to comment Share on other sites More sharing options...
Mornedil Posted July 9, 2016 Share Posted July 9, 2016 (edited) hmm, I think it's the follower who gets into the favor state, and there's no similar "isAskingForFavor" Only place I can think to look now is if there's maybe an actor value controlling it? Gonna search through it and hope for the bestEdit: Well there's a "FavorActive" actor value listed under unused/obsolete, but I tried it anyway without luck Edited July 9, 2016 by Mornedil Link to comment Share on other sites More sharing options...
AhtiVou Posted July 9, 2016 Share Posted July 9, 2016 Hello! I'm making a house mod to Skyrim, which, at its core, is a very simple process. The problem I have is with scripting as I'm making a sauna and I have already set up a triggerbox there. What I want to do is the following: Upon entering, any actor will unequip everything they are equipping (basically go naked into the sauna). However I don't know how to get NPCs take off their clothing. Here's what I have now: Scriptname zzzSaunaunequip extends ObjectReference {Autounequip upon entering the sauna} Actor Property PlayerRef Auto Event OnTriggerEnter (ObjectReference akActionRef) ;is triggered upon entering the triggerboxakActionRef().UnequipAll() ;this is the line I have a problem with. It's supposed to be the one to have actors unequip allEndEvent So Is there any simple way that I could use to refer to anyone triggering the script or must I make an 'if-elseif' script? Even then, how do I refer to an NPC and use the UnequipAll function? ThanksAhtiVou Link to comment Share on other sites More sharing options...
youbetterwork Posted July 9, 2016 Share Posted July 9, 2016 How do I edit "Hellos"?You know when you walk up to somebody and they just say stuff. I want a specific prisoner NPC to stop being so cheerful when I talk to him. I've changed his mood already and the "Hellos" tag in his AI Package. I don't know where else to look. Link to comment Share on other sites More sharing options...
lofgren Posted July 9, 2016 Share Posted July 9, 2016 Hello! I'm making a house mod to Skyrim, which, at its core, is a very simple process. The problem I have is with scripting as I'm making a sauna and I have already set up a triggerbox there. What I want to do is the following: Upon entering, any actor will unequip everything they are equipping (basically go naked into the sauna). However I don't know how to get NPCs take off their clothing. Here's what I have now: Scriptname zzzSaunaunequip extends ObjectReference {Autounequip upon entering the sauna} Actor Property PlayerRef Auto Event OnTriggerEnter (ObjectReference akActionRef) ;is triggered upon entering the triggerboxakActionRef().UnequipAll() ;this is the line I have a problem with. It's supposed to be the one to have actors unequip allEndEvent So Is there any simple way that I could use to refer to anyone triggering the script or must I make an 'if-elseif' script? Even then, how do I refer to an NPC and use the UnequipAll function? ThanksAhtiVou Remove the parentheses after akActionRef and cast it to an actor. The line should look like this: (akActionRef as actor).UnequipAll()This will make any NPC who enters the area remove their clothing. Link to comment Share on other sites More sharing options...
lofgren Posted July 9, 2016 Share Posted July 9, 2016 How do I edit "Hellos"?You know when you walk up to somebody and they just say stuff. I want a specific prisoner NPC to stop being so cheerful when I talk to him. I've changed his mood already and the "Hellos" tag in his AI Package. I don't know where else to look. Dialogue is all stored in quests. If you want to edit an existing Hello, you'll have to figure out which quest owns the line. If you want to create your own, create a new quest and go to the Misc tab, then create a new topic. You should get a list of options. Select Hello. Other factors determine whether your Hello actually gets used in game. For testing purposes you may want to give your quest and dialogue a priority of 100 (most important), which you may consider lowering later depending on what you are trying to do. Link to comment Share on other sites More sharing options...
AhtiVou Posted July 9, 2016 Share Posted July 9, 2016 Remove the parentheses after akActionRef and cast it to an actor. The line should look like this: (akActionRef as actor).UnequipAll()This will make any NPC who enters the area remove their clothing. Thank you very much for the quick answer :) Link to comment Share on other sites More sharing options...
youbetterwork Posted July 9, 2016 Share Posted July 9, 2016 Thanks. That sent me in the right direction. Link to comment Share on other sites More sharing options...
Mornedil Posted July 10, 2016 Share Posted July 10, 2016 How do I concatenate a float into a string and only displaying 2 decimal points?For example: float pi = 3.14 Debug.Notification("Pi is equal to " + pi)And then rather than the string outputting "Pi is equal to 3.1400000" it would only be "Pi is equal to 3.14" Link to comment Share on other sites More sharing options...
lofgren Posted July 10, 2016 Share Posted July 10, 2016 put it in a message and use the format here: http://www.creationkit.com/index.php?title=Show_-_Message#Notes Link to comment Share on other sites More sharing options...
Recommended Posts