Attack state - enemy vs actor

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,674
Reaction score
566
First Language
English
Primarily Uses
RMVXA
I've been working on my project for a while and thought I understood the engine well, but I've started to question the features for the weapons.

So I'm getting confused the more I try to figure it out. The help file does not clarify my question. And I googled it.

When setting your weapon features, I first thought that state rate was the chance to inflict a state to the enemy, and attack state was the chance to inflict a state to the actor.
But it seems that state rate is a modification of the chance the state will be applied (not that I'm sure who it applies to), and the attack state inflicts a state.

But here is where I'm trying to figure out what I'm supposed to do.
I want my weapon to have a chance to inflict a state on the enemy and/or a chance to inflict a state on the actor during a normal attack.

I can understand if weapons apply to enemies and armor apply to actors, but I'm questioning which way it is?
What does what?

If attack states apply to enemies, then that is fine. I can use a self-effect script to have specific attack state apply to the actor.
But then what does attack state on an armor do?

For that matter who does the state rate apply to for weapons?

Thanks
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,430
Reaction score
7,711
First Language
German
Primarily Uses
RMMV
"normal attack state" on the skill is a placeholder that tells the engine "use the state that is given by the equipment/Weapon".
A skill that does not have this added to its effects will not use the weapon properties but only inflict those states that are in its own effects.

That is a logic requirement - if you had no way to discern if a skill should do its own effects or use the weapon effects, then each mage's fireball would add the poison state of the equipped dagger (just as an example)
As such the "Normal Attack State" goes to the target of the skill, it has nothing to do with actor or enemy - if you would set it to a heal skill targeted at an ally then it would affect an actor as well.

That said, state rate is the probability of the state affecting the target, and it will always be modified by that enemies luck as well as any rate modifications applied there.

By default a skill can't target both actor and enemy - that is why the damage code fomula is used with codes for add_state if you want a single skill do both. but as far as I know that code is 100% effective, not modified by a chance - you would have to implement the chance in code as well.
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,674
Reaction score
566
First Language
English
Primarily Uses
RMVXA
Yeah, I just realized that I could have done some testing in a dummy project.

So the results are attack states, whether weapon or armor, will apply to the enemy on successful hit.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.

Forum statistics

Threads
106,035
Messages
1,018,455
Members
137,821
Latest member
Capterson
Top