The RPG Maker Resource Kit

RMRK RPG Maker Creation => Requests => Script Request => Topic started by: Ecut on March 29, 2012, 10:22:43 PM

Title: [VX][Request] X% Skill Fail.
Post by: Ecut on March 29, 2012, 10:22:43 PM
Hi there. :)
So I have a pretty specific idea for a skill for the bard in my game that needs to be scripted.
To those of you who have played Final Fantasy 4, I am looking for something similar to Rosa's Pray ability.

What I want is a script that gives a skill a 50% chance of failing. I know that you can make the hit ratio 50% but that doesn't really have the effect that I want. Like in FF4, Rosa's prayer has a 50% of being answered and a 50% of not being answered. So if the skill fails then a message would pop up saying "[skill name] could not be performed"(or something like that) and it would affect no one and if it was successful then it would work like a normal skill.

I hope that makes sense! I can't imagine it would be an overly hard script to make but seeing as I have no scripting knowledge I can't do it. xP
Thanks for taking the time to read this. :)
Title: Re: [VX][Request] X% Skill Fail.
Post by: Ecut on April 13, 2012, 02:11:29 AM
Bump perhaps?
I can do that, right?
Title: Re: [VX][Request] X% Skill Fail.
Post by: Geokoer on April 14, 2012, 07:06:16 AM
Hello there, Ecut,

as I am currently posting a problem of my own, perhaps I can throw in some ideas (though I cannot write scripts either).

Is it an idea to make a skill call upon a common event? You can then go to the common event, and make a random variable  between 1 and 2 (which will mean 50/50 in-game), followed by a conditional branch , stating that if variable 1 = [no effect, create message window, etc] and if variable = 2 use skill ID name.

But perhaps I am babbling nonsense... good luck to you, in any case!
Title: Re: [VX][Request] X% Skill Fail.
Post by: Ecut on April 15, 2012, 05:13:55 PM
Gosh, why didn't I think of that?! I always forget about common events!
Thanks so much, I'll try it. :)