Im trying to make an skill increase it's damage using yanfly tips and tricks to upgrade parameters, he uses JP but it is possible to use items like 'wind stone' and such? And what can I do to change the spell icon id after it reaches a certain level?
Upgrade spell
RPG Maker MV Supportyes, the wind stone item would call a common event.
Your common event can then change the specific skill’s damage formula / traits / iconId.
I can post a picture example later, unless someone beats me to it.
Note: the biggest trick is making your changes to $dataSkills persist when the game is loaded.
Your common event can then change the specific skill’s damage formula / traits / iconId.
I can post a picture example later, unless someone beats me to it.
Note: the biggest trick is making your changes to $dataSkills persist when the game is loaded.
Hmm, I actually wanted the variable to change the icon since the item will be used multiple times, the skill would change in damage using that variables value as a sort of multiplier and when that variable's vale reaches 10 then it wont upgrade anymore and the icon will change to something else
Can u give an example of how the variable affects the damage?
Is it a % multiplier? As in if variable = 2, then damage is increased by 20%?
Is it a % multiplier? As in if variable = 2, then damage is increased by 20%?
The simple way to do what you're describing is to have ten separate copies of the skill in your database, with distinct icons and damage formulae.
Your upgrade item uses event commands to check which version the user has learned, remove it, and give the next version up.
Otherwise you're getting into stuff that Testosterone said with trying to change the icon and save it - that's normally stored in the database and you'd need a new plugin written to accommodate that.
Your upgrade item uses event commands to check which version the user has learned, remove it, and give the next version up.
Otherwise you're getting into stuff that Testosterone said with trying to change the icon and save it - that's normally stored in the database and you'd need a new plugin written to accommodate that.
Ah, you gave an answer to something like this in another post, that it was possible doing it with one formula in one skill, but yeah the icon change is something different, but since you can change actor pictures I tought icons would be possible as well.
Can you see this?https://forums.rpgmakerweb.com/index.php?threads/changing-an-items-icon.54599/
Do you think it would work and where would I put it?
Do you think it would work and where would I put it?
Yes, of course you can use variables in your damage formula to do math, but I was addressing the part about the icon. As Testosterone told you in post 2 and I mentioned in post 5, you can't permanently change settings in the database, e.g. the icon.
I'm surprised the OP of the thread you linked to never came back to say so, but that code is flawed - the change will go away as soon as the player closes the game and comes back to load the save.
You would have to rig up an event that runs every time you load a game, checks everyone's skills, referencing I guess a variable that you're using to track what level it should be, and executes that script call to change the icon.
That has the downside of being rather lengthy to make, and it's impossible to change per actor - if you have more than one actor who knows the same skill, the icon will be changed for them all.
Plus you'd have to find a plugin anyway because I can't think of any way natively to run an event just one time every time you load a save game.
Or you can just copy and paste skills in your database. 😛
I'm surprised the OP of the thread you linked to never came back to say so, but that code is flawed - the change will go away as soon as the player closes the game and comes back to load the save.
You would have to rig up an event that runs every time you load a game, checks everyone's skills, referencing I guess a variable that you're using to track what level it should be, and executes that script call to change the icon.
That has the downside of being rather lengthy to make, and it's impossible to change per actor - if you have more than one actor who knows the same skill, the icon will be changed for them all.
Plus you'd have to find a plugin anyway because I can't think of any way natively to run an event just one time every time you load a save game.
Or you can just copy and paste skills in your database. 😛
Yeah, I think that would be more doable, the skills are going to be shared by everyone, using Yanfly Equip Skill plugin, the skill itself would be upgraded by using an special item for each type of skill, like the Spell Ascension system from Darksouls 3 Cinders mod.
Original thread: https://forums.rpgmakerweb.com/threads/upgrade-spell.157668/