HELP WITH POWER UP TRANSFORMATIONS! [RMMV]
Posts
Pages:
1
Hi, I'm very new to RPG Maker (as well as making games in general) and I really need some help.
I'm trying to get a skill using Yanfly's "Power Up Transformations" tip to target all allies. But no matter what I do, it always ends up just targeting the user. Is there a way to get the skill to target all allies?
I'm using a modified version of the skill shown in this video
https://youtu.be/VP47ZY6hG64
This is the code I'm using myself
<Before Eval>
var Instinct = 13;
var INS2 = 14;
var INS3 = 15;
var INS4 = 16;
var INS5 = 17;
var INS6 = 18;
var INS7 = 19;
var INS8 = 20;
var INS9 = 21;
var IN10 = 22;
if (user.isStateAffected(Instinct)) {
user.addState(INS2);
} else if (user.isStateAffected(INS2)) {
user.addState(INS3);
} else if (user.isStateAffected(INS3)) {
user.addState(INS4);
} else if (user.isStateAffected(INS4)) {
user.addState(INS5);
} else if (user.isStateAffected(INS5)) {
user.addState(INS6);
} else if (user.isStateAffected(INS6)) {
user.addState(INS7);
} else if (user.isStateAffected(INS7)) {
user.addState(INS8);
} else if (user.isStateAffected(INS8)) {
user.addState(INS9);
} else if (user.isStateAffected(INS9)) {
user.addState(IN10);
} else {
user.addState(Instinct);
}
</Before Eval>
Any help would be greatly appreciated.
On another note, I have absolutely no knowledge of programming, art, sound, storytelling, animation, music, or any real idea on where to start if I want to make an RPG (or any type of game in general), so I'll most definitely have many more questions in the future. Can anyone recommend a good place to ask for help once those questions arrive?
I'm trying to get a skill using Yanfly's "Power Up Transformations" tip to target all allies. But no matter what I do, it always ends up just targeting the user. Is there a way to get the skill to target all allies?
I'm using a modified version of the skill shown in this video
https://youtu.be/VP47ZY6hG64
This is the code I'm using myself
<Before Eval>
var Instinct = 13;
var INS2 = 14;
var INS3 = 15;
var INS4 = 16;
var INS5 = 17;
var INS6 = 18;
var INS7 = 19;
var INS8 = 20;
var INS9 = 21;
var IN10 = 22;
if (user.isStateAffected(Instinct)) {
user.addState(INS2);
} else if (user.isStateAffected(INS2)) {
user.addState(INS3);
} else if (user.isStateAffected(INS3)) {
user.addState(INS4);
} else if (user.isStateAffected(INS4)) {
user.addState(INS5);
} else if (user.isStateAffected(INS5)) {
user.addState(INS6);
} else if (user.isStateAffected(INS6)) {
user.addState(INS7);
} else if (user.isStateAffected(INS7)) {
user.addState(INS8);
} else if (user.isStateAffected(INS8)) {
user.addState(INS9);
} else if (user.isStateAffected(INS9)) {
user.addState(IN10);
} else {
user.addState(Instinct);
}
</Before Eval>
Any help would be greatly appreciated.
On another note, I have absolutely no knowledge of programming, art, sound, storytelling, animation, music, or any real idea on where to start if I want to make an RPG (or any type of game in general), so I'll most definitely have many more questions in the future. Can anyone recommend a good place to ask for help once those questions arrive?
So "user" is bound to the user of the skill. "target" is bound to the target.
Try replacing "user" with "target" in the code.
For general javascript learning, this site is good: https://developer.mozilla.org/en-US/docs/Web/JavaScript
Try replacing "user" with "target" in the code.
For general javascript learning, this site is good: https://developer.mozilla.org/en-US/docs/Web/JavaScript
Pages:
1













