global.weapons = {}; #macro wp global.weapons function weapon(name_, description_, type_, statmods=[]) constructor { name = name_; description = description_; type = WPTYPE.SWORD; modifiers = {}; var i; for (i=0; i= array_length(dudes) break; } if i >= array_length(dudes) break; target.data[$dudes[i]].val = target.data[$dudes[i]].cap; } } function c_wpeval(target, weapon_) { var lads = variable_struct_get_names(target.data); var dudes = variable_struct_get_names(weapon_.modifiers); var i; for (i=0; i