Melee and ranged skills and effects

Draw

Veteran
Veteran
Joined
Oct 11, 2015
Messages
83
Reaction score
1
First Language
French
Primarily Uses
Hi everyone !

I was thinking about something : In my game I'd like to have two separates skills types > Melee skills and ranged skills (more like magic spells). And I'd like to add effects, for exemple a frozen state that disable all melee type skills for the target. Flying or faraway enemies couldn't be trageted by melee skills also.

It is possible to make that with the default tools or I need a script ?
 

Henryetha

Veteran
Veteran
Joined
Jan 14, 2016
Messages
388
Reaction score
206
First Language
german
Primarily Uses
I think it should be possible.
On creating the enemies you can make it so that certain damage is negated.

I am just remembering a tutorial from Driftwood Gaming where he explains how to set up a mining system.
Those ores ignored damage completely if not done with a pickaxe.
There it was possible by setting up an element for it. Maybe just add an element called "melee".. However, I'm not sure, how it will work combined with other elements (like when your melee weapon doing fire attacks).

Well.. it's just a vage basic approach to think about.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
30,948
Reaction score
7,460
First Language
German
Primarily Uses
RMMV
it is possible by default, even if a lot of people use scripts or plugins to make it easier.

Basically you need to add the conditions to the enemy attack patterns to when and when not the enemy can use a skill.
For the actors it's easier as you can seal skills or skill types.
 

Draw

Veteran
Veteran
Joined
Oct 11, 2015
Messages
83
Reaction score
1
First Language
French
Primarily Uses
I'm on RM Vx Ace, and I don't really know how to do it...

The idea is simple : if an enemy as the <flying> tag, it will avoid all <melee> skill and simple attacks if the weapon used is <melee>

Some skills and weapons with <ranged> tag can hit a flying enemy, easy

I only found one old script, but it was only for weapons, melee skills could hit a flying enemy, there was no tag

And without a script, I really don't know how to do it
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,290
Reaction score
11,696
First Language
English
Primarily Uses
RMVXA
'Game Mechanics Design' is for looking at aspects of game play at a more conceptual level. "How do I...?" questions belong in the Support forum for the engine you are using.

[move]RPGMaker VX Ace[/move]
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,565
Reaction score
541
First Language
English
Primarily Uses
RMVXA
You could just set each flying enemy to PDR 0%
and use a new element for the attack

But I think having a script for what you want would be really nice. I'd want that too. :ehappy:
 

Sanguine Persona

Villager
Member
Joined
Jun 29, 2017
Messages
14
Reaction score
4
First Language
English
Primarily Uses
RMVXA
Try looking at this script:
https://forums.rpgmakerweb.com/inde...-forced-actions-now-yanflys-compatible.17950/

It looks like it would do what you want it to.

I did a bit of testing on my own and I am pretty sure that it's possible to do it without scripts... except the solution I just about found was ugly as sin. I wouldn't bother trying this unless you can get a script for it. My solution was so horribly complicated and bad that it looked like Satan himself had written it.
 

Sanguine Persona

Villager
Member
Joined
Jun 29, 2017
Messages
14
Reaction score
4
First Language
English
Primarily Uses
RMVXA
Damn, sorry to get your hopes up with that.

Anyway I did some more checking and I have found a not great but not terrible way of doing it.

first you need an auto state script like this one:
http://www.rpgmakercentral.com/topic/7596-auto-states/

this allows you to add a flying state to all flying enemies at the start of a battle. Then you need to have all of your melee skills in the database have their damage formula in the following method:

if b.state?(X);0;else;ACTUAL DAMAGE STUFF;end

Where X is the id of the Flying State and the ACTUAL DAMAGE STUFF is the normal formula stuff like a.atk*4-b.def*2 etc. This will make it so that if they have the flying state then attacks with this formula style (i.e. the melee ones) will do 0 damage.

though looking at the supporting script to the auto state one:
http://www.rpgmakercentral.com/topic/7395-effect-manager/
you might be able to come up with something more effeicent using that but that would require a bit more expertise than I have.
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,565
Reaction score
541
First Language
English
Primarily Uses
RMVXA
Go to page two of that link. there is 1 member that still has a working link for the demo they were having trouble with. the script is in there.
 

geri_khan

Veteran
Veteran
Joined
Aug 16, 2013
Messages
32
Reaction score
6
First Language
English
Primarily Uses
Hi, author of that script. I've updated the thread with fixed links, since I occasionally get people asking about it.

If you do choose to use it, than a setup like this on melee skills would work (assuming you have a flying state that is , say, state number 21)

Code:
ASTstart
ASTinclude:opponent
ASTremove:b.state?(21)
... will remove enemies from the targeting list who are flying.

That said I can't quite recommend my own script. If you can find other skill targeting scripts that do the same thing, it may be better to go with them. It is, to me, very much an amateur production now and I no longer have the time to maintain it if people find bugs etc.
 

Draw

Veteran
Veteran
Joined
Oct 11, 2015
Messages
83
Reaction score
1
First Language
French
Primarily Uses
I'll try it and see what I can do.

If I can't I'll try to find another way.
 

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

Latest Threads

Latest Profile Posts

I always told my DA fans how much I hate slot machines. They're fine in games as a risk-and-reward system. But when you're spending REAL MONEY in a Vegas casino to try and hit the jackpot (which very, very few people will), it can really hurt your budget. Gambling is a bad habit, and I don't like wasting my money on a slim chance. Go to Vegas for the experience, not the jackpot.
Took the kids to a corn maze. They gave us a map and had lights at certain points in the maze. Not overwhelming... or underwhelming... just... whelming.
Okay, vacuuming fruit flies out of the air is surprisingly effective.
Finally finished my menu redesign after like a month of coding! I hate designing menus... Good news though - I thought of a complete redesign for it now, so yay...
Still no scam calls all day... also I got a quick gig designing a mascot drawing for a small business, so I might actually make some green of my own after all. That would be a perfect job for me, since I love art and digital design.

Forum statistics

Threads
104,390
Messages
1,006,035
Members
135,919
Latest member
SuitonKoton
Top