So Wormer, what does the language look like? Is it like:
Well, Falkoner, I haven't got much time to describe it in all details now, but in general it is SCMD-like triggers synthax:
TRIGGER
OWNERS: @P(1)
CONDITIONS:
Always()
ACTIONS:
PreserveTrigger()
Wait(0)
ENDT
However it is typized language. For example you can't simply specify the integer number one in the OWNERS section. Inbuild operator @P constructs a player from the number one, the same applies for units, locations and etc.
You can define variables to use them in your triggers.
PLAYER p = @P(1)
INTEGER n = 1000
The language allows you easily multiplie triggers. One can specify binary countoffs like this:
UNIT dc = @U("Terran Marine")
INTEGER nMaxDeg = 16
// count down values
FOR i = nMaxDeg TO 0 BY -1 DO
TRIGGER
OWNERS: @P(1)
CONDITIONS:
Deaths(@CurrentPlayer, @AtLeast, 2^i, dc)
ACTIONS:
PreserveTrigger()
SetDeaths(@CurrentPlayer, @Subtract, 2^i, dc)
ENDT
ENDL
There is a number of other features.
I could write a Notepad++ file for it if it is, I've been wanting something like that.
Thanks, I already have a Notepad++ synthax. There is a link to the archive at warbox. Have a look at it.
I just don't want to spam the ladder again
Let's move the discussion to warbox forums:
Edit:Well, I
think I can do something like the natural language synthax if it is really nessecary. But I just think it is simplier to write triggers in function-notation...
PLAYER Player1 = @P(1)
UNIT Marine = @U("Terran Marine")
TRIGGER
OWNERS: Player1
CONDITIONS:
Player1 brings @AtLeast 4 Marine to @Anywhere.
ACTIONS:
Kill @All @Men at @Anywhere for Player1.
ENDT
Post has been edited 3 time(s), last time on May 6 2008, 10:23 am by Wormer.
Some.