Coopziana

Veteran
Veteran
Joined
Jan 18, 2016
Messages
115
Reaction score
51
First Language
English
Hi,

I'm looking into making my battles a little more tactical, as such I'd like to make enemies "Home Position" Change after each attack to a random location within the battle window. Reason for this is i'm also going to be using AOE spells, so having the enemy move after each attack will really help to mix battles up a bit.

Not really sure where to start with this one. Could anyone help me out?
 

Coopziana

Veteran
Veteran
Joined
Jan 18, 2016
Messages
115
Reaction score
51
First Language
English
Hi,

Since digging around on google it seems a few people have asked this same question. But I'm yet to find a solution, which is a shame.
I'm using Yanfly's Action Sequence so I figured I might be able to use an "Eval" to make this work. I found a guy here talking about it and he used:

<After Eval>
BattleManager.getSprite(user).setHome(user.homeX()-100,user.homeY());
</After Eval>

But after trying that, I just get errors. I'm sure it's on the right tracks, however I have no idea what eval script i'm going to need to make this work.
Looking at the Eval above It's not really what I want anyway, since I want my enemies to perform an attack and then move to a random location within a set area (Left side of the screen but not floating in the sky or below the actor panel at the bottom.), which the one above does not do, it merely shifts the enemy back 100 Pixels. But as I say, it's along the right lines.

Can anyone help me with a working Eval or perhaps a script that will let me accomplish this? I'm pretty sure a lot of people will be glad to find a solution for this!
 

clitvin

Veteran
Veteran
Joined
Oct 26, 2015
Messages
111
Reaction score
16
Primarily Uses
Well the code is easy, the hard part is figuring out the math for getting a random number withing a specific box.
 

Coopziana

Veteran
Veteran
Joined
Jan 18, 2016
Messages
115
Reaction score
51
First Language
English
Well the code is easy, the hard part is figuring out the math for getting a random number withing a specific box.

Well depending on the code I may be able to use math.random to achieve what I want. First and foremost I need the code so I can have something working that I can build upon and play around with.
 

Latest Threads

Latest Posts

Latest Profile Posts

Today was not a really productive day, but at least i got some bust sketches going <3
E7QXZHNXoAIkpG8
hmm in exploring MZ with FOSSIL... I see I'll probably need to stick with MV for now as none of the menu altering plugins I use work on MZ lol. and I don't have the money to dump into what I would need in some cases to update plugins to their MZ versions. Everytime I think of converting, 5 or more reasons popup on why I shouldn't.
Hmm... Game has 91 views, 25 downloads, 5 reviews and netted me 7 additional followers. Meanwhile the image I posted just yesterday on Imgur to showcase it has 45,197 views. Interesting, I think I have a new advertising idea. Also Twitter? The post got 16 retweets, 20 likes, and 1,683 views.... And a whole 3 hits to my game, completely valueless. I am glad I did this game jam, this information is quite valuable.
We're playing another Touch the Stars game jam entry, come join us! :D
Ok is telling someone that their drawing isnt good rude

Forum statistics

Threads
113,656
Messages
1,076,479
Members
147,678
Latest member
SLTY
Top