Self-Inflicted Status-Effect Skills

ThatMaestroGuy

You are lovely~
Veteran
Joined
Jan 14, 2014
Messages
945
Reaction score
294
First Language
English
Primarily Uses
RMMV
Hello!

I took a search on the forums but was unable to find anything regarding this topic (or maybe I'm just blind?). Skills like in Pokemon that do large-scale damage but have negative drawbacks is what I speak of. I'm trying to make a skill hit hard but have a relatively high chance (75%) to inflict the "stun" effect on the user...a kind of "Hey, you can use this awesome skill...but be careful with it, cause you have a chance of causing a stun to yourself!" I can't seem to figure out how to make it work, as I've no idea how to add status effects to the formula bar...help...!

Many thanks in advance for help on this. And if there is a place on the forums that I've missed with such relevant info, could I please be linked to it for future reference? Again, thank you! =D
 

Zoltor

Veteran
Veteran
Joined
Jan 18, 2014
Messages
1,550
Reaction score
211
First Language
English
Primarily Uses
Hello!

I took a search on the forums but was unable to find anything regarding this topic (or maybe I'm just blind?). Skills like in Pokemon that do large-scale damage but have negative drawbacks is what I speak of. I'm trying to make a skill hit hard but have a relatively high chance (75%) to inflict the "stun" effect on the user...a kind of "Hey, you can use this awesome skill...but be careful with it, cause you have a chance of causing a stun to yourself!" I can't seem to figure out how to make it work, as I've no idea how to add status effects to the formula bar...help...!

Many thanks in advance for help on this. And if there is a place on the forums that I've missed with such relevant info, could I please be linked to it for future reference? Again, thank you! =D
Well you either have to have it call a common event or use a script.

Calling a common event should do the trick just fine though. put in the command/dmg, and enemy target first for the skill, then have it call a common even to dmg/give a state to the char with the skill.
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
you can do (all this on the damage formula)


a.add_state(state_id);damage_formula


or since you want it 75% only


a.add_state(state_id) if rand(100) < 75;damage_formula


or if it errors or does not work


if rand(100) < 75;a.add_state(state_id);end;damage_formula
 
Last edited by a moderator:

ThatMaestroGuy

You are lovely~
Veteran
Joined
Jan 14, 2014
Messages
945
Reaction score
294
First Language
English
Primarily Uses
RMMV
Oh, Engr. Shana! It worked like a charm! You have saved me! The masses will forever sing songs of your glory and praise your name! In short, thank you so very much! =D
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD

Forum statistics

Threads
105,868
Messages
1,017,070
Members
137,577
Latest member
SadaSoda
Top