Hello, how are you? I want to create a sword with a very simple effect (or n), when killing a certain type of enemy, there is a chance that the attack of this sword will increase by 1 point, I am relying on the sword "Muramasa" from the game castlevania symphony of the night , but, I am being beaten to create this effect in the rpg maker mv, if anyone can help me please help me.
I need help to create a sword effect
RPG Maker MV Supportdo you want to lose the attack if it misses? or do you want to stay on it permanently?
if it reset teh stats, than I can help you, but it also require 2 yandly plugins.
if its permanent, than someone need to edit the code slightly, while I only have the reset one.
if it reset teh stats, than I can help you, but it also require 2 yandly plugins.
if its permanent, than someone need to edit the code slightly, while I only have the reset one.
yes, for example, i have a sword with attack 40, if i kill a zombie, the attack of the sword goes up by 1 point, that is, it will be 41, that's it. (yes, the attack rises permanently)
that effect might be simple to describe, but that does not mean that it is easy to implement.
in fact that is problematic to implement because it can't be done by default at all.
The problem is that by default all equipment is static, it can't be changed at all.
It would require a plugin to change the database into a dynamic one instead of a static one.
To get that right, you'll need to give more detail of the effect - not everyone has played the same games as you do, so descriptions "like <unknown weapon> in <unknown game>" will have a good part of the readers not understanding the effects wanted. For example the wording on your first post seems to indicate that this addition should only happen on specific enemies, not everyone? If so, how should the engine determine which enemy would count?
in fact that is problematic to implement because it can't be done by default at all.
The problem is that by default all equipment is static, it can't be changed at all.
It would require a plugin to change the database into a dynamic one instead of a static one.
To get that right, you'll need to give more detail of the effect - not everyone has played the same games as you do, so descriptions "like <unknown weapon> in <unknown game>" will have a good part of the readers not understanding the effects wanted. For example the wording on your first post seems to indicate that this addition should only happen on specific enemies, not everyone? If so, how should the engine determine which enemy would count?
Mmm...what about this:
Troops featuring the enemy should have an event that triggers when that enemy's HP falls to 0%. This event increments a variable by 1.
All troops have an event which checks at the start of each round if the player has the weapon equipped and the variable is greater than 1. If both are true then it adds a state which increases the player's attack attribute (say, by 5 or 10%, a simple +1 to attack is pretty weak if you're using anything like the standard damage formula). Different versions of this state exist, which increase the attack stat by higher amounts.
So, if variable =1 then add State 1 (with the attack parameter set to 105%).
If variable = 2 then add state 2 (attack parameter set to 110%)
and so on.
You'd eventually hit a ceiling, just because you'd only want to make so many states, but it wouldn't be too difficult to get up to double or triple your attack total and that's more than insane enough.
The states should be removed at the end of each turn and re-added based on the variable check at the start of the next turn (That way if the player kills one of the enemies they get the buff mid-combat).
As far as having the effect weaken, the simplest would probably be to decrease the variable by 1 at the start of each combat, so the boost gradually wears off over time.
There are probably a lot of simpler ways to do this with plugins, but this could get the general effect you're looking for.
Troops featuring the enemy should have an event that triggers when that enemy's HP falls to 0%. This event increments a variable by 1.
All troops have an event which checks at the start of each round if the player has the weapon equipped and the variable is greater than 1. If both are true then it adds a state which increases the player's attack attribute (say, by 5 or 10%, a simple +1 to attack is pretty weak if you're using anything like the standard damage formula). Different versions of this state exist, which increase the attack stat by higher amounts.
So, if variable =1 then add State 1 (with the attack parameter set to 105%).
If variable = 2 then add state 2 (attack parameter set to 110%)
and so on.
You'd eventually hit a ceiling, just because you'd only want to make so many states, but it wouldn't be too difficult to get up to double or triple your attack total and that's more than insane enough.
The states should be removed at the end of each turn and re-added based on the variable check at the start of the next turn (That way if the player kills one of the enemies they get the buff mid-combat).
As far as having the effect weaken, the simplest would probably be to decrease the variable by 1 at the start of each combat, so the boost gradually wears off over time.
There are probably a lot of simpler ways to do this with plugins, but this could get the general effect you're looking for.
Original thread: https://forums.rpgmakerweb.com/threads/i-need-help-to-create-a-sword-effect.119031/