Favorite Items?

McCake147

Adamant Ailurophile
Member
Joined
Oct 18, 2015
Messages
2
Reaction score
0
First Language
English
I am making a game in which one of the characters likes a specific food (donuts). I want to make it so that donuts heal him more HP than to other characters. Is there any way to do this? I want an item to have a different impact on one specific actor than it does on the other actors. Also mind that I am in MV, so some scripts may be outdated OR it could be easier with the advanced tools I have. If it does involve scripting, I don't know how to script   :rswt:  sorry

On an unrelated note, you get the donuts at a chain I made up called "Dippin' Donuts".
 

SinのAria

The Chaotic One
Veteran
Joined
Feb 11, 2014
Messages
142
Reaction score
72
First Language
C++
Primarily Uses
N/A
There is a way to do this, but it may require some scripting.  There technically is a way to do this with events, but you could end up using so many events that it wouldn't be funny.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,108
Reaction score
13,713
First Language
English
Primarily Uses
RMMV
I've moved this thread to MV Support. Please be sure to post your threads in the correct forum next time. Thank you.

You can add a check in the damage formula to see if the target ( B) is a specific actor, then give them more than others.

b.actorId() === 3 ? 100 : 50
says if the target actor id is 3, then heal for 100 hp, otherwise heal for 50

This assumes that you will only allow actors to be targetted by this item.
 
Last edited by a moderator:

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

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,037
Messages
1,018,464
Members
137,821
Latest member
Capterson
Top