Non-threaded

Forums » Advanced Editor Forum » Read Thread

Get help from the experts on variables, scripts, items, and other scary things.

How to Comment

11 years ago

How do you put a comment to yourself/coauthors in the scripting area?

How to Comment

11 years ago

Put a hash before a comment line.

How to Comment

11 years ago

Thanks.

How to Comment

11 years ago

I can't make that work for some reason... Galo - can you give an exact example? Like -

#the system will Ignore this#

How to Comment

11 years ago

#The system will ignore this. This is shown in the scripting reference guide by alexp. I haven't #tested this. You have to put this before every line, I think.

How to Comment

11 years ago

Darn - I tried it in my test story and it's blowing up with an End Of Field (EOF) Error...

How to Comment

11 years ago

Incidentally, I was able to make a %NOTE Variable and use that in Scripting as a sort of Cheat Way to do it...

For Example:

%NOTE := "This is my Comment"

How to Comment

11 years ago

I got that error, but when I put some code after the comment it worked..but if I have code before the comment but not after it, then it has a EOF error.

How to Comment

11 years ago

Ah - I'll have to try that =)

How to Comment

11 years ago

Yep - that works! Thanks Galo for the Clarification ^v^

My Script BTW -

#Nothing to see here
%NOTE := "This is my Comment"
 

How to Comment

11 years ago

From memory, if you want to comment on the same line as script, you use two slashes, like this:

%HEALTH := %HEALTH + 5 // increasing health by 5

Like I said, that's from memory so I could be wrong. Try it out. Also I think the following works:

%HEALTH := %HEALTH + 5
/* this is a multi line
comment, in fact everything within
the slash-asterisk and asterisk-slash
is part of a comment and will be
ignored by the storygame engine */
%INTIMIDATE := 17

How to Comment

11 years ago

That's handy too - I'll have to try it out  =)

How to Comment

11 years ago

Interesting, scripting seems to have both C++ and Python style commenting...

How to Comment

11 years ago

Unfortunately, both don't seem to not work.

How to Comment

11 years ago

What?!? That's a Double-Negative...  XD

How to Comment

11 years ago

Whoops.

How to Comment

11 years ago

And yet the question remains unanswered... XD