Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
screen myscreen((initiativeList):
hbox:
spacing 5
for initiativePosition in initiativeList:
frame:
vbox:
fixed:
add "myimage"
bar value initiativePosition.CombatStats['Health']['Current'] range initiativePosition.CombatStats['Health']['Total'] xmaximum 64 thumb None left_bar GreenImage right_bar RedImage
Now I got a few quetisons here:
1.) how can I make the bar as multiline?
2.) I'm getting an error saying name GreenImage is not edfined when I try to run the above code
bar
value initiativePosition.CombatStats['Health']['Current']
range .....
For the variable instead of image tnx that works. Althnough I'm a bit confused there. Why? In the manual it says displayable but a string is not a displayable an image would be. Do you have any idea why?
bar
value initiativePosition.CombatStats['Health']['Current']
range initiativePosition.CombatStats['Health']['Total']
xmaximum 64
thumb None
left_bar "GreenImage"
right_bar 2RedImage"
So to say not writing it all in one overlong line.
bar:
value initiativePosition.CombatStats['Health']['Current']
range initiativePosition.CombatStats['Health']['Total']
xmaximum 64
thumb None
left_bar "GreenImage"
right_bar 2RedImage"
i think it works with every screen component?
But some need an additional value before the :, for example: