Class System support sript errors

Hellow again RPG Maker forums! I'm having a small issue with a Script i'd like to use, but i'm getting some sort of Syntax error on line 39:

"Unknown regexp options -wap"

Here is the script in question: http://pastebin.com/9GP3iwUK

And as instructed I have it put just below Yanfly's Class system script, I mostly just need this script to allow sub classes to gain exp.

Thank you for reading, and any and all help with this!
I've moved this thread to RGSSx Script Support (VX Ace Scripts is for scripts you have written and are sharing). Please be sure to post your threads in the correct forum next time. Thank you.


Have you pasted the script into your project EXACTLY as per the original? Can you provide the exact and complete error message? It should have a script name in there somewhere as well.


Line 39 of the script you linked to is a comment line, so could not possibly generate an error unless you'd modified it in some way. Make sure line 1 says =begin with no spaces in front of it, and there is no =end (again with no spaces in front of it) until line 171. But again, if the =begin was not correctly on line 1, I'd expect a lot of errors prior to reaching line 39.


-wap is not even IN that script. I suspect you have the wrong script.


When you confirm which script is in error, it would be great if you can link to a forum thread or blog entry where the script is shared, not straight to the pastebin, as sometimes reading discussion between the author and users can shed some light on issues too.
Thank you Shaz, I'll keep all of that in mind for the future, and i'll get that error for you now too.

Script 'class system support' line 39: SyntaxError occurred.
unknown regexp options -wap

=begin was spaced in 2 and so I moved it back to the end and got another error:

"Script 'class system support' line 446: SyntaxError occurred.
embedded document meets end of file"
There aren't even 446 lines IN the script. You must have made changes to it after importing.


Find the line that says =end - in pastebin it's line 171. Make sure it isn't also indented.


=begin and =end MUST be at the very start of the line - no space in front.


It may not be a bad idea for you to just delete the script and reimport it, without making ANY changes.
Well I didn't change it o-o;; I mean I have no reason to do so, all I need the script for is to allow sub classes to get exp o-o
If the script in pastebin has 443 lines, and you're getting an error on line 446 of the script, then what's in your project is not the same as what's in pastebin. Even if the difference is a few extra blank lines added here or there. The fact that =begin was also indented supports this too.


Was =end indented?
Well, I was using the one on top, when I witched to the one on the bottom it worked, was the one on top just all instruction?
They're the same script, in different formats. They both contain 443 lines. You shouldn't have a case where one works but the other doesn't.


When you copy a script from pastebin, you're better off selecting the link at the top that says RAW, selecting everything on the page that opens, and copying that, then pasting it into your script slot. Try doing that, and get rid of the other version(s) of this script that you have, to see if it makes any difference.


Or are you saying it's working now?
Yeah it works fine, so if you're saying they are EXACTLY the same.... well now i'm back to being confused again :/
Asside from that, as bonus help, I have Yami's equipable passive skill  script, and am looking to make a passive skill that directly affects stats,
I'm still learning to use this script right do you have any idea how to do this?

Original thread: https://forums.rpgmakerweb.com/threads/class-system-support-sript-errors.21519/