Im currently working on my first RenPy game and have a big issue to solve.
I nearly completed a minecraft-ish crafting system but at the final point, the one where the items come in, kills it.
Imagine a square with 9 sockets. Every socket has its own variable. If i go and say, for example, you put in the middle top and the middle middle socket a piece of metal and in the bottom middle a piece of wood, i can create a sword:
Code: Select all
if A2 == 2:
if B2 == 2:
if C2 == 1:
m "Wundervoll! Ein einfaches Stahlschwert."
jump forging_system_return
else:
jump wrong_forging
else:
jump wrong_forging
else:
label wrong_forging:
m "Hmm, Ich glaube das wird nichts."
jump forging_system_return
Code: Select all
elif A1 == 2:
if A3 == 2:
if B1 == 2:
if B2 == 2:
if B3 == 2:
if C1 == 2:
if C2 == 2:
if C3 == 2:
m "Exellent! Ein Vollstahlbrustharnisch."
jump forging_system_return
else:
jump wrong_forging
else:
jump wrong_forging
else:
jump wrong_forging
else:
jump wrong_forging
else:
jump wrong_forging
else:
jump wrong_forging
else:
jump wrong_forging
Code: Select all
elif A1 == 2 and A2 == 0 and A3 == 2:
if B1 == 2 and B2 == 2 and B3 == 2:
if C1 == 2 and C2 == 2 and C3 == 2:
m "juhu"
jump forging_system_return
else:
jump wrong_forging
else:
jump wrong_forging
else:
label wrong_forging:
m "Hmm, Ich glaube das wird nichts."
jump forging_system_return
I also tried to put them all together in a single if clause, didnt work either.
Can someone help me with it?
If you want to help please use RenPy without init python, im still a newbie and dont understand anything with this python things.