hoboayoyo

Veteran
Veteran
Joined
Oct 29, 2016
Messages
34
Reaction score
4
Primarily Uses
Code:
<Counter Name: text>
  This changes the displayed name of the skill when used as a counter skill
  to 'text'.

I'm trying to make it so when a unit counters the skill has the prefix counter + skill name. Or anything along those lines. I've been reading the documentation and can't get the counter skill to have the skill change it's text. Below is my counter criteria along with my plugin order.
Thanks,
hobo

Code:
<Counter Name: text>

 <Counter Condition>

Magical Hit

  </Counter Condition>
1634429621366.png
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,094
Reaction score
15,513
First Language
English
Primarily Uses
RMMV

I've moved this thread to Plugin Support. Thank you.

 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
2,728
Reaction score
1,603
First Language
English
Primarily Uses
RMMV
I'm trying to make it so when a unit counters the skill has the prefix counter + skill name. Or anything along those lines. I've been reading the documentation and can't get the counter skill to have the skill change it's text.
(I took the liberty of un-bolding you for readability :wink: )
So, you can't do this. The Counter Name tag changes the skill name to whatever you type in as the "text" portion. That can't evaluate JavaScript commands, which means you have no way to make the text be different things at different times.

The only way I can think of to do this would be to actually make a counter skill for every attacking skill with the appropriate name, and use a huge Custom Counter Skills list on the actor/state/whatever to call the appropriate counter skill depending on the incoming attack.

Or, of course, write/commission someone to write a plugin extension that adds a Custom Counter Name tag that can evaluate JS and dynamically change the name.
 

hoboayoyo

Veteran
Veteran
Joined
Oct 29, 2016
Messages
34
Reaction score
4
Primarily Uses
Thanks for the reply.
To clarify I just want the player to know that the enemy is countering there attack.
To do this I want to manually change the skill name to have prefix 'counter' on it.
Is that not possible?

Code:
<Counter Name: text>
Does this not change the name of the skill when it's triggered by a counter?
Because in my case, this command doesn't work or change the text at all.
If I have a move called 'water'
I want to do
Code:
<Counter Name: 'Water: Counter'>
when triggered by a counter, the skill name doesn't change.

Sorry about the confusion.
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
2,728
Reaction score
1,603
First Language
English
Primarily Uses
RMMV
To do this I want to manually change the skill name to have prefix 'counter' on it.
Is that not possible?
That's not the same thing you said in your first post. Yes, you can change the name of the skill to an other thing. No, you can't change it dynamically to be "(name of the attack that triggered it) counter".
Code:
<Counter Name: text>
Does this not change the name of the skill when it's triggered by a counter?
Yes, it should.
I want to do
Code:
<Counter Name: 'Water: Counter'>
when triggered by a counter, the skill name doesn't change.
It's possible you putting single quotes in there is breaking it. The instructions don't say Counter Name: 'text' - try taking those out and see if it works. If it still displays the original name of the skill, you'll need to post screenshots of your skill with its notetags and ask for help with all of that.
 

hoboayoyo

Veteran
Veteran
Joined
Oct 29, 2016
Messages
34
Reaction score
4
Primarily Uses
This is in the skill text box.
I've tried it without the whole action battle script and still can't change the text.


Code:
<Counter Name: text>
 <Counter Condition>
Magical Hit
  </Counter Condition>




    <setup action>
      clear battle log
      display action
      immortal: targets, true
      perform start
      wait for movement
      cast animation
      wait for animation
    </setup action>
 
    <whole action>
      wait: 6
      motion attack: user
      wait: 6
      action animation: target
      animation wait: 6
      shake screen: 7, 6, 35
      wait for animation
      action effect
    </whole action>
 
    <target action>
ADD ELEMENT: 7
change variable 3 = Math.trunc((((user.mat * user.mat) /16 ) -((target.mdf * target.mdf /32))) / 10)-2 + Math.randomInt(3)
mp -variable 3: target,show


    </target action>
 
    <follow action>
    </follow action>
 
    <finish action>
      wait: 18
      immortal: targets, false
      wait for new line
      clear battle log
      perform finish
      wait for movement
      wait for effect
    </finish action>
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
2,728
Reaction score
1,603
First Language
English
Primarily Uses
RMMV
What are you asking that's different from the last time? You were told that the specific thing you're trying to do is not supported by the plugin.

You then said the Counter Name: text notetag wasn't working for you - is that still what you're saying? That the name of the skill doesn't show up as "text"?
 

hoboayoyo

Veteran
Veteran
Joined
Oct 29, 2016
Messages
34
Reaction score
4
Primarily Uses
Right, the <Counter Name: text> note tag isn't working.
I'll just create a new project and see if the issue still persist.
 

Latest Threads

Latest Profile Posts


AABS laser beams features:
1,Shoot penetrating laser beams for player's normal attack
2,Beam's width/damage/comsumes/loot can be controlled by events/variables with great flexibility
3,Beam can rebound to walls or certain regionID
4,Can play SE when shooting beams
5,Beam's images can be solid images or animated ones.
Surprising nobody, it turns out "next Friday" for the next Jump into Javascript has become "possibly Sunday if you're lucky" XD
Folks, if anyone sends you a message inviting you to add their API to your game, please report them. We don't want people spamming our members asking them to add stuff to their games for their own (or others') benefit. We've updated the forum rules to confirm this.
I'm listening to iiluminaughtii talking about the secrets behind shady businesses and scams. Meanwhile I'm writing a fanfic about Sephiroth from FF7, one specifically for my stepmom. I'll get to give it to her, too, because my boss said I could take the holidays off! Dec. 22-27 I will be in Orlando, and maybe Fort Myers too, visiting my dad and stepmom!
Of course, I bought a handful of games on the Steam Black Friday sale. Will I try them? Will I complete any? Who knows...

Forum statistics

Threads
117,015
Messages
1,103,834
Members
152,911
Latest member
WakeNBake
Top