Charas-Project

Game Creation => Requests => RPG Maker Programming => Topic started by: inquisitorone on June 07, 2010, 02:08:19 AM

Title: Event Script Help Needed (RMK 2003)
Post by: inquisitorone on June 07, 2010, 02:08:19 AM
Hello, I've just made an attempt at eventing a character's "battle animation changer" for RPG Maker 2003. However, whenever I implement the code, I get an error stating that my script uses an "item which does not exist."

I don't really know where I went wrong, but I'm using variables to store the character's equipped items as I change their class, and using variables to re-equip said character.
Does anyone have any help to offer? I would be much appreciative if so!

Here is a screenshot of the current, non-functioning script:
(http://i326.photobucket.com/albums/k435/inquisitorone/script.png)

Title: Re: Event Script Help Needed (RMK 2003)
Post by: Prpl_Mage on June 07, 2010, 07:23:49 AM
Is it possible to see the entire event page?
Title: Re: Event Script Help Needed (RMK 2003)
Post by: A Forgotten Legend on June 07, 2010, 12:44:05 PM
Well, did you make sure all the items you are reference exist?  Did it work before?
Title: Re: Event Script Help Needed (RMK 2003)
Post by: Prpl_Mage on June 07, 2010, 12:46:51 PM
A thought just hit me.
Are all equipment slots occupied?

Do you have a: weapon, shield, helm and accessory equipped when this event happens?
'cuz if not - it might just be the issue.
And if that is the problem - add conditional branches that checks if the value of the variable is greater than 0. And if it is, equip the item.
Title: Re: Event Script Help Needed (RMK 2003)
Post by: inquisitorone on June 07, 2010, 04:28:36 PM
@Prpl_Mage: That was the entire event page; the remaining space shown by the slider is just standard white space shown through the <> symbols.

@ A Forgotten Legend: It did work before, but not in the way I wanted.

Thanks to both of you; the problem WAS that the script was adding in a Shield that wasn't equipped, but as soon as I added the conditional branches Prpl mentioned, it worked without a cinch.

Title: Re: Event Script Help Needed (RMK 2003)
Post by: Prpl_Mage on June 07, 2010, 06:43:43 PM
I'm glad to help.