Haha no need, it was a long time ago. It was just getting hard to keep on top of which questions had been answered and which hadn't because other people were posting answers while I was checking things in the engine, so I was working on things that had already been resolved while questions being posted in the meantime were slipping through the cracks.
The official VisuStella notetag help thread
RPG Maker MZ SupportSounds like you need a system. Perhaps hire an assistant. 😉
I can't afford to pay myself, let alone an assistant. 😛
I'd be happy to volunteer for some secretarial work... payment in *nature* (and by "nature" I mean "script")
Good to know! Okay, your first job is to go through the thread and find any questions that haven't been answered yet. 😛
Be mindful because I might as well do it, only tonight tho, I'm at work rn.
You're right. One could just work that in the default action step mechanics in the battle core. But I'm fine with this. No need complicating things.
The above posts have largely gone unnoticed.
pp 6-11, 18, 23 are basically full of unanswered questions by you, but they got answered by someone else.
Thanks bud! I'll get to addressing those.
Okay, so the way the armor scaling calculation works is this:
First of all, it replaces each instance of b.def, b.mdf, b.agi or b.luk with
Math.max(this.applyArmorModifiers(b, %1), 1), where %1 is the replaced parameter. This applies armour modifiers to b and returns the maximum between that value and 1 (meaning modifiers can't cause the value to be 0 or negative).
It then calculates the damage value as normal, taking the max value between the evaluated formula and 0.
If the action deals HP or MP damage and is not certain hit, the defender's armor is applied:
If the action is a physical attack, we start with target's def, or mdf if it's magical.
We then apply armor modifiers to the target using the relevant parameter.
If armor is greater than or equal to 0, we multiply value by 100 / (100 + armor). Otherwise we multiply value by 2 - (100 / (100 - armor)).
Applying armour modifiers just bundles up all the armor reduction/penetration notetags and reduces them into a final value. For example, let's say you attacked an enemy with 101 def and a 20 flat armour reduction state while equipped with a weapon that has 5% armour penetration.
First the flat value will be subtracted from the enemy's def, giving 81. Then that will be reduced by 5% for the weapon, resulting in the enemy having 76.95 def.
Let's say your weapon attack damage calculation was 50. Ordinarily with no modifiers the enemy's 101 def would reduce that to: 50 * 100 / (100 + 101) = 25. With the armour reduction and penetration, the attack will deal: 50 * 100 / (100 + 76.95) = 28 instead.
Yep, absolutely. You could incorporate target.gainTp(-value) into a pre-damage as user notetag on the skill.
Theoretically you could do
enabled = $gameActors.actor(3).isTpbCharged();
If you put that in the skill notetag, it should make it so that the skill can only be used when actor 3's ATB is full.
I'm curious as to why you need to do that on a skill when you can define the element of it in either the damage settings or a multi-element notetag and that rate will be calculated for you. Or are you trying to incorporate additional elemental damage beyond what the skill already deals?
1. Yes you can, with the script
SceneManager._scene._lightContainer.children.find(child => child instanceof Sprite_LightSpawn && child._source.eventId === {id of the event the light was spawned on}).destroy();
2. It seems that only one light can be attached via notetags, but the first solution should sort out your problem.
Thank you - I think I need a separated thread as that plugin takes a LOT for granted.
The formula is a parameter and can be changed in damage types.
So, I'm trying to tinker with the various VZ battle plugins, but for ATB/STB I cannot find a solution that gives actors (enemies / PCs) extra turn actions. I'm aware of "action times +" state but I have found that it doesn't always work and it doesn't give a significant amount of control.
Some battle systems, such as BTB, have extra action functionality baked in as a cost. The "boost" plugin on the other hand gives extra power, but no extra actions.
Some battle systems, such as BTB, have extra action functionality baked in as a cost. The "boost" plugin on the other hand gives extra power, but no extra actions.
@Dark_Ansem I'm trying to do the same in the CTB system and getting nowhere. Maybe it's not possible in MZ? If that's the case I shall be seriously hacked off.
But on to my more immediate concern.
I have some characters who only use MP, but I cannot find what to turn off where to remove the display of the TP guage. (Yeah, you've no idea how embarrassing that admission is.)
Can someone enlighten me please.
Thank you.
But on to my more immediate concern.
I have some characters who only use MP, but I cannot find what to turn off where to remove the display of the TP guage. (Yeah, you've no idea how embarrassing that admission is.)
Can someone enlighten me please.
Thank you.
The Skills and States Core has Gauge Replacement notetags.
@ATT_Turan Helpful as always. Thank you, that is exactly what I need.
I have a couple more questions, not sure if strictly VS related but I got the idea from them, so maybe this is the right place?
So, I'm trying to build a system with semi-random loot. Some limitations exist however.
Does this function
support intervals, rather than only random? something like "const id = Math(1-5; 35-48)?
Is there a way to make this message
display more than 1 entry after two (or more) consecutive
?
Lastly, something for chests that reward items and gold...
So gold would be added through the random variable system, and then the item would be gained via the above script. Which message do I need to write in order for it to display both gold and items?
So, I'm trying to build a system with semi-random loot. Some limitations exist however.
Does this function
JavaScript:
const id = Math.randomInt(0) + 15;
Is there a way to make this message
JavaScript:
The crate contains stashed x\LastGainObjQuantity \LastGainObj!
JavaScript:
$gameParty.gainItem($dataItems[id], amount);
Lastly, something for chests that reward items and gold...
So gold would be added through the random variable system, and then the item would be gained via the above script. Which message do I need to write in order for it to display both gold and items?
What will probably help most with this is if I show you the code I provided to @Crossbow for a similar system:
JavaScript:
const hasName = function(item) {
return item && item.name.length > 0 && item.name.slice(0, 5) !== "-----";
}
let numItems = 3;
let numWeapons = 2;
let numArmors = 2;
const exceptions = [2,3,4,5,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40];
let maxLoops = Math.max(numItems, numWeapons, numArmors);
const items = $dataItems.filter(item => hasName(item) && item.itypeId !== 2 && !exceptions.includes(item.id));
const weapons = $dataWeapons.filter(weapon => hasName(weapon));
const armors = $dataArmors.filter(armor => hasName(armor));
while (maxLoops > 0) {
if (numItems > 0) {
const item = items[Math.randomInt(items.length)];
$gameParty.gainItem(item, 1);
$gameMessage.add(You got \\LastGainObj from the chest!);
numItems--;
}
if (numWeapons > 0) {
const weapon = weapons[Math.randomInt(weapons.length)];
$gameParty.gainItem(weapon, 1);
$gameMessage.add(You got \\LastGainObj from the chest!);
numWeapons--;
}
if (numArmors > 0) {
const armor = armors[Math.randomInt(armors.length)];
$gameParty.gainItem(armor, 1);
$gameMessage.add(You got \\LastGainObj from the chest!);
numArmors--;
}
maxLoops--;
}
Interestingly, this one is limited to 1 per instance and no gold.
If it's limited to 1 you can just take out the loops.
Original thread: https://forums.rpgmakerweb.com/threads/the-official-visustella-notetag-help-thread.125717/