RPG Maker Forums

Hey hey,
So I'm trying to do something where any character can use a consumable item, but using it on one particular character triggers a change in a variable. I've patched together a snippet of code, but it doesn't seem to be doing anything- maybe I'm not using the right syntax, or maybe I'm just going about it completely wrong, I'm not sure, but I'm a total beginner to JS, so any help at all would be appreciated.
Code:
if ($gameActors.actor(1) .consumeItem) {
$gameVariables.setValue(18, 3);
}
Thank you!

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,040
Messages
1,018,476
Members
137,824
Latest member
dobratemporal
Top