View Single Post
Old 01-22-2013, 08:59 PM   PM User | #1
komichi
New to the CF scene

 
Join Date: Jan 2013
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
komichi is an unknown quantity at this point
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..
komichi is offline   Reply With Quote