Part7 sample DSA code "MTA"

Summary

bulletParsing "MTA"
bullet"M" is the operator.
"T" and "A" are parameters.
bulletYou always check the reference to write DSA program, also trial and error.

"MTA" meaning

"M" means "standard Message".
"T" means message type "Toggle".
"A" means message target is pointed by "Parameter A".

"MTA" is converted into "MT". because "A" is default parameter, it is just omitted.

Reference?

Currently 2 or 3 sources available

bulletReference by Paul Stevens:
bulletSite:
DSA for Dummies
http://www.dianneandpaul.net/CSBwin/documentation/DSA_Index.html
bulletCSBuild built-in help:
See Appendix: DSA syntax help in CSBuild.
bulletReference by kentaro-k.21 (available at this site):
bulletSite:
DSA Reference
http://kkdf2.sakura.ne.jp/danmasu-lj/Contrib_08/syntax.htm

Note: most part of my reference is rewrite from Paul's reference.

How do you explain "MTA" with reference?

From my reference, look at Operations syntax section in DSA reference.

"2. standard Message" is that.

[<next state>] "M" [<delay>] <message type> [<target>]

This representation is formatted by quasi BNF syntax. (See also: http://en.wikipedia.org/wiki/Backus-Naur_form)

'next state' parameter

<next state> is omittable because enclosed by "[" and "]". So, it is omitted. By omitting, running is continued at current state.

'delay' parameter

<delay> is also omittable. By omitting, no delay occurs.

'message type' parameter

<message type> is message type. Select one of "N" / "S" / "C" / "T". You cannot omit it.

<message type> :: = "N" | "S" | "C" | "T"

default is S
N means do nothing
S Set
C Clear
T Toggle

'target' parameter

<target> specify message's destination. You can omit it.

In our case, "Parameter A" points the door. We placed a DSA actuator with such a parameter. So, use "A".

But "A" is default selection according to grammer description. So CSBuild may omit "A", you'll see only "MT" in next editing time.

<target> :: = "A" | "B" | "*" | <absolute location>

default is A
A means use first actuator parameter
B means use second actuator parameter
* means use <location> from stack
  pos:2; level:6; x:5; y:5

Further DSA programming resource?

bulletRain` has posted some DSA samples can be run immediately with CSBwin.
But their useful samples seem to be off-line for now.

Sample DSA and CSbuild bug report
http://www.dungeon-master.com/forum/viewtopic.php?p=38984#38984

 

 

Appendix: DSA syntax help in CSBuild

Launch CSBuild.

Click "Edit DSA", and find the following widow, then click "Help" button.

You'll get next window. Copy this text, and have your own text for easy reference.