Changing the description of skills mid-battle?

Is there any way anyone knows of to change the description of a skill mid-battle?


Now, I don't mean changing the whole skill for another skill, just swapping the description itself (like based upon a variable or something).


Thanks in advance!
You'd need to create or request a plug-in to do this.  Normally, skill descriptions are pulled directly from the database, so I don't even think you could easily just change a few script lines to implement this behavior.
What are you trying to do? You could swap skills, but have the skills do the same thing, but with different descriptions
It's actually a one-liner to make the change, but the issue, as hinted at above, is that the descriptions come from the database, and the database is not reloaded when you load a new game or a saved game, so if you make the change, then start a new game, the skill will have the new description.
You can do this through common event. And just like @Tsukihime said, you could have dupe skills. I've tested this and it works.


To do this, you need your skill and your skill with the updated description.


You need to make the original skill run a common event and have that common event learn that skill with the updated skill but make sure to remove the original skill too. The updated skill does not need to have the common event, only the changes you made.
You can do this through common event. And just like @Tsukihime said, you could have dupe skills. I've tested this and it works.


To do this, you need your skill and your skill with the updated description.


You need to make the original skill run a common event and have that common event learn that skill with the updated skill but make sure to remove the original skill too. The updated skill does not need to have the common event, only the changes you made.



The problem I've found with doing this is that, upon forgetting and learning, it always places the new skill at the top of the list of skills in battle.


This means that the location of skills on the menu are constantly hopping around, which I'm just not happy with, since it would likely confuse players as to why their skills are always moving around. :\


...Unless there's some means of keeping the order of skills rigid that folks know of?


And thanks for all the help, everyone. I DO appreciate it (especially when most of my questions are bizarre and outlandish, heh). 🙂
mmm ... if you really wanted to go that route, you could do a script call to record all the current skills into a new (script) variable, loop through the existing skills and forget each one, then loop through the (script) variable you saved the skills into, in a certain order, and add them all back again.


Or modify the js itself so it sorts the skills by skill id before showing them in any kind of list, rather than showing them in the order learned.


How you do this depends on whether you have any plugins that affect displaying skills in menus, and if you do have a plugin like this, it might already have an option to allow you to control sorting.
mmm ... if you really wanted to go that route, you could do a script call to record all the current skills into a new (script) variable, loop through the existing skills and forget each one, then loop through the (script) variable you saved the skills into, in a certain order, and add them all back again.



You know, I had considered this at one point but thought it would be too difficult, but as you mention it now, I realize I've already scripted out more complex systems than this so I'm not sure what was making me afraid of doing it...


Yeah, I'll take that route for sure. Thanks! 🙂
You know, I had considered this at one point but thought it would be too difficult, but as you mention it now, I realize I've already scripted out more complex systems than this so I'm not sure what was making me afraid of doing it...


Yeah, I'll take that route for sure. Thanks! 🙂



For me i am usually modify js and return skill's description to variable 


so the game will import skill's description from variable instead of gameData
For me i am usually modify js and return skill's description to variable 


so the game will import skill's description from variable instead of gameData



How much js work would that require?


Is there any way you could link just the code I'd need to change in order to make that work? (I can find/replace easily enough as well as edit existing code. I just can't write NEW code...).
How much js work would that require?


Is there any way you could link just the code I'd need to change in order to make that work? (I can find/replace easily enough as well as edit existing code. I just can't write NEW code...).



In rpg_Windows.js  line 1494


it will take description from (item.description)


you can make conditional branch chicking if you are in battle and switch enabled or however you want check


and then replace item.description with variable that have description 


if else make it return it back to original description
In rpg_Windows.js  line 1494


it will take description from (item.description)


you can make conditional branch chicking if you are in battle and switch enabled or however you want check


and then replace item.description with variable that have description 


if else make it return it back to original description



Could you by any chance message me with a copy of your rpg_windows.js file so I could see how that works?


I can edit existing js to an extent but this would be a bit above me without examples to go on...


If that's asking too much, no worries.
Try this plugin i made for you


you can edit it if you want


View attachment RestrictSlots.js
Try this plugin i made for you


you can edit it if you want


View attachment 44719



Wow, thank you, though I admit I'm not certain how I'd use this.


I'd need a method of having skill descriptions change based upon a variable. This seems to allow me to hide equipment slots for actors (unless I read it wrong?).
Wow, thank you, though I admit I'm not 100% certain how I'd use this.



open the plugin's setting


in first one write the slot name Exactly 


the second one is for switch you want use for show or hide the slot
open the plugin's setting


in first one write the slot name Exactly 


the second one is for switch you want use for show or hide the slot



Are these equipment slots or skill slots, though?
Are these equipment slots or skill slots, though?



Ummmm, just wait a sec
Are these equipment slots or skill slots, though?

sorry this wasn't for you


i made another one for you


But i need to know one thing, Do you want to return the description to variable all the time or you want it only in the battle and return to the original description?!!


EDIT:


Try this anyway, don't forget to Read the help 

View attachment SkillDescription.js

Original thread: https://forums.rpgmakerweb.com/threads/changing-the-description-of-skills-mid-battle.66311/