ID:166958
 
i got an equip script workin but i dont feel like goin in and typin stats for every item what it should add and what not, how do i make it generate its own stats on drop
You have to give it stats in some way or another. You'll have to be more specific as to what you mean.

(edit)
There I am not thinking in the terms of the post's title again. People need to start typing up what they want in the body and not leaving the title to do half the description.

Anyway, if you want random stats then just use the rand function. Make a function that randomises stats and call it on drop.
obj/equipment
proc/randomise()
weapon
var/attack_power = 0
randomise()
attack_power = rand(1, 10)
armor
var/defense_power = 0
randomise()
defense_power = rand(1,10)

mob/proc/die()
var/drop_type = pick(drops)
var/obj/equipment/O = new drop_type
O.randomise()
New() {..();stat=rand(A,B)}