- Joined
- May 15, 2012
- Messages
- 14,682
- Reaction score
- 3,003
- First Language
- Tagalog
- Primarily Uses
- RMVXA
Modules (or their properties/attributes/variables etc) seem to be not capable of recognizing things below it when setting up constants (at least that's where I encounter problems).
This is important for some things like XS Menu for example which uses a module for setting up it's menu list (directly declaring a Scene name inside the module). Because of this behavior, all custom scenes that you will call via XS menu must be above it else it will return an error because it will try to find the scene inside the module. It's actually because of this script that I remembered that modules seem to work that way.
I'm not sure of any other script out there that is afflicted with that problem but I think it's for the benefit of everyone to remember this behavior of modules.
This is important for some things like XS Menu for example which uses a module for setting up it's menu list (directly declaring a Scene name inside the module). Because of this behavior, all custom scenes that you will call via XS menu must be above it else it will return an error because it will try to find the scene inside the module. It's actually because of this script that I remembered that modules seem to work that way.
Code:
#this returns an error when the custom scene script was below xailmodule somemoduleMENU_BLAH = [BLAH,Scene_Custom_Scene]end#But it now works when the Custom Scene script was placed above XAIL
Last edited by a moderator:

