Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
if the name of your file is "x" and the function is named "f1" you would type it like so (including the "import" line, which is important!)
or, maybe you need the function to be inside a loop that's in another file? That would look somewhat like this:
hope this helps!
Yup, that is how it works.
In standard python you would do
And double checking what is in the game you can do this as well.
Hell, this was even added
Which basically means that if it is not the main program then it will not run this part.
So you can effectively build a lib and the test code for it inside now.
An example would be as follows
sub_program_one.py
Main.py
Also, as a very important note wild card importing is a thing just be very careful
Example!
overwrite.py
main.py
Guess what happens in the above code!