Printing Variables in ren'py (Python)

Discussion in 'Mac Programming' started by Nsutton, Apr 10, 2010.

  1. Nsutton macrumors member

    Nsutton

    Joined:
    Dec 29, 2009
    Location:
    6 Feet Under
    #1
    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!?
     
  2. larkost macrumors 6502a

    Joined:
    Oct 13, 2007
    #2
    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)
     
  3. Nsutton thread starter macrumors member

    Nsutton

    Joined:
    Dec 29, 2009
    Location:
    6 Feet Under
    #3
    Ren'py was recommended to me on this forums so i assumed their was some people who use it
     

Share This Page