AeroFunk80

Veteran
Veteran
Joined
Aug 25, 2016
Messages
362
Reaction score
240
First Language
English
Primarily Uses
RMMV
This is for MV.

I'm using Yanfly's action sequence pack and Row Formation. I'm attempting to do a skill that, if the enemy can attack... they use a ranged ability, but if the player is using barrier... the enemy is going to move forward 1 row instead. This is part of my action sequence, but the enemy isn't moving forward. I'm guessing I have the "row movement" incorrect, but I can't figure out what it should be. Any ideas (what I'm currently using is the red font below)?

<target action>
if target.isStateAffected(2)
if $gameVariables.value(14) >= 2
SE: VA_Lurker_Battle_05, 100, 100, 0
wait: 90
battler.alterRow(1)
else

Thanks in advance to anyone that can help.
 

zerobeat032

Something, Something Zerobeat...
Veteran
Joined
Mar 28, 2014
Messages
551
Reaction score
1,541
First Language
English
Primarily Uses
RMMV
you'll wanna replace battler with something like either... $gameActors.actor(1) or $gameParty.members()[0]... it depends on which battler you want to change rows.

second, you wanna put "eval:" in front of it because it's a script call. so something like...

eval: $gameActors.actor(1).alterRow(1)

that should move actor 1 by 1 row.
 

AeroFunk80

Veteran
Veteran
Joined
Aug 25, 2016
Messages
362
Reaction score
240
First Language
English
Primarily Uses
RMMV
you'll wanna replace battler with something like either... $gameActors.actor(1) or $gameParty.members()[0]... it depends on which battler you want to change rows.

second, you wanna put "eval:" in front of it because it's a script call. so something like...

eval: $gameActors.actor(1).alterRow(1)

that should move actor 1 by 1 row.
Thank you for this. I forgot to mention this is an enemy using that. How would I write that out? It's Enemy 3 in this situation.
 

zerobeat032

Something, Something Zerobeat...
Veteran
Joined
Mar 28, 2014
Messages
551
Reaction score
1,541
First Language
English
Primarily Uses
RMMV
oh enemy 3, ok that'd be...

eval: $gameTroop.members()[2].alterRow(1)

it's 2 since these start from 0 I think. that should work.
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
7,725
Reaction score
5,485
First Language
English
Primarily Uses
RMMV
@zerobeat032 is close, but it's the wrong idea to try to be using a specific troop member. That means you'd have to rewrite this entire skill and action sequence for each enemy depending on troop position...I don't even know how you'd make that work :stickytongue:

Just use the variables provided to you in action sequences.
Code:
user.alterRow(1)
 

zerobeat032

Something, Something Zerobeat...
Veteran
Joined
Mar 28, 2014
Messages
551
Reaction score
1,541
First Language
English
Primarily Uses
RMMV
crap lol... dunno why I didn't think to just use user. that way you aren't pigeon holed into needing the troop numbers all the time.
 

Latest Threads

Latest Posts

Latest Profile Posts

Calibrating the timing of dialogue is deffo my new least favorite thing.
I died aged 27 to cancer. Then I was reborn in a South-American state. I retained all memories and skill and had a goal from my previous life I needed to finish, but now I was just a 1-year-old girl capable of only smiling at others.

Dreams like this one make me glad I'm able to wake up from them at will.
Found a critical bug the other day with the time system that would have caused none of the NPCs to spawn. Since I use dev mode to test time-based stuff, I didn't catch this for way too long!
Last missing piece, a plugin to let weapons and armor be used as multiple equip types
What if the Actor Battlers disappeared when your selecting enemies...
ndyhHXV.gif

Forum statistics

Threads
129,975
Messages
1,206,654
Members
171,196
Latest member
Evolsuperx
Top