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,804
Reaction score
1,713
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
42,890
Reaction score
14,994
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 Profile Posts

Here in Fla were are seeing crazy covid spikes and some vaccinated getting bad infections. I had a mild fever on Thurs but it went down fast. How is everyone else doing. Hopefully you are all well. :)
Wish I was better at art, specifically that I was faster at it, bc this one NPC took Several Days to complete! It's gonna take So Extremely Long to do all of the art for my game, never mind writing it... Anyways, here's my gorgon, Hopernica Sthyxis!

57b88732c7abbcd84981dacf624a98495af61fcc.gifv
Idk if this is my ADHD or if it's a common problem. But I cant stay motivated for anything. I want to work on so many different things at once. Game dev, skateboarding, ranking up in League, playing OSRS, fitness, nutrition, relationships. It's like, where do I even begin?
Well. Looks like I need to redo the entire battle system in order to have the things I want in it. Also I'd like to say that console.log() is the greatest function in Javascript XD.

Forum statistics

Threads
113,817
Messages
1,077,696
Members
147,872
Latest member
hibixon
Top