Klunky2

Veteran
Veteran
Joined
Jul 2, 2017
Messages
141
Reaction score
12
First Language
german
Primarily Uses
RMMV
Hello I have the following battle formula it's simple:

if(a.IsActor() && a.isStateAffected(66)){0;}else{150;}

This is an healing item. It should check if the one who uses it is an actor and if it's affected with a state. Unfortunelately as soon I use that item the game crashes with the message: "TypeError: a.IsActor is not a function" why does the programm believes that.
I looked at the "Battle Formula 101 thread" and definitely it was listed. What am I doing wrong?
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
4,996
Reaction score
3,171
First Language
English
Primarily Uses
RMMV
You're misspelling it. It's not IsActor, with a capital I, it's isActor.

Incidentally...how would an enemy, a non-actor, be using an item? I don't see why that's useful.
 
Last edited:

Klunky2

Veteran
Veteran
Joined
Jul 2, 2017
Messages
141
Reaction score
12
First Language
german
Primarily Uses
RMMV
Oh shoot, you are right. God damnit. ^^"

Thank you very much. xd
 

Latest Threads

Latest Profile Posts

Just laid down a sick nasty new post in the MagiCats! Infinite Sadness thread! Lemme give ya a big ol' hug for it.

bg6.jpg
Wheel of Attacks.png

MORE GAMBLING THEMED ATTACKS!

I AM UNABLE TO STOP!
Is it ok to repost stuff that i've posted to threads in the status feed?
If so, here's art of Shiloh, the main protagonist of the game i'm making:20220807_181702.jpg
They are meant to be ambiguous in gender, like Frisk from Undertale or Gogo from FFVI. I haven't decided what their age will be yet. Any ideas?
Please comment what you think about the art and design!
ScreenShot_8_10_2022_7_15_21.png
Looks like Mike's got a new party member in Robbi...

Calf survival story with a happy ending.

Forum statistics

Threads
124,461
Messages
1,163,834
Members
163,281
Latest member
incabalamo
Top