Help - Search - Members - Calendar
Full Version: Yanfly Engine Melody- Battle Engine Melody IV problem
RPG RPG Revolution Forums > Scripting > Script Development and Support > RGSS2
blademage1234
Hi, I've been a member for a long while but have solved most scripting issues by myself or by reading posts that
have been solved before.
I couldn't find this error occurring before...
The issue occurs in the script YEM Battle Engine Melody IV
the part that deals with visual aspects of a battle.
I think there is a conflict with a common event that I have created.
here is the part of the script giving me the issue.
Line 649 of the script return character.origin_x
So it's probably really obvious and easy to fix, but I'm a scripting noob.
I'll explain the scenario in which the conflict occured below.
I transformed my character Click to view attachment
I then entered battle and attempted to transform back into human
this error occured
No Method Error occured
undefined method 'origin'_x' for nil: NilClass
I'm thinking it doesn't like changing the character graphic in the middle of batle but that is extremely important for my game.
If anyone knows how I might be able to fix this or any pointers or help is much appreciated.
Thank You !
Zortik
I'm just going to venture a guess here, and I'm sorry in advance if this is a waste of your time. But, I believe you have the returning to human form on the wrong Else line. It should be on the one just below that. Also, uncheck initialize unless you planned it that way. smile.gif

I certainly hope this helps, but I could very easily be wrong.
blademage1234
Hey Zortik, thank for the help, but the event worked before I incorporated yanflys engine into my game tongue.gif
I didn't notice the initialize thingo though, so thanks for that tongue.gif I feel sorta stupid not noticing that.
I believe it is part of the script because the debugger says there is a problem with the bit about origin, perhaps because of the way yanflys script sets skills and items to have effects and things most would probably use a skill to transform a party member and not an item like I have, so I'm thinking that perhaps yanflys script is not cooperating with my common evnt because it is attached to an item and not an ability or skill .
blademage1234
BUMP!
blademage1234
Hi Twilight, thankyou.
I remember seeing the script before, I had hoped I wouldn't have to use it however it may very well
turn out to be a good idea.
Thank You !

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.