Skunk

Melody Master
Veteran
Joined
Mar 2, 2013
Messages
1,081
Reaction score
417
First Language
English/Slavic
Primarily Uses
RMMV
I am using mp as battery life in my game, I am wondering if I make a battery pack item that I can have it reflect the amount
of mp the player currently has.
And as I charge the pack, the mp goes up.

Ive tried a few methods with no luck.
 

Aesica

undefined
Veteran
Joined
May 12, 2018
Messages
1,826
Reaction score
1,731
First Language
English
Primarily Uses
RMMV
A few questions:

1. Will it be linked to a specific character? An item in the items menu isn't linked to any character by default, so you'll need to have it, for example, always show the MP of actor 1, 2, or whatever specifically.
2. How will refilling it affect the actor's mp? Like, will you use the item to boost their mp? Some events in the world, etc?

For 1, you'd just need a text/message plugin that gives you an eval text code. AES_MessageExt in my signature (for MV, not sure what engine you're using) lets you do that.

For example, using the following in the description:

Code:
Actor 1's MP is \eval<<<$gameActors.actor(1).mp>>>

WIll show:

Code:
Actor 1's MP is 50

Assuming their MP is 50, of course.
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
43,451
Reaction score
15,231
First Language
English
Primarily Uses
RMMV

I've moved this thread to Plugin Requests. Thank you.



Anything about "how to implement" should go into either the support forum or the plugin requests/support forum for the engine you are using.
 

Skunk

Melody Master
Veteran
Joined
Mar 2, 2013
Messages
1,081
Reaction score
417
First Language
English/Slavic
Primarily Uses
RMMV
A few questions:

1. Will it be linked to a specific character? An item in the items menu isn't linked to any character by default, so you'll need to have it, for example, always show the MP of actor 1, 2, or whatever specifically.
2. How will refilling it affect the actor's mp? Like, will you use the item to boost their mp? Some events in the world, etc?

For 1, you'd just need a text/message plugin that gives you an eval text code. AES_MessageExt in my signature (for MV, not sure what engine you're using) lets you do that.

For example, using the following in the description:

Code:
Actor 1's MP is \eval<<<$gameActors.actor(1).mp>>>

WIll show:

Code:
Actor 1's MP is 50

Assuming their MP is 50, of course.
1. Since I am only using one character it will be linked to them.
2. Refilling it depending on the pickup or event will just add mp, which in game is referred to as "power".

What I was hoping was to display the current mp on the item when you look at it in the menu.

I will try your method and see if I can get it working.
Thanks for your reply! :D


EDIT:

I tried your suggestion but that doesnt do what I need it to unfortunately :/
I might try going about this another way.

Instead of using pick up items to charge the battery pack I will use a certain terminal that the player can recognize that allows them to charge the battery pack.

Thanks for your help :)
 
Last edited:

Latest Threads

Latest Posts

Latest Profile Posts

Who's a fan of firearms? The 5 on the bottom row (not including the green laser ones) I made pretty recently. I plan for most of these to be in my project.

Screenshot 2021-09-28 165924.png
Doing RPG Maker News for 28th September 2021

RMMV - Skip script errors:

For game developer testing purposes.
You know, I really get to farm likes since I post all of @Avery and @hiddenone 's blog tutorials on the forums...
Back from a very long hiatus with a new project woo
This is my battler placeholder image trying out art styles too I want to fake a backview battle system
I think I will want portraits and battle sprites to be 2D and stick to pixel art for overworld not 100%sure but pretty sure its easier to make pixel art for overworld sprites, events and maps and stuff.
Placeholder.png

Forum statistics

Threads
115,441
Messages
1,089,951
Members
150,229
Latest member
Mythphnx
Top