NOTE:  THIS IS A BETA VERSION, MEANING EVERYTHING IS SUBJECT TO CHANGE WITH LATER VERSIONS
(though, as much as possible, I will try to make any additions backwards compatable)

TRIGEN BETA 0.0.2

A Trigger generator made for fun (also to help me learn python)
Made by Zoan
Last Edit: 04/11/2017



FIRST OFF:

THERE IS (OR WILL BE) A LIST OF ALL THE DIFFERENT CLASSES ON STAREDIT AND WHAT YOU CAN DO WITH THEM.

Where is it?

go to:

staredit.net
navigate to forums
navigate to SC1 Mapping Tools
search for TriGen

It will be on the forum.




So, I guess I should try and answer the most obvious question:

    HOW DO YOU USE IT???
    
I will answer this question assuming the user is not familiar with things that programmers usually are.


    STEP 1 - DOWNLOADING PYTHON:
        Download Python.  The version should be at least 2.7.
        
        https://www.python.org/downloads/
        
        
        
    STEP 2 - FAMILIARIZE YOURSELF WITH HOW TO COMPILE IN PYTHON:
        a. After downloading Python, open up command prompt (or its equivalent on whatever operating system you are using (e.g. Windows, Mac, Linux)).
            To do this on Windows, click on the "Start" button on the bottom left, and then select "Run" and type in cmd and then press Ok.
        
            ( For those unfamiliar with Command Prompt, you can think of it like this:
                It works sort of like how the Chatrooms in StarCraft work.  In SC, you type '/j -chatroom-' to go to a different channel,
                while in Command Prompt you type in 'cd -folder_name-' to go into a new folder.
                
                To see what folder are available for you to navigate to, type in 'dir' and hit enter. )
            
        With this in mind, navigate to the TriGen.beta.0.0.2 folder you downloaded and then to Maps.
        
        b. Now, take a break from command prompt and open up the TriGen.beta.0.0.2 folder, go to Maps, and start editing template.py.
            The edit you want to make is to the 'C:\\PythonPrograms\\TriGen.beta.0.0.2\\TriGen' line at the top.
            
            Change this to whatever location in your computer you downloaded TriGen.beta.0.0.2 to.
        
        c. Now, go back to Command Prompt, and type in 'python template.py output.txt' and hit enter.
        
        c. If done correctly, the 'template.py' file will be translated into a text file called 'output.txt.'  This text file will be placed in the same folder that 'template.py' is in.
        
            This text file is the file containing all of your TriGen generated triggers.  After obtaining this, you will copy and paste the triggers into your map on SCMDraft.
      
      
      
    STEP 3 - MAKE YOUR MAP:
        a. Create a copy of the 'template.py' file, and name this copy 'my_map.py' or whatever.  
        
        b. Open up this copy in something like Notepad++ and write your TriGen triggers inside of this copy.
            You can also use Python IDEs (like the community version of PyCharm I've heard is good), though I usually just use Notepad++.
            
            Here is a download link for Notepad++:
                
            https://notepad-plus-plus.org/download/v7.3.3.html
        
        ( To see more on how to use TriGen syntax, etc. Read the 'Guide To Using TriGen.txt' file which documents the basics. )
        
        c. In command prompt, now type in 'python my_map.py output_of_my_map.txt' and hit enter.
        
        d. Now open up 'output_of_my_map.txt' or whatever you called it, and copy paste those into your map on SCMDraft.
        
        
Thanks for using TriGen!!

If you have any questions, direct them to Zoan on Staredit.net, or one of the UMS Discord channels or something.       
        
        
        
        
        
        
        
        
        
        
        
        
        