Help creating a skill with the following... (bypass Sleep state, more damage states)

atoms

Veteran
Veteran
Joined
May 31, 2013
Messages
539
Reaction score
332
First Language
English
Primarily Uses
RMMV
I would like to create specific skill with RPG Maker MV, but am not sure how to achieve it. I am also using Yanfly Plugins if that makes it easier.

Skill name is Deathly Dagger. I'd like the skill to do the following:

1. If the enemy is sleeping and normally wakes up upon being hit, with this skill it won't. It'll have a 100% success chance of the enemy remaining asleep after skill is used.

2. If the enemy is currently Poisoned (a state effect) then 50% more total calculated damage is dealt. I.e. Calculated damage could be a.atk * 4 - b.def * 2.
3. If the enemy is currently Bleeding (a state effect) then 70% more total calculated damage is dealt.

4. If the enemy has both Poison and Bleed on them, then the two together means 120% more total calculated damage is done.

I found code commands to do just #2 and just #3 on the internet with the damage formula box, but I couldn't find a way to do both with #4.

If anyone can help with #2, #3, #4 thanks. I prefer Yanfly Lunatic Mode to the JavaScript box, but the JavaScript box works too.

As for #1 I can't find anything on the internet so far on how to do this. I thought there might be a Tip and Trick video showing it, and if someone knows of one please link me to it, but I couldn't find it when searching.

I hope someone can help without it being too difficult.

Many thanks! : )
 
Last edited:

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
To do 4, you just need to restructure your damage formula so that #2 and #3 gives a modifier value instead of modifying the damage directly. Then on the part where you return the actual damage value, you multiply the damage with this modifier.

Like

Code:
var mul = 1.00; if (b.hasState(poison) ){mul+=0.5};if(b.hasState(bleed)){mul+=0.7);mul*(your actual damage);
Here, the multiplier starts as 1.00 then if he has poison, adds 0.5 to it, if he has bleed adds 0.7... So if he has both states, it will add 1.2 making the total damage as 2.2 (120 more than 100)
 

atoms

Veteran
Veteran
Joined
May 31, 2013
Messages
539
Reaction score
332
First Language
English
Primarily Uses
RMMV
@Engr. Adiktuzmiko

Thanks a lot! I saw this https://steamcommunity.com/app/363890/discussions/0/1694919808747275888/

But didn't know how to add a second state to it.

This damage formula looks like it'll work! I like how mul is a variable as well, I can now see and understand that slightly. Thank you! : )


All I need now is to know a way to bypass/ignore not removing sleep upon hit with that damage formula.

If I can't achieve this, then I'd have to settle for removing the state and reapplying it if Deathly Dagger is used. I can do that much through a common event easily, but I'm sure the damage formula box or Yanfly's lunatic mode notetags could do that more easily.

Hopefully there is a simple way to bypass the sleep state with a skill.
 

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
I think you'd need a plugin for that because the engine handles it in the code, or... Just dont set the sleep state to be removed upon damage and make all other damage skills that shouldnt bypass it to remove the sleep state.
 

atoms

Veteran
Veteran
Joined
May 31, 2013
Messages
539
Reaction score
332
First Language
English
Primarily Uses
RMMV
@Engr. Adiktuzmiko Thank you, again! I just realize that second option just after messing around with skillsets as well!

I think I will do that, but there isn't any harm requesting a plugin, so I'll request one too. I'll probably make more threads with skill requests here in the near future as I figure other things I'd like to do out.

Again, many thanks for the help.
 

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,865
Messages
1,017,059
Members
137,575
Latest member
akekaphol101
Top