Thread: Door Scripts
View Single Post
  #23  
Old 07-13-2004, 09:41 PM
Silver Knight Silver Knight is offline
The Ice Cream Social
Silver Knight's Avatar
Join Date: Jun 2001
Location: SoCal
Posts: 541
Silver Knight is on a distinguished road
Send a message via AIM to Silver Knight
Nonono.
I didn't mean read by the player.
The NPC won't read that part, and thus won't think it's a command.
Those // are for putting comments in the script like
Ex:
this.speed=2 //Change this number to increase or decrease speed.

See, they are for other scripters so that they can understand your script, and help you fix any bugs in it, etc, with less hassle.

Edit:
/* and */ Work to block of a large section of code. Like in the following example:
NPC Code:
/* Hello and welcome to my script!
It may be buggy, but atleast it is well commented!
*/



I think this may be going over you head, so please do read Kaimetsu's Coding Standards and read through your npcprogramming file.
__________________