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.
define e = Character('Eileen', color="#c8ffc8")
# The game starts here.
label start:
e "You've created a new Ren'Py game."
e "Once you add a story, pictures, and music, you can release it to the world!"
$ attack_power = 5
"Your Attack Power = ", attack_power
"Your Attack power is increased by 10"
attack_power = attack_power + 10
"Your Attack Power = ", attack_power
return
i don't know what's wrong with this code.
please guide me.
Last edited by Gordon_Freeman on Tue Sep 06, 2011 3:04 pm, edited 1 time in total.
First of all what version of Ren'Py are you using? There's a huge difference between 6.12 and 6.13 when it comes to showing variables. Right off the bat, I can see you're missing a $ sign for one of your variable changes (attack_power = attack_power + 10), and the comma is not the Ren'Py syntax for showing variables. You show them like this.