QUOTE(AqoTrooper @ Jul 1 2005, 04:02 AM)
Come on people, do you even know what does the term 'programming language' means?
Making starcraft triggers does not equles programming.
When using Staredit, you use a Wizard program, when using Starforge or the trigger plug in SCMDraft 2, you fill in the blanks for an existing C++ code, none of those are programming.
[right][snapback]249740[/snapback][/right]
Sure Triggers are programming. It's set up the same way
CODE
CONDITIONS:
-Always.
ACTIONS:
-Modify resources for Current Player: Set to 50 Ore.
That is very simple C++ code if it was C++
Example from "Teach yourself C++ in 21 Days":
CODE
#include <iostream.h>
int main()
{
int counter;
cout << "How many hellos? ";
cin >> counter;
do
{
cout << "Hello\n";
counter--;
} while(counter >0 );
cout << "Counter is: " << counter << endl;
return 0;
}
To put it into context of SC, it would be this:
CODE
#include <iostream.h>
int main()
{
int minerals;
while (minerals = 0);
cout << "Giving player minerals....\n";
do
{
minerals++;
}
while (minerals < 50);
cout << "Minerals are: " << minerals << endl;
return 0;
}
They are the same because of this:
CONDITIONS:
-Always.
In C++, while(minerals < 50);
ACTIONS:
-Modify resources for Current Player: Set to 50 Ore
In C++, do { minerals++; }
So really, SC Triggers are way of programming, but the code is already built in