casper667

Casper Gaming
Veteran
Joined
Mar 15, 2012
Messages
325
Reaction score
442
First Language
English
Primarily Uses
RMMZ
CGMV Professions
By: Casper Gaming (Casper667)
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

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

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

Casper Gaming
Veteran
Joined
Mar 15, 2012
Messages
325
Reaction score
442
First Language
English
Primarily Uses
RMMZ
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
55
Reaction score
15
First Language
Hungarian
Primarily Uses
RMMZ
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

Casper Gaming
Veteran
Joined
Mar 15, 2012
Messages
325
Reaction score
442
First Language
English
Primarily Uses
RMMZ
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
55
Reaction score
15
First Language
Hungarian
Primarily Uses
RMMZ
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

Casper Gaming
Veteran
Joined
Mar 15, 2012
Messages
325
Reaction score
442
First Language
English
Primarily Uses
RMMZ
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
55
Reaction score
15
First Language
Hungarian
Primarily Uses
RMMZ
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

Casper Gaming
Veteran
Joined
Mar 15, 2012
Messages
325
Reaction score
442
First Language
English
Primarily Uses
RMMZ
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.
 

Xina

Villager
Member
Joined
Feb 23, 2019
Messages
29
Reaction score
5
First Language
English
Primarily Uses
RMMV
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?
 

Latest Threads

Latest Profile Posts

gotta love when a plugin you thought had nothing to do with why something else wasn't working winds up being the issue...
Doing RPG Maker News for 26th September 2021

Well... it's been a while since I was last here :kaoswt: I don't want to say I'm officially 'back' yet, but I've recently started working with RM again, so I might become active here again :kaohi:
Mmmm I love Coca Cola candy! :kaoluv:
aaaand my power is out. I sometimes think that I'm cursed.

Forum statistics

Threads
115,394
Messages
1,089,543
Members
150,132
Latest member
pipgea
Top