Random loot drops should be fairly easily. Just give your mob (i.e., the monster you're fighting) a "loot" variable that indicates a loot type (e.g., gold pieces, a piece of armor, a bat ear, whatever), and whenever that mob is killed, you just replace it with a loot sprite corresponding to the loot variable value, which you generate randomly. I don't understand the first part you mention about "affected by attributes," but I think the answer is the same: "yes" and "variables"...
Offline
Alternatively (did I spell that right?), you could make the loot a costume on the enemies and when they are killed, they switch to the loot costume and wait to be picked up. This would be a good idea if you had a lot of different distinct monsters with unique difficulty, rarity, location, etc., but would be inefficient for most Scratch games that use only a few enemies. Good luck with yours, though!

Offline