How to write comments inside code?
Mareus
30 Aug 2014, 19:43I am wondering if there is some way of adding short comments while I am coding. As my game grows, I am having a hard time keeping up with what certain codes do, so I would like to add a little comment that does not show in game, but would help me a lot of keeping track of what I did and why. Is there something like that in quest?
Thanks in advance. You guys have been very helpful so far.
Thanks in advance. You guys have been very helpful so far.

jaynabonne
30 Aug 2014, 21:36Within scripts, you can have full line comments preceded with //. For example:
Stuff like that...
You can use standard XML comments as well in the file proper, but they only really work within libraries. The Quest editor strips them out when it loads and saves your main game file.
// Move the player to the new room
game.pov.parent = limbo
// Give the player an apple
apple.parent = game.pov
Stuff like that...
You can use standard XML comments as well in the file proper, but they only really work within libraries. The Quest editor strips them out when it loads and saves your main game file.