Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Nsutton

macrumors member
Original poster
Dec 29, 2009
92
0
6 Feet Under
This is a noob question but I can't find it on google...

How do you print a variable in ren'py.
Code:
menu day1:
    "DAY:1 What do you want to do?"
    
    "Go to the movies [$5]":
        d"You got to the movies."
        $cash=cash-50
        $print cash
Doesn't work...

So how do you do it!?
 
This is the wrong forum for this sort of question. You should go to the ren'py forums to ask, since it seems like Python was the inspiration for the scripting language used, it is not directly Python that you are using. The chances that there are any ren'py scripters here is small.

In actual Python printing variables looks like this:
Code:
print variableName
or:
Code:
import sys
variableName = "Bob was here"
sys.stdout.write("This is the contents of the string variable: %s\n" % variableName)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.