General Help with Yanfly Plugins And JS

Status
Not open for further replies.

LuLingqi1

A Spellthief With A Bone To Pick
Veteran
Joined
Jun 23, 2016
Messages
175
Reaction score
66
First Language
English
Primarily Uses
N/A
In yanfly's codes and stuff to copy and paste, there are sometimes things like


" // This will increase the actors mp "


Which is jsut explaining what the current line of code is going to do. Do i need to erase these or will the code work fine with them still there?
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,528
Reaction score
14,261
First Language
English
Primarily Uses
RMVXA
Anything with the // in front of are called comments, and can be erased as long as you only erase the comment part. But it is advised that you do NOT do that, as uncommented code is very hard to read and understand later down the line.


Plus, if you don't know JavaScript you might accidentally erase a key part of the code. I'd recommend only even considering this if you know JavaScript. Else, edit at your own risk.
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,434
Reaction score
7,713
First Language
German
Primarily Uses
RMMV
additionally, erasing comment lines will also change the line numbering, and can lead to confusion on error messages when the line with the error is no longer on the same line number it originally was.
 

LuLingqi1

A Spellthief With A Bone To Pick
Veteran
Joined
Jun 23, 2016
Messages
175
Reaction score
66
First Language
English
Primarily Uses
N/A
@bgillisp & @Andar, so then I don't have to erase them, and you're both advising me not to erase them at all?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,434
Reaction score
7,713
First Language
German
Primarily Uses
RMMV
exactly - you should not change anything in script or plugins unless it's an official configuration option.
 

LuLingqi1

A Spellthief With A Bone To Pick
Veteran
Joined
Jun 23, 2016
Messages
175
Reaction score
66
First Language
English
Primarily Uses
N/A
@Andar Alrighty. Cool. Thanks guys. You can close this thread now c:
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,528
Reaction score
14,261
First Language
English
Primarily Uses
RMVXA
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,048
Messages
1,018,543
Members
137,834
Latest member
EverNoir
Top