The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: dirtyego on January 08, 2006, 06:46:03 PM

Title: Skill Script Request
Post by: dirtyego on January 08, 2006, 06:46:03 PM
I dont know if you need a script for this, or if its possible, but is there a way to make skills like Farming, Mining, stuff like that? If anyone has played the online crap game "Runescape" you know what I'm talking about.
Title: Skill Script Request
Post by: blueXx on January 09, 2006, 02:56:15 PM
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:
Code: [Select]
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)
Code: [Select]

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..