Code: Select all
mesn; // NPC Name in between square brackets
mesq "string 1"; // Dialog line 1
next;
mesq "string 2"; // Dialog line 2
next;
mesq "string 3"; // Dialog line 3
Code: Select all
speech "string 1",
"string 2",
"string 3";
We improved that function with some bit flags to carry some cosmetic settings.
e. g. from the doc:
Code: Select all
If first arg is a number N, then it represents bit flags.
Bit flags :
0x1 -- blank line at beginning
0x2 -- blank line at the end
0x4 -- use last "next;"
0x8 -- don't use first "mesn;"
IMO it's not easy to learn how to script with all of these bit flags, and I must admit that I sometimes look at our documentation as I forget what some flags mean... So it's why I opened this thread.
What should we do to make it easier for new or casual scripters?
Should we use constant names instead of values?
Should we change these functions?
Something else?