RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Steal Money Skill

0 Members and 1 Guest are viewing this topic.

*
? ? ? ? ? ? ? ? ? The nice kind of alien~
Rep:
Level 92
Martian - Occasionally kind
I found this tutorial while searching through my old posts because I was bored.
It was from the time I still used RM2K. Hope it is useful.

 - Zeriab

Quote from: Steal Money Skill in RPG maker 2k tutorial
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:
Code: [Select]
<>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
Code: [Select]
<> Change Money: Money V[xxxx] Incr.
<> Variable Ch:[xxxx:AmountStolen] Set, 0
<> ChangeSwitch:[zzzz:StealSwitch]-OFF Set
<>

******
Rep:
Level 92
Welcome Poster of Year 2006 Award
You do realise this means you could steal an invaluable sum in while fighting any random enemy.  :tpg:

It seems well done.
Do you want to be part of a growing Gaming Community, with many galleries, comics, active community, and gfx artists? Also known to be friendly. Also want some free anime music just for signing up? Play in the arcade?



Click Community Forums to join!

< Zelda Fan Club

********
EXA
Rep:
Level 92
Pikachu on a toilet
Project of the Month winner for April 2007
Yeah, you should add a "You have already stolen all the money from these enemies." switch. :)
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.


Get DropBox, the best free file syncing service there is!