The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: epson777341 on March 23, 2006, 05:00:43 PM

Title: Stealing Stuff
Post by: epson777341 on March 23, 2006, 05:00:43 PM
I didn't have any time to search for it but is there a way for an enemy to steal a random piece of equipment or item?

Thank you in advance.   :D
Title: Stealing Stuff
Post by: Seoxultima on March 23, 2006, 10:57:39 PM
make a common event,that sets a variable to random number,1-(how many slots u have)then make a cond. branch for each number,that changes equipped ________ to nothing,then says a message like,your _______ was stolen!then make a skill(steal)and link the common event to it,then give an enemy the skill.

did it help?
Title: Stealing Stuff
Post by: blueXx on March 24, 2006, 01:24:22 AM
monsters don't have equips, theiving monsters are too much of a pain
result- that's not what he wanted

basic is the same though, what you want is:

make a steal attack and link it to a common event looking about:

mondex=0
mondex=+monster1's dex
mondex=+monster2's dex
(so on until monster 8 regardless of exisitng or not)
mondex= mondex / 4 (twice as hard to steal from 10, easier to steal from 2)
if mondex > hero's dex then
-temp= random(1,10)
-if temp >=9 then
--temp = random(1,10)
---if temp = 1 then
----message: got a 500 gold
----change money= +500
---if temp = 2 then
----something else and so on
-else
--message: ha you got nothing!
else
-temp=random(1,10)
-if temp >=5 then
(same prize list, maybe diffrent)
-else
--message: you didn't manage to steal >.<

that should do the trick
Title: Aha...
Post by: SkullFire on March 24, 2006, 01:58:32 AM
So that's how it works... I'll have to share this with my friends, thanks blueXx!
Title: Stealing Stuff
Post by: epson777341 on March 24, 2006, 03:45:42 AM
Thanks blueXx!

So, is there any quiker way to steal armor?