YEA Class System + Luna Engine?

Like the topic says, I'm trying to get the YEA Class System to work (so that I not only have an efficient way to allow for class choice and management, but also to use subskills that allow you to equip other weapons and use certain skills), but I'm also using Luna Engine and the "Class" option just plain won't show up on the command menu. I've set the Class System script properly so that it should always show up, but I still can't get it working.

The most progress I made was with this:

  1. { :push => 10,
  2. :name => "Class",
  3. :icon => nil,
  4. :type => 1,
  5. :type_sym => :class,
  6. :actor_sel => false,
  7. :nabl_type => 0,
  8. :nabl_sym => nil,
  9. :appear => true,
  10. },

But I'm obviously not doing anything right there. Class shows up in the menu once I do this, but it's clearly not calling up the menu that YEA Class System uses to allow the user to actually use it.

Honestly I'm having a really hard time using much in conjunction with the Luna Engine, and I guess that's just going to be the standard. Anything that adds functionality is causing me grief because it either hardly works with the way Luna Engine and YEA Battle Engine affect UI. For example someone helped me out and wrote a script that allows you to choose which of two equipped weapons you want to attack with, and I got it working, but how would I ever adjust anything regarding the UI of that weapon choice popup message? For as "easy" as Luna Engine is meant to be, it's surprisingly difficult to figure out where you need to go to edit certain things, and how.

I'm getting off the point though. Basically I'm just confused on whether YEA Class System and Luna Engine are compatible, what I'm doing wrong, and if I can do something to make them work together.

Thanks!
Luna Engine can only modify what is existing and what is connected to it in the complete project. It is impossible for Luna Engine to predict custom menu windows for obvious reasons. It's easy but it doesn't mean you can suddenly modify all windows of an existing script with just adding configurations. That's not how it works.
Luna Engine can only modify what is existing and what is connected to it in the complete project. It is impossible for Luna Engine to predict custom menu windows for obvious reasons. It's easy but it doesn't mean you can suddenly modify all windows of an existing script with just adding configurations. That's not how it works.



I don't think you understood the point of my post. I didn't expect to have some easy setup to modify the windows that the custom script brought up, I just didn't expect Luna to STOP the custom script from showing up. The menu command to change class just plain doesn't show up with Luna Engine. I wasn't talking about changing the visuals of the class change menu via Luna Engine, I just didn't understand why the menu option refuses to show up.


I ended up using a script line in events to force the class menu to pop open, which works just fine for me, but it's still an odd problem that I've seen other people mention as well. It seems like any scripts that add a new option to the command menu just... don't add the option to the command menu when Luna Engine is being used as well. I don't understand how to get around that issue.
I don't think you understood the point of my post. I didn't expect to have some easy setup to modify the windows that the custom script brought up, I just didn't expect Luna to STOP the custom script from showing up. The menu command to change class just plain doesn't show up with Luna Engine. I wasn't talking about changing the visuals of the class change menu via Luna Engine, I just didn't understand why the menu option refuses to show up.


I ended up using a script line in events to force the class menu to pop open, which works just fine for me, but it's still an odd problem that I've seen other people mention as well. It seems like any scripts that add a new option to the command menu just... don't add the option to the command menu when Luna Engine is being used as well. I don't understand how to get around that issue.



Let me rephrase my answer then,


Luna didn't stop the custom script from showing up, you are using a part of Luna Engine (In this case, Menu Command by CP) which stops it from appearing because it's no longer the default 'Window_Command menu. The Yanfly script is not part of the default or something that isn't super vital for a game. Either remove that or go with our sample demos and go through Lunatic mode to understand how to do script calls for certain scenes. I'm pretty sure CP's instructions also tell you to add a certain script call for certain custom menu scripts as well. Which something over here:

Code:
:appear     => "$TEST",
Code:
you have to replace "$Test" with the proper script call for the menu.
Let me rephrase my answer then,


Luna didn't stop the custom script from showing up, you are using a part of Luna Engine (In this case, Menu Command by CP) which stops it from appearing because it's not part of the default or something that isn't super vital for a game. Either remove that or go with our sample demos and go through Lunatic mode to understand how to do script calls for certain scenes.



So Menu Command CP is what's blocking any other scripts from adding entries to the menu? It's easy enough to add a new entry to the menu there, but I'm just foggy on where the script call would fit into the new entry.

Code:
SceneManager.call(Scene_Class)



That's the call I'm using via events to bring the class menu up (and is honestly probably the way I'll keep it, since it allows too much freedom to be able to change classes anytime in my opinion), but just for the sake of knowing how to deal with this situation the next time I'm trying to add a custom menu entry, where would the script call for the custom scene go in the new Command CP entry, like this:


{   😛ush       => 10,
            :name       => "New Entry",
            :icon       => nil,
            :type       => 1,
            :type_sym   => :something,
            :actor_sel  => false,
            :nabl_type  => 0,
            :nabl_sym   => nil,
            :appear     => true,
        },




If it's just a matter of using the script call, it should be simple, I'm just not sure where you'd put that.
it's in appear. He has an example and where I edited my post to guide you through it.
it's in appear. He has an example and where I edited my post to guide you through it.



Okay, I thought appear simply determined whether the option showed up on the menu or not, and that the script call literally brought the window up (since that's what it does in events when I use it). So if I simply put the script call in the appear line, it will refer to the way the YEA Class System handles the visibility of the Class menu option? Because it handles it where you can either have the option toggled on by default, or handled via a switch.


And in that case, what would go in the type and type_sym lines in this situation?
Wait, here go with this. I haven't use Luna for a while now.

Code:
        {  	    :push       => 10,
	            :name       => "Class",
	            :icon       => 495,
	            :type       => 2,
	            :type_sym   => :Scene_Class,
	            :actor_sel  => false,
	            :nabl_type  => 0,
	            :nabl_sym   => nil,
	            :appear     => true,
	        },

Code:
 [IMG]http://i.imgur.com/W1WwlWh.png[/IMG] 
  [IMG]http://i.imgur.com/hCkoInw.png[/IMG]
Wait, here go with this. I haven't use Luna for a while now.

Code:
        {   :push       => 10,

	            :name       => "Class",

	            :icon       => 495,

	            :type       => 2,

	            :type_sym   => :Scene_Class,

	            :actor_sel  => false,

	            :nabl_type  => 0,

	            :nabl_sym   => nil,

	            :appear     => true,

	        },



Ohh, that makes more sense. So "type_sym" the line that refers to the scene. Icon doesn't matter I assume? I'm still unclear on the exact nature of the "type" line, but I guess trial and error works fine there, and it looks like any new menu options that bring up a new scene will always be 2, since 1 has to do with selecting a choice off of a scene menu or something.
0 is based on a symbol like :game_end that is part of the default. Like it just runs a process.


1 is basically summoning a menu without closing Scene_Menu


and 2 is disposing Scene_Menu and then call the new menu.
0 is based on a symbol like :game_end that is part of the default. Like it just runs a process.


1 is basically summoning a menu without closing Scene_Menu


and 2 is disposing Scene_Menu and then call the new menu.



Guess I'll just have to figure it out as I go. Thanks for the help, I think I should have no problem adding menu options now, as long as I can figure out what the script call is for them.

Original thread: https://forums.rpgmakerweb.com/threads/yea-class-system-luna-engine.54428/