CGMV Professions

CGMV Professions
By: Casper Gaming
Last Update: 7/2/2018
Latest Version: 1.2
​
dxEPbU0.png

This plugin allows you to implement a profession or skill system in your game. Professions can level up/down with experience awarded via plugin commands, or via other plugins that interact with this one.
nlUIeRv.png

- Professions / skill system
- Earn experience, level up professions through easy-to-use event commands
- Unlimited professions
zvfGt10.png

Spoiler
yQ2oIOt.png

voK3J2A.png
lWNLTGy.png

Import into plugin manager and enable the plugin. Some set up may be required.
3AzjNYV.png

Plugin (along with all my other plugins) can be found here: https://www.caspergaming.com/plugins/cgmv/professions/
Requires CGMV Core, which can be found here: https://www.caspergaming.com/plugins/cgmv/core/
l8DkDBW.png

http://caspergaming.com/terms-of-use/
KbfnB7j.png

Spoiler: Version History
Version 1.0 - Initial Release

1.1:
- Added support for CGMV Achievements

1.2:
- Fixed some default values for plugin parameters
- Added ability to not use an icon for a profession. An Icon Index of -1 means the icon will not display.
Small update today. If you plan to make profession achievements, please also update my achievement plugin as well.

1.1:
- Added support for CGMV Achievements
Hi!

Using MV 1.6.1 I get the following error message when I use CGMV Core and Professions and try to start the game:

SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at CGMV_Profession.initialize (CGMV_Professions.js:211)
at new CGMV_Profession (CGMV_Professions.js:199)
at CGMV_Core.initializeProfessionData (CGMV_Professions.js:383)
at CGMV_Core.createPluginData (CGMV_Professions.js:373)
at CGMV_Core.initialize (CGMV_Core.js:325)
at new CGMV_Core (CGMV_Core.js:319)
at Function.DataManager.createGameObjects (CGMV_Core.js:606)
at Function.DataManager.setupNewGame (rpg_managers.js:217)
at Scene_Boot.start (rpg_scenes.js:402)

If I disable CGMV Core then the game loads but of course the Professions plugin doesn't work. What could I do?

Thanks!
Thanks for bringing this to my attention.

That JSON Parse error would mean something has gone wrong while parsing the parameters set up for the professions. It's hard to know which one is the issue, but I have updated the plugin since there were some missing default values for some parameters which may have caused it. Please redownload it and let me know if fixed.

If still having the same problem after updating, could you please go to Plugin Manager -> CGMV_Professions -> Professions (parameter) -> Text and copy what you see and post it here?

Version 1.2 changes:
- Fixed some default values for plugin parameters
- Added ability to not use an icon for a profession. An Icon Index of -1 means the icon will not display.
Thank you for being so quick!

It works now. Also when I wrote my post, I did not set any icon, description and color. By default these are empty and that causes the problem. When I click on description or color and then hit Enter, it changes to "" and [], respectively.

So it says
Code:
{"Name":"Woodcutting","Discovered":"true","Level":"1","Max level":"20","Use Experience Curve?":"true","Experience Curve":"[30,20,30,30]","Icon":"","Color":"","Description":"","Toast Sound Effect":""}

instead of
Code:
{"Name":"Woodcutting","Discovered":"true","Level":"1","Max level":"20","Use Experience Curve?":"true","Experience Curve":"[30,20,30,30]","Icon":"0","Color":"[]","Description":"\"\"","Toast Sound Effect":""}

Edit: I don't know if this is intentional, but although I set a profession's "discovered" to "false", it still shows up on the Professions scene.

Edit2: I can hide the profession with the plugin command but the total level counter is a bit off. My profession has a level cap of 20 and I am on level 1. When I hide the profession, the plugin subtracts the 20 from the maximum level, but it doesn't subtract the 1.

So if my total level was 5/100, it doesn't show 4/80 but rather 5/80. Is there a way to fix this? Thanks a lot! Sorry for writing so much :\

Edit3: Oops, now I see that my first point was actually fixed in version 1.2. My bad.
Must have been something I overlooked! I updated it again, let me know if that fixes the issue.
Everything works great now, thank you very much! 🙂
How can i make a event that check the user profession level?
You can use the script command:

$cgmv.getProfession("YOUR PROFESSION NAME HERE")._level
Thanks a lot! Loved your plugins :ehappy:
@casper667
Is there any way to add profession exp by using scripts instead of plugin commands?
Would love to see a list of available script commands.
I'm using your Toast plugin but I frequently use random numbers for items received. Is there a way to reference a variable in a toast popup?

Original thread: https://forums.rpgmakerweb.com/threads/cgmv-professions.95897/