RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Changing Item Properties

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 67
RMRK Junior
Can I change a weapons damage via a script or event? And can I make the change apply to only a single weapon of that category without affecting the others or making a thousand different weapons?

Example:
Sword x 4
(I change one of them)
Sword x 3
Sword x 1 (This one has some property altered)

Also, can use the Note section to run code?

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
Q1: No - since items are not saved by instance, what you're asking for would require a script, and probably a fairly significant one.

Q2: Yes, but not by default. You'd need a script.

**
Rep: +0/-0Level 67
RMRK Junior
So could I have a weapon that deals a base damage plus damage based on the users stats? So a weapons Attack is  3 damage + the character holding its SPI?

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
Yes, you could.

**
Rep: +0/-0Level 67
RMRK Junior
Ok, but when you said 'You'd need a script.', did you mean a script in the Script Editor? Or could I just put the code into the Note section?

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
What I meant was that you'd need someone to write a script that would interpret the code in the note editor and substitute it for the regular damage formula. That would be a script in the Script Editor, and you'd need to find a script or script it yourself.

Provided that you have such a script, then the formula itself you could set inside the note.

All I'm saying is that it is possible to write a script which would allow the user to define the damage formula through the notebox; I do not know of any script which does so.