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.
I'm trying to get an imagemap to show some images depending on the characters in the player's party. To do this, I've got a player class which contains the party members as an array.
File "game/screens.rpy", line 23: u'you' is not a keyword argument or valid child for the imagebutton statement.
imagebutton you.team[0].pic action Null() align (.3,.2)
Hey, Dave, I think you should take a different approach to this character dependent image problem.
You could easily use variables and save yourself the trouble! x)
Best,
Grey
"We have been to the moon, we have charted the depths of the ocean and the heart of the atom,
but we have a fear of looking inward to ourselves because we sense that is where
all the contradictions flow together." -- Terrence Mckenna
I've got a class with an attribute pic, and I'm calling that class to form a style so my imagebuttons work. However, I don't know how Ren'Py's If function works, so it keeps calling pic from Null objects when the party isn't full.
I tried fixing it with this:
style batyou1:
if you.team[1] is unit:
background you.team[1].pic
but that gave me:
File "game/screens.rpy", line 20: end of line expected.
if you.team[1] is unit:
And I haven't been able to find a page for the if is function on the renpy documentation.
You might want to put your code inside the [ code][ /code] tags (without the extra space) so people can see your indentation.
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)