SpinnyFunny

Villager
Member
Joined
Mar 23, 2023
Messages
6
Reaction score
1
First Language
English
Primarily Uses
RMMV
Hello,

I'm trying to make an attack that will restore mana to the party if a plugin-specific variable is high enough. I'm using SRD's Timed Attack plugins (http://sumrndm.site/timed-attack-wheel/).

Right now, my code is something like:

if ($gameTemp.tas_power >= 0.75)
$gameParty.aliveMembers().addBuff(3,3);

This isn't working though, really not great with code, any help would be appreciated.
 

Shaz

Keeper of the Nuts
Global Mod
Joined
Mar 2, 2012
Messages
46,153
Reaction score
16,960
First Language
English
Primarily Uses
RMMV

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

 

ATT_Turan

Forewarner of the Black Wind
Regular
Joined
Jul 2, 2014
Messages
11,262
Reaction score
9,250
First Language
English
Primarily Uses
RMMV
$gameParty.aliveMembers().addBuff(3,3);
This isn't valid syntax - aliveMembers() is the array of all the living party members, and addBuff() needs to be called on a specific actor.

Also, it wouldn't do what you said - adding a buff doesn't restore mana (MP).

You could do something like:
Code:
$gameParty.aliveMembers().forEach(actor => actor.gainMp(20));
That will restore 20 MP to each living actor in the party.
 

SpinnyFunny

Villager
Member
Joined
Mar 23, 2023
Messages
6
Reaction score
1
First Language
English
Primarily Uses
RMMV
This isn't valid syntax - aliveMembers() is the array of all the living party members, and addBuff() needs to be called on a specific actor.

Also, it wouldn't do what you said - adding a buff doesn't restore mana (MP).

You could do something like:
Code:
$gameParty.aliveMembers().forEach(actor => actor.gainMp(20));
That will restore 20 MP to each living actor in the party.
Ohhh, I see, thank you so much! Sorry, I had a few different things I was trying to get to work between the buffs and the MP, so my code looks even more confused haha.

Thanks again!
 

Latest Threads

Latest Profile Posts

Me: "Who the heck would play a game with no stakes, no enemies, and all you do is raise and breed bees?"
Later after playing it. - "Holy crap, I didn't know it was 1:30. Where'd my time go?"
The site is being slow and funky again. IS SOMEONE CRAFTING POEMS?!
So yeah, @TRIDIUM @TESTOSTERONE, I wuz like, "What do they mean by borderline and boundaries?"

And then, y'all know this girl?

actress1.png

alice_bikini.png

The clothes? They're just a, um, quick edit. :kaoswt:
I've uploaded the opening cutscene from my game to my channel. It basically introduces us to the first three characters, and what their relationships are:
Cosmic Inferno: Opening dialogue
I don't want to start a panic...but everyone, check the color of your milk!
IMG_20231002_082329.jpg

Forum statistics

Threads
135,021
Messages
1,253,018
Members
177,951
Latest member
DarkKing
Top