The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: lipecau on April 13, 2008, 06:41:17 PM

Title: [RESOLVED] Help with common events skill
Post by: lipecau on April 13, 2008, 06:41:17 PM
I'm trying to create a morphing skill (werewolf/druid) to be used in and outside battle. I created a common event that takes care of the transformation and made a skill that activates it.
But it doesn't work when I test.
I know my common event is correct because if it's activated by a switch it works just fine, the problem is when the skill is the trigger.
I'm starting to think that it's a script problem, could someone help?
Title: Re: Help with common events skill
Post by: DrHojo on April 13, 2008, 08:41:50 PM
can you get some screenshots of the event please :)
Title: Re: Help with common events skill
Post by: lipecau on April 13, 2008, 09:06:30 PM
I'll have to remake it because I deleted it since nothing worked. But it's basically a party member switch (or parameters change)
As in the human member is removed and the animal version is added. Or parameters and graphics are switched. Haven't decide the best way since neither work.
Title: Re: Help with common events skill
Post by: DrHojo on April 13, 2008, 09:13:42 PM
well the best ider would be a graphic switch (what i think) but i dont know much about the problem once you remake send the event on screen shots and i will have look to sort it out :)
Title: Re: Help with common events skill
Post by: Zylos on April 13, 2008, 10:04:23 PM
Okay, I think I know what your problem is, but I'm not exactly sure how to easily fix it. First I need to know: when you say that the event doesn't work, do you mean that when you try to cast the spell on yourself outside of battle, it buzzes at you and won't let you cast the spell?
Title: Re: Help with common events skill
Post by: lipecau on April 13, 2008, 10:18:31 PM
Quote from: Zylos on April 13, 2008, 10:04:23 PM
Okay, I think I know what your problem is, but I'm not exactly sure how to easily fix it. First I need to know: when you say that the event doesn't work, do you mean that when you try to cast the spell on yourself outside of battle, it buzzes at you and won't let you cast the spell?
Yes, in battle it works, but outside it buzzes, and I need it more outside than inside of battle.
I can't take snapshots now because I'm not in windows at the moment.
Title: Re: Help with common events skill
Post by: Zylos on April 13, 2008, 10:38:36 PM
Ah. The problem is that when the developers made VX, they asked themselves "What would a player want to cast a spell on himself for other than to either heal himself or give himself a good status?". So they disabled the ability to do anything other than that to prevent a player from accidentally casting a bad spell on himself.

Your problem is that your spell does NOT heal the character or give a new status. Hence, your spell will always miss in battle (although the event should still work anyway), and it will not work at all outside of battle. As far as I know, there is only one solution to this: You have to make a wolf status.

Make the skill give you this "fake status" in addition to activating the common event. This will solve all of your problems, except that your spell would only ever work in one direction. You'd be able to turn into a wolf, but not be able to use the same spell to turn yourself back into a human again (assuming that your spell works both ways in the first place).

Edit: Just a thought, if you remove the "fake status" from your player at the end of the common event, you should be able to cast the spell on yourself again. This is all, of course, assuming that the same spell is used in transforming the player back from a wolf to a human.
Title: Re: Help with common events skill
Post by: lipecau on April 13, 2008, 11:36:53 PM
 :tpg:
Ok I did it! Back and forth, this is what I've done:
Created the Status + Common Event.
The common event is a conditional branch (If switch 1 is off) that applies the parameters, graphics, etc., removes the status and turns the switch 1 on.
The second part of the branch (Else, switch 1 on) it removes all the changes and turns switch off.
Thank you very much for the help