The RPG Maker Resource Kit

RMRK RPG Maker Creation => Requests => Script Request => Topic started by: Notunknown99 on July 20, 2011, 02:52:09 PM

Title: Changing Item Properties
Post by: Notunknown99 on July 20, 2011, 02:52:09 PM
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?
Title: Re: Changing Item Properties
Post by: modern algebra on July 20, 2011, 03:05:56 PM
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.
Title: Re: Changing Item Properties
Post by: Notunknown99 on July 20, 2011, 03:11:18 PM
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?
Title: Re: Changing Item Properties
Post by: modern algebra on July 20, 2011, 03:13:19 PM
Yes, you could.
Title: Re: Changing Item Properties
Post by: Notunknown99 on July 20, 2011, 03:19:40 PM
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?
Title: Re: Changing Item Properties
Post by: modern algebra on July 20, 2011, 03:24:27 PM
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.