Hi! Okay, I'm making a VN with an ending system similar to Princess Maker. Basically, certain amount of points with give you certain endings. If you want an example of how those endings work, click here. Now the tutorial for the Points Based system has been very helpful, but the problem is - I'm not sure how to write the codes for the complicated endings.
Let's just use a random example:
Say for example, we have these initial stats in the start:
Code: Select all
$ social_reputation = 0
$ refinement = 0
$ charisma = 0
$ fighting_reputation = 0
$ sin = 0
For example, say we want a Queen Ending. Our Queen would need very high refinement and high stats in the other departments, but low sin. (In my game, if the sin reaches 50, it's an automatic cross to the dark side endings.) I've tried to write something like this at first:
Code: Select all
if refinement >= 80
and 70 < social_reputation >= 50
and 80 < charisma >= 60
and 70 < fighting_reputation >= 50
and sin < 50:
jump queenendCode: Select all
elif charisma >= 80
and 70 < social_reputation >= 50
and sin < 50:
jump concubineendCode: Select all
File "game/endings.rpy", line 4: reached end of line when expecting ':'.
if refinement >= 80 and 70 < social_reputation >= 50 and 80 < charsima >= 60Then I've tried to switch it around like so this random example:
Code: Select all
if refinement >= 80:
and if 70 < social_reputation >= 50:
and if charisma > 30:
Code: Select all
File "game/endings.rpy", line 10: expected statement.
if refinement >= 80 I scratched through the boards and tutorials and such, but I don't think I've run into any solution for this case. May you please assist me on how I should construct it? Unless this is impossible with Ren'Py.
Thanks in advance!
