- Oct 26, 2018
- Reaction score
- First Language
- English (AUS)
- Primarily Uses
I'm trying to make weapons and armour with custom properties that cannot be defined just by the engine's database, so of course, I'm going to be using scripts. The script is going to read a .txt file and therefore come up with properties such as this:
The first line is the ID, which will use the ID of the standard RMXP weapon, to make it easier to incorporate into the game. But I don't quite know where to start with actually incorporating this data into script to make properties. I know how to read the file and I know how to split it line by line, but I still don't know how and where to use things such as attr_accessor in this case. Can someone give me some pointers?
 name="Bronze Sword" might=10 acc=100 crit=-50 strbonus=0 magbonus=0 spdbonus=0 skillbonus=0 luckbonus=0 defbonus=0 resbonus=0 avobonus=0 ddgbonus=10 elements=1,8 eqclass=1,2,3 actoroverride=1 desc="A very basic sword, but it will do." buy=100 sell=50 icon="Bronzesword.png" animation=[0,0] #Note: These values point to Attacker Animation and Target Animation respectively.