CGMV Professions

casper667

Veteran
Veteran
Joined
Mar 15, 2012
Messages
60
Reaction score
75
First Language
English
Primarily Uses
RMMV
CGMV Professions
By: Casper Gaming (Casper667)
Last Update: 7/2/2018
Latest Version: 1.2


Introduction
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.

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

Screenshots


How to Use
Import into plugin manager and enable the plugin. Some set up may be required.

Plugin
Plugin (along with all my other plugins) can be found here: http://caspergaming.com/dev/cgmv/#professions
Requires CGMV Core, which can be found here: http://caspergaming.com/dev/cgmv/#core

Credit & Terms
http://caspergaming.com/dev/terms_of_use/

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.
 
Last edited:

casper667

Veteran
Veteran
Joined
Mar 15, 2012
Messages
60
Reaction score
75
First Language
English
Primarily Uses
RMMV
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
 

dyoghenes

Veteran
Veteran
Joined
Jul 14, 2014
Messages
32
Reaction score
4
First Language
Hungarian
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!
 

casper667

Veteran
Veteran
Joined
Mar 15, 2012
Messages
60
Reaction score
75
First Language
English
Primarily Uses
RMMV
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.
 

dyoghenes

Veteran
Veteran
Joined
Jul 14, 2014
Messages
32
Reaction score
4
First Language
Hungarian
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.
 
Last edited:

casper667

Veteran
Veteran
Joined
Mar 15, 2012
Messages
60
Reaction score
75
First Language
English
Primarily Uses
RMMV
Must have been something I overlooked! I updated it again, let me know if that fixes the issue.
 

dyoghenes

Veteran
Veteran
Joined
Jul 14, 2014
Messages
32
Reaction score
4
First Language
Hungarian
Everything works great now, thank you very much! :)
 

magoale1

Warper
Member
Joined
Jan 6, 2014
Messages
2
Reaction score
2
First Language
Portuguese
Primarily Uses
RMMV
How can i make a event that check the user profession level?
 

casper667

Veteran
Veteran
Joined
Mar 15, 2012
Messages
60
Reaction score
75
First Language
English
Primarily Uses
RMMV
You can use the script command:

$cgmv.getProfession("YOUR PROFESSION NAME HERE")._level
 

magoale1

Warper
Member
Joined
Jan 6, 2014
Messages
2
Reaction score
2
First Language
Portuguese
Primarily Uses
RMMV
Thanks a lot! Loved your plugins :ehappy:
 

elsingaa

Warper
Member
Joined
Feb 9, 2017
Messages
1
Reaction score
0
First Language
Dutch
Primarily Uses
RMVXA
@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.
 

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

Latest Threads

Latest Profile Posts

40 card deck size, the plugin seems more sluggish.
Village theme I composed for a commission!
Stream will be live shortly with some Haunting Ground! Feel free to drop by!
welp, the stock market went down by 7% because of corona today. Time to buy stocks?

Forum statistics

Threads
94,563
Messages
921,921
Members
124,429
Latest member
sheepman
Top