Python Forum
Importing variables from another file
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Importing variables from another file
#8
I redid all the file names and saved them into a new folder and that seemed to work.

Now it would seem my text based combat test actually works. Now I have to create random encounters and make the script more fluid instead of setting all the stats myself. Thanks guys! Not sure what went wrong but refreshing everything sometimes works :)

Also, for future reference, it seems one cannot import a whole module into a module that isn't the main one I guess? I had to import all things separately to the other files.
Reply


Messages In This Thread
RE: Importing variables from another file - by IILawrenceII - Jan-18-2020, 12:31 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  importing variables from module 8376459 1 274 Feb-18-2024, 02:24 PM
Last Post: deanhystad
  File path by adding various variables Mishal0488 2 1,026 Apr-28-2023, 07:17 PM
Last Post: deanhystad
  New2Python: Help with Importing/Mapping Image Src to Image Code in File CluelessITguy 0 721 Nov-17-2022, 04:46 PM
Last Post: CluelessITguy
  Problem with importing Python file in Visual Studio Code DXav 7 5,072 Jun-15-2022, 12:54 PM
Last Post: snippsat
  importing functions from a separate python file in a separate directory Scordomaniac 3 1,366 May-17-2022, 07:49 AM
Last Post: Pedroski55
  Storing variables into one file for use in multiple Jupyter notebooks devansing 1 1,733 Feb-05-2022, 10:04 AM
Last Post: ibreeden
  Importing a function from another file runs the old lines also dedesssse 6 2,543 Jul-06-2021, 07:04 PM
Last Post: deanhystad
  Importing text file into excel spreadsheet with formatting david_dsmn 1 3,607 Apr-05-2021, 10:21 PM
Last Post: david_dsmn
  importing a CSV file into Python russoj5 1 2,946 Aug-02-2020, 12:03 AM
Last Post: scidam
  Importing data from a text file into an SQLite database with Python macieju1974 7 4,100 Jun-29-2020, 08:51 PM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020