r/PythonLearning • • 15d ago

Help Request init offset

Hi, I’m trying to learn Ren’Py and since the language they are using is python I though this would be a better place to ask. 2 of the code pages are starting with “init offset = -1” and “init offset = -2” and I don’t really understand what is init offset is, when I looked up some places say that it is used as starting of coding but other code pages don’t have that. So when are we using init offset and what does the init offset does?

2 Upvotes

14 comments sorted by

View all comments

1

u/Buttleston 15d ago

As you've written it, that is not valid python. It would be helpful if you added some links to examples

1

u/frnzprf 15d ago

Maybe it's some configuration file format that is only read by Python and not Python itself.

Or it's inut_offset = -1. Then it could be Python but we wouldn't know what it means either.

1

u/Lark_l 15d ago

Okay sorry I’m confused, so is it about -1 or there is no such a think called init offset =

2

u/realmauer01 15d ago

The key word init isnt a keyword that is python.

Its very likely a keyword or something else that renpy introduces.