Floor/element damage for only a specific character.

mikey1393drago

Dragon Fanatic
Veteran
Joined
Aug 31, 2016
Messages
69
Reaction score
6
First Language
English
Primarily Uses
RMVXA
Hey. I have another thing I need help with. It is a very recent idea in my game, to have floor damage affect only a single character when a player plays as that particular character. i.e. If a character weak to water walks through a water tile, then only they get hurt.

I also hope to have elemental effects for only a single character if the player is playing as that particular character. i.e. If a character weak to wind walks through a wind blown from a dungeon turbine, then only they get hurt by the wind.

Is this at all possible to fulfil? And I am thinking it would only work with a script call.
Any ideas please?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
I think you'd be better off requesting a script for that.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,355
Reaction score
7,667
First Language
German
Primarily Uses
RMMV
It can't work with a script call as there is nothing in the engine that does this.

There are three ways how to solve this, but each has different problems.

1) a script to call a common event on region ID, then check inside the common event who the player is and make an effect
Problem here is that if you have too many different options, you'll need to fill the maps with region IDs for this and can't use region IDs for other functions as only one region ID per map tile is allowed

2) parallel process common event using control variable and get location info to identify if the player stepped on a certain tile
This will not only require some advanced knowledge of eventing, it also adds to the lag of the game - on slower computers it won't work

3) A script like Shaz mentioned above
This will need someone with programming knowledge to write it for you, and you need to give a full description before it can be written.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
2) would also need to consider whether the player has actually moved, so it's not repeatedly giving damage just because they happen to be standing on a particular tile. It would need to monitor for the player to move, then see if they've moved onto the right kind of tile, then see if they've taken the required number of steps for damage to be dealt, and then determine who should get the damage.
 

mikey1393drago

Dragon Fanatic
Veteran
Joined
Aug 31, 2016
Messages
69
Reaction score
6
First Language
English
Primarily Uses
RMVXA
Right. Okay. Thanks for answering Shaz and Andar. I might not use the idea in the game, it is just something for me to learn in case I do decide to.
Do you know anyone who could write this script for me, or do you know if someone on this forum has written a script like this?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,355
Reaction score
7,667
First Language
German
Primarily Uses
RMMV
There are several scripters who have the knowledge, but unfortunately most moved on to MV and I don't know who still check the script requests.
And most likely it has to be a custom script if there are more than a few options - it would probably become too complex for a general use script (and cost too much processing power) if you could set things by notetag with dozens of different actors on dozens of different tiles.

You can only post a script request and hope if you want to go that way, which is why I mentioned the other options.
 

mikey1393drago

Dragon Fanatic
Veteran
Joined
Aug 31, 2016
Messages
69
Reaction score
6
First Language
English
Primarily Uses
RMVXA
Cheers.
I'll post one up tomoz, in case the advice you gave me Andar does not work. Even so, maybe this damage may not happen as the characters are human throughout most of the game, I'm logical when it comes to things like this. I just want to see if it could work.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
An alternative would be to give all other actors a zero Floor Damage Rate (FDR, under SP-Parameters) - unless, of course, you want them to take floor damage elsewhere.

EDIT
Ah - had a thought just as I was hitting the post button.
You could use Shaz's script which dynamically changes parameters on the fly. When the party enters the particular map/set of maps where you want this to happen, you could apply the FDR feature to all actors except the one in question. Then on the transfer out, you could remove that feature.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,848
Messages
1,016,974
Members
137,562
Latest member
visploo100
Top