hmm .. scripts.. easy things.. hmm no...
oh yes all you need is an event -.-
make an auto start event in the say.. rock mining map going like this:
variable( rock1loaded) = 5
earse event
(that will do it for rock1, add as many as you want)
make say a rock event and it will look like..
(trigger- action key)
If (mining tool) is possessed then
-if rock1loaded >0 then
--message: omg! you mined a piece of rock!!!
--variable(mining tool) : +1
--variable(mining exp) : +3
--variable(rock1loaded): -1
--if mining exp > 30 then
---add item: omg supa rock
--else
---if mining exp >9 then
----add item: omg accepatble rock
---else
----add item: omg crap rock
--if mining tool > 20 then
---message: omg you broke your stupid mining tool
---remove item: mining tool
---variable(mining tool)= 0
--else
---variable(checker)= 20
---variable(checker)= -variable(mining tool)
---message: omg you only got \v[checker] uses left before you break the tool
-else
--message: omg there is nothing in this stupid rock
else
-message: omg i can't stop saying omg AND i don't have the right tool!
you do it like that for... anything..