I would like to check a condition which come from a Python script in a Renpy Menu but I have no idea how.
First (optional question) :
Is this line of code :
Code: Select all
label 1:
$ inventory.add(obj_teddybear)
Code: Select all
label 1:
python:
inventory.add(obj_tool)
Secondly, i have this renpy menu with condition :
Code: Select all
label 2:
menu:
"Go look for it":
jump DarkBasment3_a
"Go back":
jump DarkBasment3_b
"Go check the generator" if obj_teddybear is in inventory.items and progression_find_jess_dark == True :
jump DarkBasment3_Generator
In my inventory screen I use this loop :
Code: Select all
for item in inventory.items:
blablabl
Its just I have no Idea how to express a condition in Python INSIDE a renpy menu code.
If anyone know how to make this let me know plz.
Thanks.