ChancellorKremlin Posted October 19, 2012 Posted October 19, 2012 OK, I fear I've bothered Roger long enough with this, and he has been more than kind enough in guiding me. Yet, my problem persists, so I'm hoping the combined LL collective knowledge will be enough to help me out.  This is my quest (SlaveJailTSexVariables), with a simple script:     As you can see, all I have is:  scn SlaveJailTSexVariablesSCRIPT short isrubbleprostitute short isslaveprostitute  This is where I'm trying to trigger one of the variables, in the SlaveJailTRubbletownDialogue quest, SlaveJailTSportCallbackA dialogue topic:     And I'm trying to trigger it with this script put in "end script".  player.additem OutfitProstitute03Wearable 1 player.equipitem OutfitProstitute03Wearable set SlaveJailTSexVariables.isrubbleprostitute to SlaveJailTSexVariables.isrubbleprostitute 1  As you can see, add topics has both the dialogue threads I'm trying to trigger with two different individuals.  The first conversation I'm trying to trigger through that variable is SlaveJailTSport20, which has conditions getisid sport, and isrubbleprostitute == 1.      Which would, if functioning, change the isrubbleprostitute variable to 2, as per this code:  player.removeitem OutfitProstitute03Wearable 1 player.unequipitem OutfitProstitute03Wearable set SlaveJailTSexVariables.isrubbleprostitute to SlaveJailTSexVariables.isrubbleprostitute 2  The second dialogue I'm trying to trigger is SlaveJailTSlaveIntakeWhoreTricks:     Which has as conditions that the subject be both in the slaveintake formid, and that isrubblesexprostitute set to 1.  But for some reason, neither of these topics is showing up with the appropriate people I'm trying to talk to. I've tried everything I can think of, and the only thing I can entertain now is that my code/script is broken somehow.  Can anyone spot the problem?  Thanks a bunch.  Ck
DoctaSax Posted October 19, 2012 Posted October 19, 2012 Hi chance This: set SlaveJailTSexVariables.isrubbleprostitute to SlaveJailTSexVariables.isrubbleprostitute 1 Â should be: set SlaveJailTSexVariables.isrubbleprostitute to 1 Â if you want to change it to 1. Â -- Â If at any stage you want to increment a quest var, you can however use set SlaveJailTSexVariables.isrubbleprostitute to (SlaveJailTSexVariables.isrubbleprostitute + 1) Â but that doesn't seem to necessary here
ChancellorKremlin Posted October 19, 2012 Author Posted October 19, 2012 "D'oh!" Â Urgh, I knew it was something stupid, I just thought nvse GECK/GECK powerp would have alerted me, as it frequently does when I do something stupid lol. Â What do you mean by increment a quest var? I have other variables for 2, and 5 I think, and will probably add others too. But it will either be 2, 5 or whatever, it won't be (for now) starting with one, then +1, then +2 and so forth.
DoctaSax Posted October 19, 2012 Posted October 19, 2012 Well, incrementing is just adding to the quest var value, for instance when you keep count of things. No need to start using it if you don't need it: I just used that as an example of the quest var showing up in the second part of the code. So technically, it is possible, which is why there's no error.
ChancellorKremlin Posted October 19, 2012 Author Posted October 19, 2012 Ah ok, so if I want to just change the number, I do this:  set SlaveJailTSexVariables.isrubbleprostitute to 1/2/3/5/x  but if I want to increment, I do this:  set SlaveJailTSexVariables.isrubbleprostitute to (SlaveJailTSexVariables.isrubbleprostitute + 1/ + 3/ + X)  Right?
DoctaSax Posted October 19, 2012 Posted October 19, 2012 Exactly. For the moment, you're fine using the first.
ChancellorKremlin Posted October 19, 2012 Author Posted October 19, 2012 Thanks. For the record, that fixed it. As I suspected, hours and hours of work held back over something stupid... gotta love the GECK! And my complete lack of understanding in how to use it!
DoctaSax Posted October 19, 2012 Posted October 19, 2012 It's only by learning from your mistakes that you get to make new ones.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now