The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: bulls84 on March 01, 2007, 05:37:23 PM

Title: Eventing Help Please Help
Post by: bulls84 on March 01, 2007, 05:37:23 PM
In each map I put a parallel process that has a conditional branch so if you equip something it changes your chara graphic. The problem is if you have nothing equipped then I don't know how to change that.
Title: Re: Eventing Help
Post by: modern algebra on March 01, 2007, 07:08:17 PM
I don't have RMXP on this comp. so I can't test, but first, use a common event instead of ind. events in each map. It'll save you the copy paste. What I'd do is use a Change Graphic (Normal) and put that as the last event command in the event. Then make a Label at the very top of the Map, and put in a Jump to Label command in each conditional branch after the change graphic. That should work, but post if it doesn't. There might be a more efficient way, but this was my first idea.
Title: Re: Eventing Help
Post by: bulls84 on March 01, 2007, 08:25:53 PM
For some reason it doesn't work.

Title: Re: Eventing Help Please Help
Post by: King Anesis on March 02, 2007, 02:51:01 AM
You using RMXP? How can you assume so well?
Title: Re: Eventing Help Please Help
Post by: modern algebra on March 02, 2007, 03:08:19 AM
It's done the same way in 2k3 as it is in XP, so no assumptions are really necessary. In any case, forget the labels and try making an else if system, so like this:


Conditional Branch: [Zack] has [Bronze Armour] equipped
    Change Hero Graphic [Zack with Bronze Armour]
Else
   Conditional Branch: [Zack] has [Iron Armour] equipped
          Change Hero Graphic [Zack with Iron Armour]
...
   Else
       Conditional Branch: [Zack] has [Mithril Armour] equipped
          Change Hero Graphic [Zack with Mithril Armour]
       Else
           Change Hero Graphic [Regular Zack]     


I think that should work.
Title: Re: Eventing Help Please Help
Post by: Static_J on March 03, 2007, 07:11:58 AM
Yes, that's how its done.  I created this where changing your armor will change the sprite.  This is the code I use:


Conditional Branch: [J] is [Crimson Heart] equipped
    Change Actor Graphic: [J], CrimsonKnight
Else
   Conditional Branch: [J] is [Cerulean Scales] equipped
          Change Actor Graphic: [J], CeruleanArmor
...
   Else
       Conditional Branch: [J] is [Jade Stronghold] equipped
          Change Actor Graphic: [J], JadeArmor
       Else
           Change Actor Graphic: [J], 046-Grappler01


If you need I can upload my project with this common event.