Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
6,001
Reaction score
5,957
First Language
English
Primarily Uses
RMMZ
That is exactly what I am doing. :) I see those stats as percentages.

But, if you would make skills this way, you should make your whole game this way. You can't really mix things up with default formula's, where you suddenly do 20 + 4*ATK - 2*DEF damage, because your stats will be off.

Also the stats of your actors, enemies, weapons and armor will work slightly different then they do by default. The ATK of weapons should go up and the DEF of armor should go down, since ALL armors slots of a certain level should give as much DEF as 1 single weapon of the same level give ATK.
Yeah, I agree with you. It's the kind of approach that needs to be applied consistently.

The main issue with it though really is that it doesn't allow for scalability; if Punch does 50 damage at the beginning of the game given both attacker and defender having 10 atk/def, it'll also do 50 damage at endgame given both attacker and defender having 999 atk/def.
 

JohnDoeNews

Mod on Steam (MV/MZ)
Veteran
Joined
Apr 25, 2017
Messages
1,571
Reaction score
1,176
First Language
Dutch
Primarily Uses
RMMV
Yeah, I agree with you. It's the kind of approach that needs to be applied consistently.

The main issue with it though really is that it doesn't allow for scalability; if Punch does 50 damage at the beginning of the game given both attacker and defender having 10 atk/def, it'll also do 50 damage at endgame given both attacker and defender having 999 atk/def.
True, but it will deal 500 damage if the target has 99 DEF when you have 999 ATK. And only 5 damage if you gave 99 ATK and they have 999 DEF.

So skills grow super strong against enemies that are at a much lower level then you are and skills are mighty weak when you battle enemies with a much higher level.

So, this makes learning higher skills ar higher levels and finding better weapons/armor just more important. I see that as a positive: Over 99 levels, you can keep learning skills every 3 or 4 levels. Each with a slightly higher base attack than the last.

Also, that is one of the things I meant with the stats of actors and enemies should be different: MHP should not grow as quick as with the default formula's. I end up with my MHP on lvl 99 being only around 300% of the MHP on lvl 1.

Bosses with large MHP pools are long battles, and much harder to beat. I like boss battles being long. I've seen that is pretty much every major RPG:

Final Fantasy
Kingdom Hearts
World of Warcraft
Skyrim
Fallout

Boss battles were always long, tough battles, even on easy setting. (Yes, I've played most of those on easy too, when I replay for the second or third time just to find secrets or achievements.)

You are right that against enemies of your own level, skills do not get stronger with my formula's, but I don't see that as a bad thing. You have to build your whole game differently, though. That is why you can't mix my formula's up with default way of setting up formula's.
 

fladdles

Villager
Member
Joined
Jul 20, 2017
Messages
27
Reaction score
7
First Language
english
Primarily Uses
RMMV
My last post about weapon affinity using variables was solved, thanks so much! But, I figured I might as well ask this as well:

I'm trying to make an item only be able to be used when the target has a certain state applied, could I use conditionals in the damage formula of the item for this? Basically I need a Bandage item to only be able to apply to an actor with the Bleeding state active, in turn removing said Bleeding State and applying the Bandaged State. If the target doesn't have Bleeding applied, the item would fail and return the item to the inventory - hopefully playing a sound effect as well. Trying to make wound management in this game take time to heal, not just a simple 'fix' by applying an item.

I've been trying to get Yanfly's Selection Control and Item Requirements to do this but with no success - the part where I remove Bleeding ONLY if it is currently applied works, but adding the Bandaged State afterwards overrides the conditional and makes it so I can apply the item to anyone anytime.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
6,001
Reaction score
5,957
First Language
English
Primarily Uses
RMMZ
My last post about weapon affinity using variables was solved, thanks so much! But, I figured I might as well ask this as well:

I'm trying to make an item only be able to be used when the target has a certain state applied, could I use conditionals in the damage formula of the item for this? Basically I need a Bandage item to only be able to apply to an actor with the Bleeding state active, in turn removing said Bleeding State and applying the Bandaged State. Trying to make wound management in this game take time to heal, not just a simple 'fix' by applying an item.

I've been trying to get Yanfly's Selection Control and Item Requirements to do this but with no success - the part where I remove Bleeding ONLY if it is currently applied works, but adding the Bandaged State afterwards overrides the conditional and makes it so I can apply the item to anyone anytime.
Can you show me what you already tried?
 

fladdles

Villager
Member
Joined
Jul 20, 2017
Messages
27
Reaction score
7
First Language
english
Primarily Uses
RMMV
Can you show me what you already tried?
Yep. During battle it works as intended, only allowing me to use the item in my inventory when someone has the Bleeding state. But on the map, I can use it anytime. State 73 is Bleeding, Bandaged is State 80.
halp.png
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
7,544
Reaction score
5,309
First Language
English
Primarily Uses
RMMV
During battle it works as intended, only allowing me to use the item in my inventory when someone has the Bleeding state. But on the map, I can use it anytime.
That's correct. The Selection Control only functions in battle, those notetags have no effect in the party menu. So long as the item does one valid thing (e.g. add the Bandaged state because the target doesn't already have it), you'll be able to use it.
 

fladdles

Villager
Member
Joined
Jul 20, 2017
Messages
27
Reaction score
7
First Language
english
Primarily Uses
RMMV
That's correct. The Selection Control only functions in battle, those notetags have no effect in the party menu. So long as the item does one valid thing (e.g. add the Bandaged state because the target doesn't already have it), you'll be able to use it.
Darn. So my best bet with limiting its usage is to make it only REMOVE a state, eh?
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
7,544
Reaction score
5,309
First Language
English
Primarily Uses
RMMV
Darn. So my best bet with limiting its usage is to make it only REMOVE a state, eh?
Without getting a plugin to modify the engine how you like, yeah - the item won't be usable to remove a state from a party member who doesn't have the state.
 

Oggy

Veteran
Veteran
Joined
Jun 1, 2022
Messages
222
Reaction score
83
First Language
English
Primarily Uses
RMMZ
If i did something like this:
if (b.level > a.luk+2) { formula; } else {formula;}
A. Will that work as a check?
B. Is there a way to replace the first formula (Or another way to write it) with something to the effect of result * X?
 
Last edited:

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
7,544
Reaction score
5,309
First Language
English
Primarily Uses
RMMV
If i did something like this:
if (b.level > a.luk+2) { formula; } else {formula;}
A. Will that work as a check?
Only if b has a level. Enemies (as you know from their database entries) don't. So if that's a skill given to actors, it will crash when you target an enemy.

There are some plugins that give enemies levels, but you'd have to check the documentation to see if that's the correct way to reference it in the plugin's code, and you'd have to include that information in your questions for us to give you an accurate answer.

B. Is there a way to replace the first formula (Or another way to write it) with something to the effect of result * X?
I'm not sure what you're asking here. You'd just type it?
Code:
if (b.level > a.luk+2) (a.atk-b.def)*2; else a.atk-b.def;

If that's not what you meant, please clarify.
 

Oggy

Veteran
Veteran
Joined
Jun 1, 2022
Messages
222
Reaction score
83
First Language
English
Primarily Uses
RMMZ
Thanks @ATT_Turan . My syntax for js is still not as good as I would like. This is a formula structure i was working on for enemies. I repurposed luk to be a weapon attack stat for players, so enemies have zero use for it atm and I was thinking of using luk on enemies as a "level".

Yeah you are right, if(x) formula 1 else formula 2, would be the easiest way. I'm not sure what I was thinking lol.

EDIT:
@ATT_Turan I was thinking, is there a way to use js like this to check if b.level is greater than a.luk to multiply the damage by 0.75?

<JS Pre-Damage> code code code </JS Pre-Damage>
To keep my formula window a little cleaner?

EDIT EDIT:
<JS Post-Damage>
if(b.level > a.luk)
target.gainHp(0-Math.round(value *0.75));
</JS Post-Damage>

Achieved my inteded goal of decreasing damage done by enemies that are outleveled when using enemy luck as enemy level.
 
Last edited:

Solar_Flare

Veteran
Veteran
Joined
Jun 6, 2020
Messages
723
Reaction score
313
First Language
English
Primarily Uses
RMMV
I repurposed luk
Were you aware that the LUK stat has some built-in effects that affect random attack rolls? If you're repurposing it, you would probably want to use a plugin that disables those effects.
 

Oggy

Veteran
Veteran
Joined
Jun 1, 2022
Messages
222
Reaction score
83
First Language
English
Primarily Uses
RMMZ
Oh yeah, i know :LZYcheeze:. By repurposed I mean I already wrote it out of the game.
 

Latest Threads

Latest Profile Posts

swordsman defense :to show not to use.
show.gif
4,4,4.gifloop24.gif4.4.4.end.gif
I bought SALMIAC.:kaoluv: Salmiac is HEAVEN. Black, salty, hypertensive heaven! My dad once ate so much salmiac his doctor tole him to STOP! :biggrin:

Still no spoons tho. :kaophew:
I am supposed to be preparing to teach my students this afternoon and tomorrow morning about Refugees, Asylees, and Fraud/Misrepresentation and all I can think about is how to improve my Turn Order display. :stickytongue:
Try changing POV battle, near and far away like suikoden...
watercave2.jpg

diablofar.jpg

In the end I choose near over shoulder resembles RE4. Tight close window better. The correlation between battleback, monster style and battler should also be observed and merged.
Upgraded my avatar to be cuter.

Forum statistics

Threads
129,705
Messages
1,204,481
Members
170,779
Latest member
shrek
Top