The official VisuStella notetag help thread

TrentL111

Archmage
Veteran
Joined
Oct 13, 2018
Messages
37
Reaction score
13
First Language
English
Primarily Uses
RMMV
@TrentL111 If you're using Visustella plugins, I don't think you need a whole other plugin just to adjust the Balloon height.

I've found this yesterday:
View attachment 168100

In the EventsMoveCore parameters, under "Visustella 8-Dir Settings" there appear to be an option to adjust balloon height.

I hop this helps.
I tried that, even set it to something ridiculous like +1000 and the balloon was still in the same spot.
 
Joined
Jan 23, 2014
Messages
162
Reaction score
20
First Language
English
Hello! I'm trying to wrap my head around the custom targetting with the <JS Targets> notetags.

My goal is to recreate the Thief's Revenge skill Tips and Trick found below:

Code:
// Target Core
// Calculates the total hits when scaled off AGI.

<Custom Target Eval>
// Formula to calculate the number of hits achieved.
var hits = Math.floor(user.agi / 34);
// Set a minimum of 1 hit and a maximum of 5 hits.
hits = hits.clamp(1, 5);
// Create the variable needed to keep track of damage dealt.
this._totalThiefDamage = 0;
// Create the variable needed to keep track of current hits.
this._currentThiefHits = 0;
// Create the variable needed to keep track of total hits.
this._totalThiefHits = hits;
// Create a loop that adds the target for the skill.
while (hits--) {
  // Add the target into the valid targets pool.
  targets.push(target);
}
</Custom Target Eval>

// Selection Control
// If using Selection Control, this will make the skill a melee skill.

<Select Conditions>
Front Row Only
</Select Conditions>

// Skill Core

<After Eval>
// Get the hit results of the target.
var result = target.result();
// Check if the current hit has connected.
if (result.i****()) {
  // Increase the total damage dealt.
  this._totalThiefDamage += result.hpDamage;
}
// Increase the current hit count.
this._currentThiefHits += 1;
// Check if the current hit count has reached the total hit count.
if (this._currentThiefHits >= this._totalThiefHits) {
  // The rate of how much damage will be healed for the user.
  var rate = 0.30;
  // Calculate the heal value.
  var heal = Math.ceil(this._totalThiefDamage * rate);
  // Set Variable 1 to contain the heal amount.
  $gameVariables.setValue(1, heal);
}
</After Eval>
The issue I found is when I adapted the code I found that my skill, which has a scope of 1 enemy for whatever reasons returns empty, doesn't pull from the selected enemy. So trying to understand what I am doing wrong, not sure if this is a bug or a misunderstanding.

Code can be found below:


Code:
<JS Targets>

 const targetId = Math.randomInt($gameTroop.aliveMembers().length);
 const target = $gameTroop.aliveMembers()[targetId];

let hits = Math.floor(user.agi / 34);
hits = hits.clamp(1,5);
this._totalThiefDamage = 0;
this._currentThiefHits = 0;
this._totalThiefHits = hits;
console.log(targets); //returns empty no targets.
while (hits--){
   targets.push(targets);
}
</JS Targets>

<JS Pre-End Action>
var result = target.result();
if (result.i****()){
  this._totalThiefDamage += result.hpDamage;
}
this._currentThiefHits += 1;
if (this._currentThiefHits >= this._totalThiefHits) {
  var rate = 0.30;
  var heal = Math.ceil(this._totalThiefDamage * rate);
  if (target.isStateAffected(134)) heal = -heal;
  if (user.states().includes($dataStates[87])){
   //Adrenaline Rush
   $gameSwitches['_data'][3] = true;
  }
}
</JS Pre-End Action>
EDIT: SOLVED added a manual target to this one, will leave it here for those who want to use it!
 
Last edited:

TrentL111

Archmage
Veteran
Joined
Oct 13, 2018
Messages
37
Reaction score
13
First Language
English
Primarily Uses
RMMV
For STB mode, enemies use the Instant Use skills as if they're normal skills, IE they'll use them and end their turn thereafter. It works fine for the heroes, though. This isn't a problem in ATB mode, however, and the enemies are able to act immediately after using skills tagged with 100% ATB After.

Additionally, does anyone know if there is a way to play an animation during the cast bar filling for the ATB battle system? It would be really cool to have a dramatic visual queue that the enemies are preparing their spells.
 
Last edited:

GM-NUN

Warper
Member
Joined
Aug 29, 2020
Messages
2
Reaction score
0
First Language
chinese
Primarily Uses
RMMZ
I wanted to create a state that each stack of jelly decrease the enemies ATK by 12%
is there a way I can do that? , because the code below didn‘t work !



<JS On Add State>

target._jelly = target._jelly || 0;

target._jelly +=1;

target.setStateDisplay(39, target._jelly );

</JS On Add State>

<JS Parameters>

ATK = user.paramBase(2) * 0.12 * target._jelly;

</JS Parameters>
 

mmiller9280

Villager
Member
Joined
Sep 21, 2020
Messages
20
Reaction score
9
First Language
English
Primarily Uses
RMMZ
So I am using a lot of Yanfly plugins (core, battle, and party system for the purpose of this post). I used the Battle Core to offset my battlers a bit to fit my battlebacks (I adjusted the Y OffSet in Battle Core).

But, when I use the Party plugin to swap members in combat, it's not swapping in the new party member to the new offset position. So I'm ending up with weird positioning like this. I'm thinking it may be an easy code change, so I thought I'd ask.

forumpost.jpg
 

swillansky

Warper
Member
Joined
Sep 4, 2019
Messages
2
Reaction score
0
First Language
English
Primarily Uses
RMMZ
I have a handful of custom passive states I've been working on. I figured I'd post all of them. I haven't scripted all of them yet, but I have a strong grasp on a few of them.

Needs help

  • Anger Issues - Raises attack by 1-2% (needs balancing) each time attacked
    • Thinking I can accomplish this through LifeStatesSkills Core, but effectively I'd like this increase to trigger each time any damage is taken, if HP lost > 0. If hit three times, that is 1.02*1.02*1.02, etc.
  • Craftiness - Halves MP cost when afflicted with a negative state
    • No issue with the trigger conditions, but wondering if there's a simple command to affect MP costs.
  • Curious Energy - Chance to inflict negative status effect when attacked
    • Probably the same trigger as Anger Issues, simple from there with just a random Int providing the chance.
Decent Grasp on It, But Am I In The Right Direction?

  • Flashes of Stardom - 1% chance of raising all stats at the end of each turn
    • Planning on accomplishing with Random Int providing chance, then putting a 2-3 turn cool down state, then reverting back to random chance state again.
  • Magic Thief - Absorbs MP when using basic attack
    • Probably just going to replace basic attack with an identical attack that absorbs MP when afflicted with this condition
Feeling Confident

  • Hale & Healthy - Reduces damage received when health is full
    • Simple condition, if current HP = max HP, I'll probably just apply Def Up and MDef Up states.
If I could get either help or confirmation on any of these, I would greatly, greatly appreciate it! I'm using the VisuStella plugins, CTB battle system and that's all.
 

Galahad

Veteran
Veteran
Joined
Oct 10, 2013
Messages
40
Reaction score
11
First Language
English
Primarily Uses
RMMZ
@mmiller9280

I literally solved this problem by accident last night. I had the same issue until I updated my offsets (after party swap was already on) and the battlers updated to the new positions. Maybe the order in which you set offsets and turn on/turn off party swapping matters?

I'm no coder (its all gobbledygook to me) so this may or not solve your issue. Simple test... try changing the offsets again to something else and then see if the problem persists.
 

cchmaster

Veteran
Veteran
Joined
Nov 3, 2020
Messages
38
Reaction score
11
First Language
Chinese
Primarily Uses
RMMZ
Hello friends, I have a problem here.

Weapon Animation doesn't work during action sequence?

When I use normal attack, it works perfectly, showing my custom weapon. However, during an action sequence, the weapon shown becomes the original one.

I've run a new project and Visustella's sample project to test this. Both result the same thing. Weapon Animation seems not working in action sequence.

I think I saw a gif with custom weapon shown in action sequence on Weapon Animation's official page, but it seems to be removed.

Did I miss something or this function is just not implemented yet?
 

cchmaster

Veteran
Veteran
Joined
Nov 3, 2020
Messages
38
Reaction score
11
First Language
Chinese
Primarily Uses
RMMZ
Ive read through all 8 pages, and was unable to find any of this, so please:
1) Action sequence to simply change first person enemy battlers image for attacks, getting hit (if they are differ drastically). I.e. if the enemy use skill X, change enemy image to Z for this attack, then change it back to default
2) Action sequence to signal that on the next turn enemy gonna use some STRONG skil, maybe message on screen, or change to enemy image is also good
3) enflame, i.e. add element X damage to all attacks as a state, also this damage is reduced by appropriate elemental resistance.
4) While using skill to damage enemy, user himself gets some state effect, would love to make "damage enemy + increase your own agility"
Thank you in advance, much appreciated!
I saw no one answering yet, and I couldn't give you solution, either, but I might have some direction for you.

1. I've read about that your actor can transform into a different shape/actor to do an attack, and transfrom back after the attack is finished. Not sure how it's done, but you might want to check that, since it's like what you described above.

2. As I've learned, it can't be done with AS, unless with javascript code. However, I think you can do it in a different way. Simply make the skill take two turns to excute. First turn shows the signal, and second turn do the damage. Like dragoon jump from final fantasy. You don't need AS.

As for 3 and 4, other experienced maker on the forum should be able to help you. I'm too new so far.
 

mmiller9280

Villager
Member
Joined
Sep 21, 2020
Messages
20
Reaction score
9
First Language
English
Primarily Uses
RMMZ
@mmiller9280

I literally solved this problem by accident last night. I had the same issue until I updated my offsets (after party swap was already on) and the battlers updated to the new positions. Maybe the order in which you set offsets and turn on/turn off party swapping matters?

I'm no coder (its all gobbledygook to me) so this may or not solve your issue. Simple test... try changing the offsets again to something else and then see if the problem persists.
It might have been a plugin update, I also noticed it is now working. Hooray!
 

swillansky

Warper
Member
Joined
Sep 4, 2019
Messages
2
Reaction score
0
First Language
English
Primarily Uses
RMMZ
Hi sorry for the (close to) double posting, but had an issue that was much easier for me in MV that I've been grappling with in MZ with the current plugins.

The goal? Make a series of skills that are "equipable" with the cost of SP. When the skill is equipped (as a type of armor called a Badge), the actor loses SP, when it is unequipped, the SP is returned to the actor. All badges are universal and compatible with all actors, SP is not shared between actors.

So it requires elements of the Skill Learn Core for the SP generation and SP note tags, but also a bit of Item Equip Core. Can these two be combined as such? Is there a basic workaround here that I'm not seeing? Or is this not possible in the current framework?
 

Riku_Masamune

Veteran
Veteran
Joined
Aug 23, 2016
Messages
42
Reaction score
15
First Language
English
Primarily Uses
RMMZ
Making unique equipment:

In Yep Equip core it was something like this:

Code:
<Equip Requirement>
class: X or user: x
</Equip Requirement>

<Equip Slot>
Acessory 1
Acessory 2
</Equip Slot>
But for the VisusSellaMZ version I can't seem to find the proper notetag. Was there ever one? I bought the whole bundle in hoping one of them would help with this particular problem. I've even tried to look around for the answer too. Thanks in advanced.
 
Joined
Jan 23, 2014
Messages
162
Reaction score
20
First Language
English
Does anyone know off-hand what the function for adding barriers to a player outside of notetags?

Trying to recreate the Spirit Shell effect from Tips and Tricks :

"The Spirit Shell ability from the World of WarCraft allows a Priest to convert his/her heals into barriers while the Spirit Shell state is active!"

Code:
<JS Pre-Damage as User>
if (this.isHpEffect() && this.isSkill() && value < 0) {
  var turns = 3;
  var rate = 1.00;
  var barrier = Math.floor(value * rate * -1);
  target.gainBarrier(barrier, turns); //This throws an error. But looking for an Absorb Barrier
  value += barrier;
}
</JS Pre-Damage as User>



<JS Post-Damage as User>
var result = target.result();
if (result.hpDamage === 0) {
  result.hpAffected = false;
}
</JS Post-Damage as User>
Another question I had personally is the use of forceActions, I know the code layout has changed such that force actions work differently, In MV, i could use a Jump Skill to land before my actual "next" turn starts, but now in MZ, it makes it so I Land on my next turn.

Would love some suggestions on how to solve this, or so I get a better understanding! I also am working on making the Doublecast Tips and Tricks as well.

"Final Fantasy 5’s Red Mage class is famously known for its ability to double cast magic. However, from Tips & Tricks Lunatic Mode alone, we cannot change the mechanic where you can select two spells to cast. Instead, what we can do is make it possible that the spell you’ve selected will cast twice! Here’s how you can do it in RPG Maker MV!"

Code:
<Custom Action Start Effect>
// If a chained action is stored...
if ($gameTemp._chainAction === undefined) {
  // ...then set the action to the user's current action.
  $gameTemp._chainAction = user.currentAction();
} else {
  // ...then clear the stored action.
  $gameTemp._chainAction = undefined;
}
</Custom Action Start Effect>

<Custom Action End Effect>
// If a chained action is stored...
if ($gameTemp._chainAction) {
  // Set the 'action' variable to the chained action.
  var action = $gameTemp._chainAction;
  // Check if the action exists, is a skill, and is a magical attack.
  if (action && action.isSkill() && action.isMagical()) {
    // Get the skill used for that action.
    var skill = action.item();
    // Check if the user can pay the skill cost.
    if (user.canPaySkillCost(skill)) {
      // Check if the battle system is DTB.
      if (BattleManager.isDTB()) {
        // If it is, add the action to queue.
        user.setAction(0, action);
      // If the battle system isn't DTB...
      } else {
        // ...make it a forced forced.
        BattleManager.queueForceAction(user, skill.id, -2);
      }
    }
  }
}
</Custom Action End Effect>

<Custom Remove Effect>
// Clear the chained action effect.
$gameTemp._chainAction = undefined;
</Custom Remove Effect>
Making unique equipment:

In Yep Equip core it was something like this:

Code:
<Equip Requirement>
class: X or user: x
</Equip Requirement>

<Equip Slot>
Acessory 1
Acessory 2
</Equip Slot>
But for the VisusSellaMZ version I can't seem to find the proper notetag. Was there ever one? I bought the whole bundle in hoping one of them would help with this particular problem. I've even tried to look around for the answer too. Thanks in advanced.
I don't think it was really implement yet. :o im waiting for the Job system one too! :D

Hi sorry for the (close to) double posting, but had an issue that was much easier for me in MV that I've been grappling with in MZ with the current plugins.

The goal? Make a series of skills that are "equipable" with the cost of SP. When the skill is equipped (as a type of armor called a Badge), the actor loses SP, when it is unequipped, the SP is returned to the actor. All badges are universal and compatible with all actors, SP is not shared between actors.

So it requires elements of the Skill Learn Core for the SP generation and SP note tags, but also a bit of Item Equip Core. Can these two be combined as such? Is there a basic workaround here that I'm not seeing? Or is this not possible in the current framework?
Sounds like you are waiting for the Equip Skills plugin to be ported. Big same. :( I don't think there is a way to do that quite yet. Ill try to do some research
 
Last edited:

EverNoir

Warper
Member
Joined
Dec 12, 2020
Messages
1
Reaction score
0
First Language
English
Primarily Uses
RMMZ
Hi, I'm trying to figure out all correct variable names for the different parameters (str,agi,luck, mdef, etc.) so I can make some DOT and HOT skills or as its called here, SLIP skills.

i know some of the parameters but I don't know the rest. If someone could help out with a list or a link to a resource with this information I would appreciate it. Thank you!

Here is an example of what I'm doing and what I want the parameters for


<JS HP Slip Damage>

damage = Math.floor(user.atk * 2) + 100 - (target.def * 2);

</JS HP Slip Damage>



Edit: Using RMMZ btw!
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,047
Messages
1,018,539
Members
137,834
Latest member
EverNoir
Top