Hi everyone, I would like to know if I can do the following: I would like to set a status like "Poison" that takes away life from the target each turn, but the damage instead of being a percentage is based on the attack of the character who cast the status or based on the attack of a specific character even if he does not cast the status. Would that be possible? I use rpg maker mz
State Formula
RPG Maker MZ SupportIt is, easiest I can think of is with the free Core Visustella Plugins
JavaScript:
<JS HP Slip Damage>
// damage based on the attack of the character who cast the status
let damage = user.atk * 0.5;
</JS HP Slip Damage>
JavaScript:
<JS HP Slip Damage>
// Damage based on the attack of another character
let specificActor = $gameActors.actor(1);
let damage = specificActor.atk * 0.5;
</JS HP Slip Damage>
It's great! Thank you very much, I was told it wasn't possible. I really appreciate it
oh whoops I realised you did NOT want a percentage, well, just change that to whatever you want.
out of curiosity, what is the context of the state?
out of curiosity, what is the context of the state?
when they said that, i assume they meant
since the base engine's hp regen only uses the target's max hp. What you gave them was what they said they wanted, and they said it works for them
ah cool, sorry, I just put a close (temporarily) on a massive chapter of my life today, so my head is a bit all over the place 🙂
I don't know who told you that or where.
But the thing to remember in RPG Maker is that the code for the game is sitting right there in the js folder of your project - literally anything is possible. So I tell people there's no point in asking that question and anyone who answers "No" is certainly mistaken.
The question is always whether there's already a plugin to do what you want, and how much time and effort it would take to implement.
*except some very specific things such as addying varied sound effects to animations - at least in vanilla animation setup, action sequences would certainly allow that but maybe you're like me, a tad economical, maybe unreasonably so, with common events LOL
I'm a little unclear as to what this post means. Are you implying that this can't be done with a plugin? Because it absolutely can.
It can? Without action sequences? How?
the code the game uses to function is in the js folder. Anyone who can read and understand what the code does (or upends the process and does it their own way for that matter) can come up with some method to do it.
Offhand, i wouldnt imagine itd be hard to make an alternate version of AudioManager.playSE() that ignores the last character in a file name and then searches for and picks a random file that matches with the rest of the name for use in animations while interfacing with them the same way. Even if you meant to just do something like randomize the pitch so that its not the same every time, thats a one line edit in and of itself.
I know the way VS's Action sequences are used is different than Yanfly's, but im certain that instead of attaching the sound to the animation, you can just use a bit of js to choose from a pool of sound effect names for each sequence and then play it with a semi randomized volume and pitch.
Regardless, thats not what the thread is about. if you want to discuss it openly, id suggest making your own thread about it
Your subtitle certainly checks out.
...by writing a plugin. The thing I said in the first place in post #7 and again in #9 😛
I don't understand the confusion in this conversation. 🙄
There is no confusion 😛 , I'm plainly admitting I have absolutely no clue and I did try in the past!
Hi, I just tried the formula you gave me and it doesn't work.
<JS HP Slip Damage>
// damage based on the attack of the character who cast the status
let damage = user.atk * 0.5;
</JS HP Slip Damage>
I just want a status that does damage for 3 turns, but the damage it does is based on the strength (for example) of the character who casts the status. I just want this because I find it boring that all the statuses that remove damage do so by removing a fixed percentage from the enemy (putting the status at -2% health regeneration for example)
<JS HP Slip Damage>
// damage based on the attack of the character who cast the status
let damage = user.atk * 0.5;
</JS HP Slip Damage>
I just want a status that does damage for 3 turns, but the damage it does is based on the strength (for example) of the character who casts the status. I just want this because I find it boring that all the statuses that remove damage do so by removing a fixed percentage from the enemy (putting the status at -2% health regeneration for example)
damage has already been declared, so remove the let keyword:<JS HP Slip Damage>
damage = user.atk * 0.5;
</JS HP Slip Damage>Since you've told me that everything can be done, I'm going to ask you another question about something that I was told a while ago that couldn't be done. And that is to increase one stat based on another. For example, my character has 100 attack, and I want to give him a passive/state that increases his defense based on 50% of his attack, meaning that his defense increases by 50 points in this case. Is that possible?
I don't know why someone would tell you that can't be done.
The VisuStella Core Engine has a whole section of parameter notetags that can be placed on a state.
And could you tell me how it would be? English is not my native language, sometimes I have a hard time understanding how it would be done.
It should be
<JS DEF Plus: Math.round(this.atk * .5)>Original thread: https://forums.rpgmakerweb.com/threads/state-formula.172893/