Self-Inflicting Status Effects

jonikari

Villager
Member
Joined
Feb 6, 2014
Messages
19
Reaction score
0
First Language
Hebrew
Primarily Uses
Long story short: I've made a weapon that attacks three times but then disable movement for the next turn, but since I don't know rpg maker scripting and there's no self-inflicting states in the weapon options I've made it something like this:


Weapon causing state x foe-> common event causing state y to actor if foe has state x -> state paralyse actor for 1 turn.


but it doesn't cause any status effects.


The only scripting involved is this line "if : script :$gameParty.inBattle()" but it also doesn't work if I remove it so...


Please tell me of a better way to do this that actually works but please also tell me what I did wrong.
 

Uzuki

Kawaii on the streets, Senpai in the sheets
Veteran
Joined
Aug 18, 2012
Messages
1,933
Reaction score
1,326
First Language
English
Primarily Uses
RMMV
Add this in your formula:  a.add_state(x);


Then after that add your damage formula. This will inflict the state after the damage is done.
 

jonikari

Villager
Member
Joined
Feb 6, 2014
Messages
19
Reaction score
0
First Language
Hebrew
Primarily Uses
Add this in your formula:  a.add_state(x);


Then after that add your damage formula. This will inflict the state after the damage is done.
It's a weapon, not a skill.


Where do I put damage formula?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,674
First Language
German
Primarily Uses
RMMV
Then please give us a screenshot on how you managed to make that weapon, especially the common event.


Because by default, only skills do damage and all equipment (no matter if weapon or armor) only apply bonuses to values that are then used by skills.


There are several ways around this, but to decide which one would be usable here we need more info about how you plan to do that weapon (especially as calling a common event is not possible as a trait, only as an effect, by default)
 

Uzuki

Kawaii on the streets, Senpai in the sheets
Veteran
Joined
Aug 18, 2012
Messages
1,933
Reaction score
1,326
First Language
English
Primarily Uses
RMMV
It's a weapon, not a skill.


Then your gonna need a plugin to change the default attack for that weapon. I believe MV already comes with WeaponSkill plugin by default. 

Where do I put damage formula?


In the database skill tab there is a box labeled damage formula. Put that in before other numbers and the state will be added. 
 

jonikari

Villager
Member
Joined
Feb 6, 2014
Messages
19
Reaction score
0
First Language
Hebrew
Primarily Uses
Then your gonna need a plugin to change the default attack for that weapon. I believe MV already comes with WeaponSkill plugin by default. 


In the database skill tab there is a box labeled damage formula. Put that in before other numbers and the state will be added. 
That's more complex than you made it out to be at first, but thanks, it worked.


BTW, appearantly It's "a.addState()" in RPGmakerMV.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

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
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,045
Members
137,569
Latest member
Shtelsky
Top