[XP] MP Slip Damage state script?

Status
Not open for further replies.

callmedan

Friendly Stranger
Veteran
Joined
Dec 27, 2015
Messages
591
Reaction score
913
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,600
Reaction score
1,931
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,600
Reaction score
1,931
First Language
English
Primarily Uses
RMMV
Damn, I'd forgotten how many things XP lacked.
 

callmedan

Friendly Stranger
Veteran
Joined
Dec 27, 2015
Messages
591
Reaction score
913
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
245
Reaction score
90
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
30
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
591
Reaction score
913
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
245
Reaction score
90
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
591
Reaction score
913
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
245
Reaction score
90
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
591
Reaction score
913
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,374
Reaction score
5,031
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 Profile Posts

Hello I buyed RPG Maker VX Ace a long ago and I want to use it again but in the meantime I changed my pc but I lost the paper with my product key on so I can't use RPG maker again... someone can help me please ? or there is no hopes ?:'( ( I have a bad english I'm sorry )
I was away this days here in the forum but it was for a good cause!
The trailer of the demo of Luke Inn is on youtube and I am so happy!
I need to see the bugs of the game but I am happy that I have new content to show!

The last part of the modern interior will be ready soon. This will be a B-tile. With interior items for the kitchen, bathroom, toilet and storage room.
This frantic shooting ARPG plugin for MZ looks really great. Here is the link to a post from the official Japanese RPG Maker forum.
We start in 5 minutes!

Forum statistics

Threads
102,940
Messages
996,118
Members
134,393
Latest member
CheemsBurbger
Top