[XP] MP Slip Damage state script?

Status
Not open for further replies.

callmedan

Friendly Stranger
Veteran
Joined
Dec 27, 2015
Messages
592
Reaction score
918
First Language
Vietnamese
Primarily Uses
RMXP
Hi. I’d like to achieve a state that consume actor’s MP (or SP as it’s called in XP). It’s just like the Poison state but it would affect the MP instead of HP.
I googled it but didn’t find any for XP.

Any help would be appreciated. Thanks in advance!
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,604
Reaction score
1,959
First Language
English
Primarily Uses
RMMV
Why do you need a script for that? Is MP Damage not already an option for states in the database?
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,604
Reaction score
1,959
First Language
English
Primarily Uses
RMMV
Damn, I'd forgotten how many things XP lacked.
 

callmedan

Friendly Stranger
Veteran
Joined
Dec 27, 2015
Messages
592
Reaction score
918
First Language
Vietnamese
Primarily Uses
RMXP
@KK20 Thank you! It works great.
Btw, how can I edit it so there's no screen flash when SP damage happens? I'd like to use another effect instead, like change screen tone or play a animation.
 

KK20

Just some XP Scripter
Veteran
Joined
Oct 11, 2018
Messages
280
Reaction score
106
First Language
English
Primarily Uses
RMXP
It's literally the last block of code in the script. It checks each actor in the party if they have a slip damage state. If so, it flashes the screen red or green.
 
Joined
Oct 26, 2018
Messages
32
Reaction score
4
First Language
English (AUS)
Primarily Uses
RMXP
You could make a hash module script that adds extra info to the statuses, or if that's not your thing... you could try editing the scripts to deal the slip damage to the SP instead of the HP when dealing with certain status effects. You want to edit the slip_damage_effect on Game_Battler 3 and check_map_slip_damage on Game_Party.

Jeez, even RPG Maker 2003 has more options for "Slip damage".

Oh yeah, and you also want to edit slip_damage? in Game_Battler 2 to check for the states you want to do damage to SP instead of HP.
 
Last edited:

callmedan

Friendly Stranger
Veteran
Joined
Dec 27, 2015
Messages
592
Reaction score
918
First Language
Vietnamese
Primarily Uses
RMXP
@KK20 Thanks! May I ask how to get the MP damage to apply the effect to it only? Because I want to keep everything as default, just different effect for MP damage.

@BloodSoakedPuppeteer98 Thanks! The script KK20 mentioned above has solved most of what I asked for.
 

KK20

Just some XP Scripter
Veteran
Joined
Oct 11, 2018
Messages
280
Reaction score
106
First Language
English
Primarily Uses
RMXP
You're going to have to explain what kind of effect you want.
 

callmedan

Friendly Stranger
Veteran
Joined
Dec 27, 2015
Messages
592
Reaction score
918
First Language
Vietnamese
Primarily Uses
RMXP
Sorry for not explaining it better. It's probably Change screen tone or Show picture or maybe both.

For more details, I'm creating a skill that displays the mana traces. This skill is used as a switch to turn on/off the mana vision. If the player forgets to turn it off, it will keep draining an actor's MP. The effect is to remind players that the skill is on, and it's disposed when it's off. I was inspired by Witcher Sense in The Witcher 3. That's what I'm trying to achieve.
 

KK20

Just some XP Scripter
Veteran
Joined
Oct 11, 2018
Messages
280
Reaction score
106
First Language
English
Primarily Uses
RMXP
Just a question: is there any reason why this has to be a state and not just some elaborate common event system?

You would just make a skill call a common event that toggles a switch on or off and applies the screen effect that you want. A second common event is set to a parallel process that requires the aforementioned switch to be on, which will do the MP/SP drain, animate something, etc.
 

callmedan

Friendly Stranger
Veteran
Joined
Dec 27, 2015
Messages
592
Reaction score
918
First Language
Vietnamese
Primarily Uses
RMXP
@KK20 Oops! I didn’t know I could do that with common event. The common events work great. Thank you so much! :)
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
7,829
Reaction score
5,221
First Language
Dutch
Primarily Uses
RMXP

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts

I should make an itch.io page one of these days...Maybe for my next large update.
whoops, forgot to get started with Advent posts! coming shortly!

Another demo of the dynamic cloud cover system, this time complete with the original soundtrack composition (which sounds even goofier at this 2x playback speed). Much left to tweak but I like it so far.
And now, some custom emotions to give the character life... :kaoslp:
First Person Combat Test Video. Simply showing off a very early concept video for an open world 3D game in MV.

Forum statistics

Threads
105,776
Messages
1,016,337
Members
137,462
Latest member
AbyssalLizard
Top