Note: To use this tutorial, you should have a minimum experience in using RPG VX Scripts and should know how to access them. But also if you don't understand it- this tutorial could still teach you what's possible on VX!
A question often asked in this forum is: why VX instead of XP? The object.note may be the answer!
But what means .note? All objects in the standart RPG Library have own methods and variables. For example, the 'Weapon' Object has the variables 'name', 'atk' or the array 'element_set' (which tells you what elements the weapon has). But there is also a array not used in the original VX script- and that's 'note'. You wondered what the note box on the database for weapons, states and so on means? Here you have it.
But what gives this useless .note to me? The note box is just a field were you can save your own variables- for example you want to do a forge system (were you combine some items into a new one), but you don't want to create a gigantic list of all your items and what items you need to forge them. For example, i just wrote the names of the items you need for making it into the note box of the item:
I know it doesn't look nice- just an example!
Also, you could use the note box for alternative attributes, like 'armor penetration' or 'life steal percentage' as an integer (means a number like 1,7 or 40)- or for any other shit- the possibilities are unlimited! (and that's why it makes VX so good). Also you could add extra infos to enemies- like more items to steal or drop. Or a text when you use a scan spell/ ability on them (like: The devil rat uses its teeth to deal damage. Beware of the poisonous bite!) Or even special features like Reflec ability and so on. Do you now get how cool .note is?
So- but how do we access this little .info bastard? It's very easy- .info is an array of strings saved in the weapon/ state/ armor/ enemy/ ... data. Array of strings means, it's a container with variables in it- like ["reflec ability","Lifesteal:",7,"Regeneration rate:",20]
To get the array, just write this in your script (depending on what object type it is- here it's an enemy): note=$data_enemies[enemy_id].note
Now you have all the information in your 'note' array stored. To get a specific thing, like the lifesteal rate (which is on place 3 on our array) do this: lifesteal_rate=note[3] You see- it's very easy. But using this principle, you have to watch on which place you write- and press space between every piece of information!
But isn't this a bit abstract? It may be- but there are other ways: You could also search for a special piece of text, like i did with my forge script. For example, we could search for special abilities the rat has- 'reflec ability' for example...
To do so, use this: note=$data_enemies[rat_id].note if note.include?("reflec ability") reflec_ability=true else reflec_ability=false end
This is just a very small spectrum of how .note could be used- for any questions, feedback and suggestions let me know- I will update this tutorial as good as I can (but I have to know what information you need )
__________________________
You want Next Gen graphic algorithms in RPG VX? Ask the horst :P
Hm... very interesting. I'll have to give it a try and see how it works. I too was one of the people that wondered what the stupid notebox was for until I started seeing scripts for using it.
__________________________
"If your mind goes blank don't forget to turn off the sound." Unknown Author