################################################
#         Trigger Compiler v1.0 beta2          #
#   (C) Copyright David "Moneran" James 1998   #
################################################ 
# License Agreement:                           #
# This code may not be distributed in any way  #
# other than in its complete, unmodified form  #
# without express permission from David James  #
################################################
# That also means that you can't use code      #
# from this program in your own programs.      #
# E-mail David James at beta@home.com, and he  #
# will consider letting you use the code.      #
################################################
# Suggestions? Bugs? Want to write your own    #
# features?  E-mail me at beta@home.com        #
################################################
Possible features in future:
1) Windows Interface
2) Importing and exporting directly with scums
3) Compiled from Perl into a C++ EXE
If you can help me with any of these, please e-mail me! (beta@home.com)


How to use the trigger compiler:

TRG2TEXT: Converts trigger (.trg) files into text files.
Usage: text2trg input_trigger.txt output_file.trg [-d]
input_trigger.txt -> Your text file with triggers typed into it
output_file.trg -> Your output trigger file
-d -> Use -d to debug the program

TEXT2TRG: Converts text files into trigger (.trg) files.
Usage: text2trg input_trigger.txt output_file.trg [-d]
input_trigger.txt -> Your text file with triggers typed into it
output_file.trg -> Your output trigger file

Simplifying expressions:
(ADVANCED users only)

Using "equalities"
Instead of:
Player 1 has 1 or more kills
Player 1 has 1 or less kills
Add 30 resources of type ore

Player 1 has 2 or more kills
Player 1 has 2 or less kills
Add 30 resources of type ore

Use:
Player 1 has 1 kills
Add 30 resources of type ore

Player 1 has 2 kills
Add 30 resources of type ore

Simplify it even further using for loops:

Instead of a number, use [starting value..ending value,increment]

After:
Player 1 has [1-2,1] kills
Add 30 resources of type ore

Then if you want to expand it to 1-300 kills, giving points every 5 kills, use:

Player 1 has [1-300,5] kills 
Add 30 resources of type ore


