- Jun 13, 2019
- 5
- 13
Sorry for the previous post, I completely forgot that you need to unpack the archives first. I automatically do that to all renpy games. I don't even know anymore if a game originally shipped with .rpa archives or loose files.
Of course, there are many ways to alter the code. I only wanted the wardrobe deletion functionality gone, so I got rid of that part. It seemed like a simple function that likely won't change much in updates. This way I also won't have to hunt every bit of code that could grant the perk now or in future updates. I'm not saying it's the best way to do this--for example, the game could check for the Commando perk and assert from its presence that there's no underwear, which could lead to bugs with my edit.
Edit whatever works for you. Just be careful with whitespace, it's syntactically significant in Python. Copypasting the code from your post back into the script file would break it. And don't bother the dev with any bug reports if you fiddle with the code!
Not necessarily. It's possible to grant the perk without going through that qualify check. I think character creation and something else already did that when I looked at the scripts of version 0.3.00.01.Wouldn't commenting that out, or switching the 30 to something like 300 prevent you from getting the commando perk in the first place?
Of course, there are many ways to alter the code. I only wanted the wardrobe deletion functionality gone, so I got rid of that part. It seemed like a simple function that likely won't change much in updates. This way I also won't have to hunt every bit of code that could grant the perk now or in future updates. I'm not saying it's the best way to do this--for example, the game could check for the Commando perk and assert from its presence that there's no underwear, which could lead to bugs with my edit.
Edit whatever works for you. Just be careful with whitespace, it's syntactically significant in Python. Copypasting the code from your post back into the script file would break it. And don't bother the dev with any bug reports if you fiddle with the code!
Last edited: