Questions tagged [renpy]

Ren'Py is a visual novel engine that helps you use words, images, and sounds to tell stories with the computer.

Ren'Py is a visual novel engine that helps you use words, images, and sounds to tell stories with the computer. These can be both visual novels and life simulation games. The easy to learn script language allows you to efficiently write large visual novels, while its Python scripting is enough for complex simulation games.

Ren'Py is open source and free for commercial use. It supports Windows, Mac OS X, Linux, Android, and iOS.

Documentation

98 questions
0
votes
2 answers

The $ in python or renpy

I was playing around with the game files of a game called "Doki Doki Literature Club" made in renpy a visual novel engine written in python . Some lines made me curious : $ persistent.playthrough = 1 $ persistent.anticheat =…
user14113680
0
votes
1 answer

Anomalous backslash in string VSC Python

So i was working on something and Visual Studio Code has spat out an error. I have tried several things but nothing seemed to work. while True: try: file = open("{0}\..\state.txt".format(os.getcwd()), 'r', encoding = "utf-8") …
0
votes
0 answers

How to correctly use a loop within a Python game inventory system?

I'm putting together an inventory system for a dressup game (Python/Ren'py) and I'm stuck at the very last hurdle. I have the Inventory object, Clothing object and Items all set up like so: class Clothing(store.object): def…
0
votes
1 answer

Ren'py launcher: "Cannot find Java SE Runtime environment"

Recently I botched an uninstall of an older version of Java and I've been having weird issues launching jEdit from the Ren'py engine since. First it keeps on trying to open Java from the wrong folder, and now it's telling me it can't find the Java…
0
votes
1 answer

Renpy Clock skip time button

I am trying to create a textbutton when clicked will advance time on a simple clock. In my script.rpy file I have. label start: show screen timeclock #shows time & day on screen return I then created a clock.rpy file for my clock screen…
randbo
  • 36
  • 1
  • 7
0
votes
1 answer

Unable to find Image (Coding in Atom for Visual Novel Creation in Ren'py Visual Novel Engine)

While loading <'Image' u'Volume1.png'>: File "game/script.rpy", line 7, in script "Welcome." File "renpy/common/000window.rpy", line 98, in _window_auto_callback _window_show() File "renpy/common/000window.rpy", line 60, in…
0
votes
1 answer

stackable items and how to change their quantity in order to display using interpolated data?

I'm not very experienced, and I have a lovely working inventory that I've built in renpy/python. I have run into some struggles when trying to make my items stackable. I have been trying to get my class item object to have an editable…
0
votes
1 answer

Handling errors in Ren'py

Im just getting started with this tool and I have absolutely no idea on why this doesn't work. Heres the full script: # 이 파일에 게임 스크립트를 입력합니다. # image 문을 사용해 이미지를 정의합니다. # image eileen happy = "eileen_happy.png" # 게임에서 사용할 캐릭터를 정의합니다. define e =…
테라엘
  • 1
  • 1
0
votes
1 answer

Python (RenPy): Textbuttons executing a function they don't explicitly call every time they're pressed

In the game I'm working on, I use an array to track the current stats of the player's company, and the following function to edit the array. init python: #The following store item objects, which include an array of their own stats #Stores currently…
0
votes
0 answers

Renpy guessing game riddle player interacting

I need to make the player to enter a scenario where he is asked to answer a riddle if it is correct go next lvl if does not go back to the beginning
Ger124
  • 1
  • 1
0
votes
2 answers

Initialize a new dictionary from a tuple and the keys of another dictionary

I'm trying to build a dictionary using keys that come from [the values of] a tuple, and the value of those keys should be a new dictionary formed from the keys of a dictionary and the value of the sub-key initialized to 0. The tuple looks like: …
pete
  • 24,141
  • 4
  • 37
  • 51
0
votes
1 answer

Renpy - the preceding tag statement does not expect a block. Please check this line's indentation

Trying to port a pre-developed game to Android Build using Renpy. However, it always throws the error: File "game/radioactive/getlucky/screen/GetLuckyScreen.rpy", line 10: Line is indented, but the preceding tag statement does not expect a block.…
user11336596
0
votes
1 answer

Python - Update a function/return assigned to a var

Code first so you'll understand what I'm talking about : goal = False count = 0 def function(): if goal==True: return True else: return False def func(): if dict1["A"]==True: return True else: return…
0
votes
0 answers

How do I change which variable is called? (specifically Objects)

I am trying to create a little monster-collection game with the ability to collect multiple monsters of the same type with variable stats between them. The issue I'm having is that I don't know how to make an object that doesn't overwrite the…
0
votes
1 answer

map and hotspot in Ren'py

I'm trying to make a map for my novel. But I ran into the problem that the hotspot is calling on other buildings, and I have a question, is it possible to make a hotspot in the form of a polygon? Here is my code and maps: screen map: imagemap: …
Invalid Dog
  • 43
  • 2
  • 6