- Mar 4, 2019
- 112
- 145
The fundamental issue with loops is that it requires some form a loop trigger to indicate to the program when to do the loop, which means inserting a function to check on variable update, or on time advance, etc...."is this variable locked? yes/no. then do this, else do this" which brings me back to my original problem of having to modify the script.rpy to include function trigger and having to release a modified script.rpyc every time Vren releases a new version. If thats the route you wish to go with it, then by all means, I was simply trying to figure out a way to ideally accomplish it WITHOUT altering the script.rpy. It's highly likely its not possible. I'm not a native python coder, I'm learning and adapting my syntax as I go, what can and cant be done, it's highly likely you know more than I do.I can take a look into arousal lock, it should be fairly simple to add in my cheat mod at least. Will be a button that locks the value to whatever mc.arousal is currently at and then unlocks when you right click, might have to use a "while" rule instead of "if" for it to stick. I'll take a look into it later.
Also, what I came here for.Code:ArousalLock = False # Will be toggled to true on button press ArousalLockValue = None # Will be set to what mc.arousal is at button press def ArousalLocked(): if ArousalLock: # if ArousalLock value is True ( while ArousalLock, might be what's necessary ) mc.arousal = ArousalLockValue # Sets mc.arousal to be the value it was at when "locked" if mc.arousal != ArousalLockValue: # If mc.arousal is no longer the value it was "locked" at mc.arousal = ArousalLockValue # Then keep it at the locked value.
You must be registered to see the links, public release 0.14.1
If this is the route you wish to go, then I would probably insert this loop into the change_arousal() function, that almost always called and used to modify both the player and all girls arousal values during sex.
On a side note, I just noticed the change_arousal function is defined twice in script.rpy. Im curious if there is a reason for this or if its just a bug. From what I've read, looks to either be a mistake, or a way to handle whether or not the script passes a logging boolean when calling the function.
Anyways, I'm going to wait until either a new SB mod version is released, or a there's been some significant content updates to the base game. I've messed around with a modded 13.1 version, made modifications myself (primarily to scene dialogue, creating new dialogue forks for opinion traits, for my own purposes