The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: gman on February 07, 2006, 12:54:08 PM

Title: Steal money skill
Post by: gman on February 07, 2006, 12:54:08 PM
hi guys. am new around here and was wondering
if any of youse know how to make a skill to steal money from
enemies. im using RPGmaker 2k.
i mean stealing items is easy to make but
money? need professional help...
thx fellas
Title: Steal money skill
Post by: blueXx on February 07, 2006, 01:08:07 PM
Quotei mean stealing items is easy to make but
money? need professional help...

build the item stealing system, instead of add item make add money
for the money you should make something like

variable X = random(1,100000)
and then add that random amount , changed by which monsters you face and success chance

if you know how to make an item thievery system it seriously shouldn't be any problem
Title: Steal money skill
Post by: gman on February 08, 2006, 05:46:56 AM
yes i've tried that. but the problem is, there is no
"add money" option in the Monster Party page.
so i cant change  my money unlike items
Title: Steal money skill
Post by: blueXx on February 08, 2006, 09:11:56 AM
event commands, 6th button on the right side
or otherwise what sick version are you using, i'll find it there
Title: Steal money skill
Post by: ahref on February 08, 2006, 05:21:33 PM
its change money methinks
Title: Steal money skill
Post by: blueXx on February 08, 2006, 05:59:49 PM
Quote from: ahrefits change money methinks

you don't say  :roll:
Title: Steal money skill
Post by: haloOfTheSun on February 08, 2006, 08:00:40 PM
Quote from: gmanim using RPGmaker 2k.

There is no change money command in the monster groups event window in 2000.
Title: Steal money skill
Post by: blueXx on February 08, 2006, 08:51:13 PM
i am so not searching...
make a parallel going:
if item moneychest is possessed then
-remove item(money chest)
-add money: +20

(i would assume there is a money adding option in a normal event... )

then make an item steal thingy, put diffrent chests for diffrent values and that's it
Title: Steal money skill
Post by: Zeriab on February 08, 2006, 09:21:39 PM
You can do this in RPGmaker 2k. There are several ways, I will only show one.
In the following I will use:
1 switch: StealSwitch
2 variable: Chance, AmountStolen

Firstly go to the Database\Skills and make, let's call it Steal
Under the classification select Switch.
Make it available at Battle only.
Find the ON Switch and select one, let's call the selected one for StealSwitch
Fill out the rest as you please.

Then go Database\Monsters Party and select the party you want the ability Steal to work against.
Under the Battle Events on page 1 (you only need 1 page) set a trigger to StealSwitch-ON and enter the following commands:
<>FORK Optn:Varbl[xxxx:AmountStolen]-0
 <>Variable Ch:[yyyy:Chance] Set, Randm[0*100]
 <>FORK Optn:Varbl[yyyy:Chance]-30abov
   <>Variable Ch:[xxxx:AmountStolen] Set, Randm[100*2000]
   <>Messg:You've stolen \V[xxxx] gold!
   <>
  :ELSE Case
   <>Change Switch:[zzzz:StealSwitch]-OFF Set
   <>
  :END Case
 <>
:END Case
<>
This requires might require a bit explanation.
Let's take the first line: <>FORK Optn:Varbl[xxxx:AmountStolen]-0
This means that you should use a Fork Conditions, check variable, select the AmountStolen and check if it is the same a 0.
The xxxx simply means the number AmountStolen have in the database, yyyy refers likewise to Chance in the variables 'database' and zzzz for StealSwitch in the switches 'database'.
If you want to change the probability of stealing change this line:  <>FORK Optn:Varbl[yyyy:Chance]-30abov
If you want to change the amount of gold stolen change this line:
   <>Variable Ch:[xxxx:AmountStolen] Set, Randm[100*2000]


Under the Common Events make an event (select a non-used).
Name it whatever you like. Set the Event Start Condition to Parallel Process. Set the Appearance Conditions Switch to StealSwitch
Enter this as the Events Commands
<> Change Money: Money V[xxxx] Incr.
<> Variable Ch:[xxxx:AmountStolen] Set, 0
<> ChangeSwitch:[zzzz:StealSwitch]-OFF Set
<>



If you got questions just ask.
Title: Steal money skill
Post by: gman on February 09, 2006, 05:28:29 AM
thanks for all the help guys!
especially you Zeriab.
I could understand your explanation the first time I read it.
I'm gona try it. Thx again.