While helpful it doesn't fix my issue.I've got a solution to immediately end all serums currently active on every character for anyone that, like me, has any bad and/or self-replicating effects that they want removed. All it takes is a simple edit to Person.rpy located in game\major_game_classes\character_related.
Find the run_turn(self) function and change this for-loop:
To this:Python:for serum in self.serum_effects: #Compute the effects of all of the serum that the girl is under. serum.run_on_turn(self) #Run the serum's on_turn funcion if it has one. if serum.duration_expired(): #Returns true if the serum effect is suppose to expire in this time, otherwise returns false. Always updates duration counter when called. remove_list.append(serum) #Use a holder "remove" list to avoid modifying list while iterating.
The change makes it so that every active serum gets added to the remove list at the end of each turn no matter its remaining duration or self-replication. Make sure to change it back afterwards, otherwise your serums will only ever last the turn they're used. Hope this helps anyone in the same spot I was in.Python:for serum in self.serum_effects: #Compute the effects of all of the serum that the girl is under. serum.run_on_turn(self) #Run the serum's on_turn funcion if it has one. #if serum.duration_expired(): #Returns true if the serum effect is suppose to expire in this time, otherwise returns false. Always updates duration counter when called. remove_list.append(serum) #Use a holder "remove" list to avoid modifying list while iterating.
Code:
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 280, in script call
$ picked_event[1].call_action(picked_event[0]) #Run the action with the person as an extra argument.
File "game/game_roles/role_sister/role_sister_taboo_quests.rpy", line 686, in script
label sister_vaginal_taboo_break_revisit_quest_1(the_person):
Exception: Required parameter the_person has no value.
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script.rpy", line 280, in script call
$ picked_event[1].call_action(picked_event[0]) #Run the action with the person as an extra argument.
File "game/game_roles/role_sister/role_sister_taboo_quests.rpy", line 686, in script
label sister_vaginal_taboo_break_revisit_quest_1(the_person):
File "renpy/ast.py", line 864, in execute
values = apply_arguments(self.parameters, renpy.store._args, renpy.store._kwargs)
File "renpy/ast.py", line 159, in apply_arguments
return parameters.apply(args, kwargs, ignore_errors)
File "renpy/ast.py", line 123, in apply
raise Exception("Required parameter %s has no value." % name)
Exception: Required parameter the_person has no value.
Windows-10-10.0.19041
Ren'Py 7.4.8.1895
Lab Rats 2 - Down to Business v0.46.1
Tue Nov 9 00:58:37 2021
Code:
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 280, in script call
$ picked_event[1].call_action(picked_event[0]) #Run the action with the person as an extra argument.
File "game/game_roles/role_sister/role_sister_taboo_quests.rpy", line 688, in script call
call serum_inventory_select_ui(mc.inventory, the_person, batch_size = 10)
File "game/script.rpy", line 280, in script call
$ picked_event[1].call_action(picked_event[0]) #Run the action with the person as an extra argument.
File "game/game_roles/role_sister/role_sister_taboo_quests.rpy", line 688, in script call
call serum_inventory_select_ui(mc.inventory, the_person, batch_size = 10)
ScriptError: could not find label 'serum_inventory_select_ui'.
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script.rpy", line 280, in script call
$ picked_event[1].call_action(picked_event[0]) #Run the action with the person as an extra argument.
File "game/game_roles/role_sister/role_sister_taboo_quests.rpy", line 688, in script call
call serum_inventory_select_ui(mc.inventory, the_person, batch_size = 10)
File "renpy/ast.py", line 1485, in execute
rv = renpy.game.context().call(label, return_site=self.next.name)
File "game/script.rpy", line 280, in script call
$ picked_event[1].call_action(picked_event[0]) #Run the action with the person as an extra argument.
File "game/game_roles/role_sister/role_sister_taboo_quests.rpy", line 688, in script call
call serum_inventory_select_ui(mc.inventory, the_person, batch_size = 10)
File "renpy/script.py", line 918, in lookup
raise ScriptError("could not find label '%s'." % str(original))
ScriptError: could not find label 'serum_inventory_select_ui'.
Windows-10-10.0.19041
Ren'Py 7.4.8.1895
Lab Rats 2 - Down to Business v0.46.1
Tue Nov 9 00:59:31 2021