need help with making a certain skill/state

zarroc407

Veteran
Veteran
Joined
Jun 20, 2013
Messages
104
Reaction score
16
First Language
english
So I want to create a skill that adds a state to the target that makes buffs more effective. For example you use a defense buff and it adds 10 defense you use it on someone with this state it adds 15 defense. I'm not really sure how to go about doing this if anyone has any ideas I'd appreciate the help. 
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,434
Reaction score
7,713
First Language
German
Primarily Uses
RMMV
I've moved this thread to Plugin Request. Please be sure to post your threads in the correct forum next time. Thank you.



As the engine works, buffs are fixed percentage effects that can't be changed in any way.


So basically you'll need a plugin to reprogram their options.


I suggest giving more detailed descrptions because the pluginwriter will need that.
 

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
5,635
Reaction score
5,116
First Language
English
Primarily Uses
RMVXA
I recommend using Yanfly's Plugins, such as "Buffs & States Core" and "State Categories".
 

zarroc407

Veteran
Veteran
Joined
Jun 20, 2013
Messages
104
Reaction score
16
First Language
english
I recommend using Yanfly's Plugins, such as "Buffs & States Core" and "State Categories".
I installed both of those and tried this


[SIZE=12pt]<Custom Apply Effect>[/SIZE]


[SIZE=12pt]if (battler.isStateCategoryAffected(‘multiply’)) {[/SIZE]


[SIZE=12pt]value = true;[/SIZE]


[SIZE=12pt]} else {[/SIZE]


[SIZE=12pt]value = false;[/SIZE]


[SIZE=12pt]}[/SIZE]


[SIZE=12pt][/SIZE]


[SIZE=12pt]if (value == true) {                                                [/SIZE]


[SIZE=12pt]b.mat = b.mat * 4;[/SIZE]


[SIZE=12pt]} else {[/SIZE]


[SIZE=12pt]b.mat = b.mat * 2;[/SIZE]


[SIZE=12pt]}[/SIZE]


[SIZE=12pt]</Custom Apply Effect>[/SIZE]


It works in my head but my syntax must be wrong because I get an unexpected token illegal error
 

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
5,635
Reaction score
5,116
First Language
English
Primarily Uses
RMVXA
I've only used these scripts very lightly in the past, so I don't necessarily know what's wrong - you'll have better luck, probably, asking in "Plugin Support".  But two things stick out to me as potential culprits for this error:

  • (battler.isStateCategoryAffected(‘multiply’)) - No idea whether this is correct.  But you can test whether it is by changing it to "(true)" - so, if (true) { and save your project and see if you still get the same error.  If you don't, you know it's something in this line.  If you do...
  • b.mat = b.mat * 4; - It strikes me as suspect that you're using "b" here - do the scripts support it to mean the target and does your skill have a target?  I'm also surprised to see you explicitly change the value of a MAT stat, which might not have a "set" method.  Try removing both of these MAT-setting lines and save and see if you still get the same error.  If you don't, you know it's something in this line (try using a.mat and try battler.mat and try self.mat and see if any work; also try looking into some of the script's documentation and figuring out if there's a better way to say you want the state to raise a battler's MAT).
 

whoami

Villager
Member
Joined
Feb 3, 2014
Messages
14
Reaction score
7
Primarily Uses
In addition to the above wisdom, I don't believe battler is valid in this scope. Try replacing it with user or target.


Here's an option to think about, although it may complicate your database. Put your bonus into the parameters of a new state (M.Attack * 200%). In the state that you're currently using, you can conditionally check whether or not to add the bonus state. (For example, state 50)


<Custom Apply Effect>


if (user.isStateCategoryAffected('multiply')) {


 user.addState(50);
}



</Custom Apply Effect>
 

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

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,049
Messages
1,018,547
Members
137,835
Latest member
yetisteven
Top