The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: TX_fire on October 09, 2009, 06:49:37 PM

Title: A Problem whith a skill
Post by: TX_fire on October 09, 2009, 06:49:37 PM
Hi

I wonder if someone could help me. I searched some Hour's in this forum but couldn't find anything at all.
Well a little description of my Problem:

I got a Project where the main char can transform in battle.
I got it how to transform him (with common events) but i don't know how do disable the changed actor graphic at the end of battle.
In addition comes i cupled the graphic change with a State change and that one should end too, at the end of battle.

Thanks

TX
Title: Re: A Problem whith a skill
Post by: shaz on October 09, 2009, 09:48:27 PM
The state should just have "release at end of battle" checked.

In your common event, you could set a flag to say the main character has transformed, and then - either in the script, or wherever you call Battle Processing, add a check to say if he's transformed, then transform him back.
Title: Re: A Problem whith a skill
Post by: TX_fire on October 10, 2009, 12:23:21 AM
Thanks with this is one problem solved.

But how do i set a flag?
I don't know how to set the check eather.
Title: Re: A Problem whith a skill
Post by: shaz on October 10, 2009, 12:26:23 AM
use switches.  In the common event where he transforms, set a "player has transformed" switch to ON.
In all your events that initiate battle, right after the Battle Processing line, add a condition - IF "player has transformed" (use the switch here), turn the switch off, and change their graphic back.

This might make the player appear very briefly on the map as transformed, before they change back.