Unlockable Route
Posted: Sat Mar 22, 2014 11:52 am
Hi, sorry if this has been asked before, but I really need some clarification on how to get an unlockable route going.
The deal is, I have three route ends in my game, and the one unlockable. I want the unlockable route to, well, unlock only after you've gotten all three normal ends, and so you can choose to select that route right off the bat at the beginning of the game.
I've read up on persistent data, and I tried fiddling around with it, but I'm just not entirely sure what I'm doing, exactly. I'm a bit more than a super newbie to Ren'Py and Python alike. So this might seem a bit stupid or obvious to most people.
I guess in brief, I'm asking, how might I pull this off so that the game knows when you've gotten all three ends, what exact code do I need exactly to trigger a permanent flag for each end and for the verification process, and where exactly do I put all this? Do I need to edit another .py file other than script.py for it to work? Thanks in advance.
The deal is, I have three route ends in my game, and the one unlockable. I want the unlockable route to, well, unlock only after you've gotten all three normal ends, and so you can choose to select that route right off the bat at the beginning of the game.
I've read up on persistent data, and I tried fiddling around with it, but I'm just not entirely sure what I'm doing, exactly. I'm a bit more than a super newbie to Ren'Py and Python alike. So this might seem a bit stupid or obvious to most people.
I guess in brief, I'm asking, how might I pull this off so that the game knows when you've gotten all three ends, what exact code do I need exactly to trigger a permanent flag for each end and for the verification process, and where exactly do I put all this? Do I need to edit another .py file other than script.py for it to work? Thanks in advance.