EVENT HELP - ENEMY EVENT 'SEEING' YOUR HERO - AUTO-ATTACKING

Posts

Pages: 1
kitten2021
Returning from RMVX Death
1093
I just read Kentonas Writing on this very thing but realized after attempting this that it was for RM2k3. I know this has been asked before, but I have scoured up and down the forums here and else-where looking for it and no one has it in a simpler form besides multiple variables in each event. It just makes it too big of a mess for me to have to constantly repeat...

What I am looking for: Enemies to be visible in my world and to chase the Hero upon coming within 3-tiles from them and start a battle event upon contact.
What I have found so far:
http://rpgmaker.net/tutorials/16/
http://www.rpgmakervx.net/index.php?showtopic=27180&st=0
Have these both been attempted? Yes
Engine Being Used: RPG Maker VX
Good Example of game using this method: http://rpgmaker.net/games/1722/ (Avarice, created by: Anaryu, Solitayre and Krisanna)

If anyone can help me with a simpler (in other words, more blatantly put, idiot proof) way of doing this, I would greatly appreciate it. ;)
My game does this. Its a script from Yanifly.
LouisCyphre
can't make a bad game if you don't finish any games
4523
Yanifly.

Yanfly.
kitten2021
Returning from RMVX Death
1093
Awesome! Thanks guys!
LouisCyphre
can't make a bad game if you don't finish any games
4523
Pffft, computers. *scratches problems down on cuneiform tablets*

"Wait, you can't be facetious with me! Only I can express my thoughts of others in a scathing and unwarranted manner! I want to feel superior, dammit!"
LouisCyphre
can't make a bad game if you don't finish any games
4523
Have you ever developed with a "real" language like Java or C, F-G? They import packages to do stuff they shouldn't have to do on their own - like, say, reading keyboard input via java.util.Scanner - just like this. Why write code that's written for you?

I'm just trying to understand why this person is a neanderthal for wanting instanced hero x/y and self x/y variables for each enemy event instead of using hundreds of hand-set global variables for no added benefit.

Whispered Aside II: As soon as someone starts quoting posts in parts I'm out.
Craze
why would i heal when i could equip a morningstar
15170
You can

wait what

Fallen-Griever, how about you make the events required on every map in a full-length RPG required to do this? Do it. Finish it.

Then plug in Yanfly's script, learn its ins and outs, and realize you just saved yourself over a hundred hours.
Craze
why would i heal when i could equip a morningstar
15170
You made your sprite porn, but you didn't make the tilesets. Or the entire fucking 2k3 editor and its gross algorithms.
LouisCyphre
can't make a bad game if you don't finish any games
4523
post=136873
@Chaos:I'm not going to argue with your central point because you're right when you say: "Why write code that's written for you?"

The difference between people who "import packages to do stuff they shouldn't have to do on their own" and people who ask for RGSS scripts is this: the former tend to understand the code they're importing whereas the latter usually do not. I dislike the latter attitude because I believe you shouldn't use something if you don't understand how it works - the OP seems to have this kind of attitude.

See where I'm coming from?

Java example continuation: Most Java users have no clue how the Scanner class turns keystrokes into integers and Strings, they just know that they use next() to read the next String token, nextInt() to read the next Integer token, and so on. They don't know the nuts and bolts of it because they don't need to - it's already taken care of for them. All they have to do is read and implement the instructions.

BONUS - Common VX misconception: "Scripts can be pasted in without any reading and will proceed to function perfectly."
This is not the case - for 99% of the scripts out there, the user must take time to either configure the script to fit their game, or to implement tags on skills and such that invoke features of the script (nextInt() example comes to mind). Just like a tutorial or a Java package, the user has to have a basic understanding of the script's purpose (use the <5 random foes> tag to hit five random foes) in order to get it to function.

I get where you're coming from, and I'm trying to point out that it's based on a semi-flawed assumption. See where I'm coming from?
I really don't understand how half of the code in the scripts I import work! Still learning...

Also, I made a full length game with proximity code on every map. It was tedious. But I did the best I could with the tools at hand. But who really cares? How one goes about making a game is irrelevant, especially to the end user.
Max McGee
with sorrow down past the fence
9159
I did this in Wanderer by looking at how it was done in V&V and copying that. I call this process "Reverse Engineering", it's a pretty key process in learning how to make games and I don't think it's anything to be ashamed of.

Anyway...I think a fair number of events and switches were used (along with maybe one script?) and it definitely wasn't just auto-handled by a Yanfly script.

So....???

Perhaps I have mis-estimated the scale of the problem, but I still stand by the idea that "if you're going to use a script you should know how it works".

Oh god bro this eliminates like every game I have made since 2008.
LouisCyphre
can't make a bad game if you don't finish any games
4523
post=136899
Perhaps I have mis-estimated the scale of the problem, but I still stand by the idea that "if you're going to use a script you should know how it works".


This I can pretty much agree with, and have no arguments against.
kitten2021
Returning from RMVX Death
1093
...

Good grief, what have I started...

post=136865
DURR HURR VARIABLES 2 COMPLEX GIV ME SCRIPT TO COPY-PASTE PLZ.


Personally, FG, if I hadn't been in this group as long as I have been I would take that comment as a very large insult; but I know you well enough to know your just being your self.

And in lo of your comments I have a response:
If I knew how to script I would of just scripted it myself. I am not an idiot, I had attempted everything I possibly could - plus did all research I could - as I previously posted. As well, I stated that if someone could explain it to me in a - IDIOT PROOF - way, I would of been happy to do it myself. But, instead, the script was just given to me with no incentive to try and explain to me how to LEARN to do it on my own.

Therefore, FG, I believe you're incorrect in saying that I just simply wanted the script given to me and hope this ends soon so as to prevent any troubles or anything else here in this thread.

@Kent, Max and Chaos:
I appreciate what was said up there, but in all honesty, I am an idiot to scripting. When I started here though, out of a scale of 1 - 10 I was a -5 in knowledge with scripts; now I can proudly say I am a +3 - 10 with knowledge in scripting on my own scale. MUCH thanks go towards you guys though... (you as well, FG.)

(Just thought I would get my own two cents in to save my own face, btw. No offense meant to you hun.)
Pages: 1