Is there any way to put a skill that decreases money?

IkutsukiYuri

The Procrastinating Weeb
Member
Joined
Feb 25, 2018
Messages
11
Reaction score
0
First Language
English
Primarily Uses
RMMV
YanFly's Skill Core allows you to set such thing
But I lack the experience in Javascripting.
Is there any way that I could do it without having to touch the coding?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,674
First Language
German
Primarily Uses
RMMV
have the skill call a common event, and that common event decreases money.
Problem: that will happen after skill execution, and if there is not enough money the skill will still execute before the common event.

but that is the only way to do that without javascript
 

Grunwave

Veteran
Veteran
Joined
Feb 4, 2017
Messages
586
Reaction score
158
First Language
English
Decrease money held by the party or decrease the rate at which they accrue money?
 

spckk

Villager
Member
Joined
Feb 18, 2014
Messages
8
Reaction score
8
First Language
English
Primarily Uses
This should, in theory, work:

Have your character perform the skill which runs a common event as well as does (null) or 0 damage to an Enemy Target.

Within that common event, use a variable call for the amount of money the player has. If the variable checks out to the amount of gold needed, then use the "Force Action" button within the battle event page to force your character to use said skill against the "last target." Alternatively, you can Force Action to just use the skill on a random enemy, or you can define it using even more variables (but I would not recommend this, it may get quite convoluted and lead to unwanted skill use/skill use to the wrong enemy.)

There are a million ways to skin a cat. Be wary of anybody who states that there is "only one way to do" something.
 
Last edited:

Milennin

"With a bang and a boom!"
Veteran
Joined
Feb 7, 2013
Messages
2,511
Reaction score
1,642
First Language
English
Primarily Uses
RMMV
have the skill call a common event, and that common event decreases money.
Problem: that will happen after skill execution, and if there is not enough money the skill will still execute before the common event.

but that is the only way to do that without javascript
You could have an event run at the start of battle to check if player has sufficient gold, then disable the skill if they don't. Run that same check if the skill is used after gold was decreased via the skill activated common event.
 

SwiftSign

Veteran
Veteran
Joined
Aug 5, 2015
Messages
184
Reaction score
45
First Language
English
Primarily Uses
RMMV
Yanflys skill core page actually has exact examples of this scenario :) you should check it out and try it.
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,125
Reaction score
10,639
First Language
Czech
Primarily Uses
RMMV
Or just add $gameParty._gold -= 500; at the front of the damage formula.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,860
Messages
1,017,038
Members
137,568
Latest member
invidious
Top