|
item generator with percentage variable
I want learn how to make a javascript for an RPG where it generates and display a specific item, but the generation process is controlled by the percentage variable for items in certain category.
also, aside from the quality, and item type, it'd be nice if you could input a number in and it will also generate the item level from 3- to +3 (controlled by percentage) and display the number at the end modified by the aforementioned modifiers
For example, it might look something like
Enter 53, hit generate
Common: .30
Rare: .10
Armor Category (gloves, shoes, chest): .50
Weapon Category (sword, shield): .49
-3: .60
0: .40
+3: .30
Generated item: Common Glove ilvl. 50 (53-3)
Edit: Could anyone point me to where I might be able to learn how to make this?
Last edited by komichi; 01-22-2013 at 09:12 PM..
|