State Damage

Ruth Studio

Veteran
Veteran
Joined
Oct 19, 2017
Messages
40
Reaction score
20
First Language
English
Primarily Uses
RMMV
I've been prototyping a game where the player goes out West, on a Trail, with multiple party members, where death is around every corner.

The game is on a loop with the player moving left.

One issue I am having is the State Damage. I can add States to the players randomly. However I don't believe the engine registers the steps the player makes when 'Set Movement Route' is initiated therefore no damage is going to the player who is infected by dysentery.

Is there a way to go into the code and adjusting this?
 

Pix3M

Veteran
Veteran
Joined
Feb 4, 2019
Messages
99
Reaction score
81
First Language
English
Primarily Uses
RMMV
It's doable with a minor change in code but first, do you have any plugins that allows state damage every step? Testing it on a blank project and the vanilla code doesn't have an obvious state damage feature when walking on the game map
 

Ruth Studio

Veteran
Veteran
Joined
Oct 19, 2017
Messages
40
Reaction score
20
First Language
English
Primarily Uses
RMMV
It's doable with a minor change in code but first, do you have any plugins that allows state damage every step? Testing it on a blank project and the vanilla code doesn't have an obvious state damage feature when walking on the game map
My list of plugins are pretty small at the moment. I tried the Slip damage plugin, but again the system doesn't register the steps.
 

Pix3M

Veteran
Veteran
Joined
Feb 4, 2019
Messages
99
Reaction score
81
First Language
English
Primarily Uses
RMMV
Turns out the vanilla code does allow for state damage to register but only if the player is not being controlled by an event and it happens only once every twenty steps by default.

Wrote a simple plugin that will make state damage register even when the player is moved via event. It also lets you choose how many steps it takes for damage to register. This plugin will make it so all movement will register state damage so if you have your caravan move around and you don't want any state damage registered then we might want a plugin a little fancier than what I hacked together

Also message boxes may automatically pop up mid-event if states are removed by walking enough steps. A quick test show me they don't interfere with event functionality
 

Attachments

Last edited:

Ruth Studio

Veteran
Veteran
Joined
Oct 19, 2017
Messages
40
Reaction score
20
First Language
English
Primarily Uses
RMMV
Turns out the vanilla code does allow for state damage to register but only if the player is not being controlled by an event and it happens only once every twenty steps by default.

Wrote a simple plugin that will make state damage register even when the player is moved via event. It also lets you choose how many steps it takes for damage to register. This plugin will make it so all movement will register state damage so if you have your caravan move around and you don't want any state damage registered then we might want a plugin a little fancier than what I hacked together

Also message boxes may automatically pop up mid-event if states are removed by walking enough steps. A quick test show me they don't interfere with event functionality
Thanks for the plugin! However, when I tested the plugin out, for whatever reason it did not remove HP from the party members when adding a poison state and movement route.
 

Pix3M

Veteran
Veteran
Joined
Feb 4, 2019
Messages
99
Reaction score
81
First Language
English
Primarily Uses
RMMV
Thanks for the plugin! However, when I tested the plugin out, for whatever reason it did not remove HP from the party members when adding a poison state and movement route.
Does the poison state have a negative regeneration trait? When I was testing this plugin, it seems to be the main way that it subtracts HP
 

Ruth Studio

Veteran
Veteran
Joined
Oct 19, 2017
Messages
40
Reaction score
20
First Language
English
Primarily Uses
RMMV
Does the poison state have a negative regeneration trait? When I was testing this plugin, it seems to be the main way that it subtracts HP
Yeah strange, it is. I'm just fishing for reasons, would it be the different versions of MV that we are using?


1599849972396.png
I tried both ways.
1599850128453.png

1599850150606.png
 

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
3,729
Reaction score
4,684
First Language
English
Primarily Uses
RMMZ

I've moved this thread to RPG Maker MV Support. Please be sure to post your threads in the correct forum next time. Thank you.

 

Pix3M

Veteran
Veteran
Joined
Feb 4, 2019
Messages
99
Reaction score
81
First Language
English
Primarily Uses
RMMV
@Ruth Studio First and third attachments aren't showing for me.

My version of rpg_objects.js is 1.6.1. And yours?
Plus the plugin is installed in the plugin manager as well, right?
 

Ruth Studio

Veteran
Veteran
Joined
Oct 19, 2017
Messages
40
Reaction score
20
First Language
English
Primarily Uses
RMMV
@Ruth Studio First and third attachments aren't showing for me.

My version of rpg_objects.js is 1.6.1. And yours?
Plus the plugin is installed in the plugin manager as well, right?
Weird. Updated to 1.6.1. Not sure what is going on/
Plugin is in:

1599909998479.png
 

Ruth Studio

Veteran
Veteran
Joined
Oct 19, 2017
Messages
40
Reaction score
20
First Language
English
Primarily Uses
RMMV
@Ruth Studio First and third attachments aren't showing for me.

My version of rpg_objects.js is 1.6.1. And yours?
Plus the plugin is installed in the plugin manager as well, right?
Found the issue! Works perfectly, thank you! Worried I had create a thousand if statements.

In the code you were missing the semi-colon:

Pixem.stepsForTurn = Number(Pixem.Parameters['Steps For Turn'])
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Frostorm wrote on Featherbrain's profile.
Hey, so what species are your raptors? Any of these?
... so here's my main characters running around inside "Headspace", a place people use as a safe place away from anxious/panic related thinking.
Stream will be live shortly! I will be doing some music tonight! Feel free to drop by!
Made transition effects for going inside or outside using zoom, pixi filter, and a shutter effect
I have gathered enough feedback from a few selected people. But it is still available if you want to sign up https://forums.rpgmakerweb.com/index.php?threads/looking-for-testers-a-closed-tech-demo.130774/

Forum statistics

Threads
105,995
Messages
1,018,208
Members
137,775
Latest member
yj8570
Top