|
Post by Kawika on Aug 31, 2015 5:42:23 GMT
Below are a few things I recommend when putting together a lot of scripts.
1) Make folders! This is a short and easy way to keep all your scripts organized in a neat manner. It's very simple to create a folder. All you have to do is put a \ (Backslash) in the name. NOT A FORWARD SLASH (/) For example, NPC\Bob the Builder This will make it so all your scripts that start with "NPC" will be in a folder. You can also use the same method to create folders within folders. NPC\Bob the Builder\Initial Question This will put a sub-folder inside the NPC folder.
2) Make Comments! This will help if you are new to scripting and need an easy way to remember what something does, or if you're making a massive script and want to separate parts so that you know where to make changes. It's very simple to do. All you do is put // within your script somewhere. This will not be registered as an actual function, and will not change your script in any way. It's kinda like putting a sticky note in your notebook. Example If HasHistory (Pineapples) (player) (>) (1191651915189698711984191) //This checks to see if they have a count of 1191651915189698711984191 pineapples. Then etc.
Hope these help!
|
|