Klunky2

Veteran
Veteran
Joined
Jul 2, 2017
Messages
139
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,541
Reaction score
2,903
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
139
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

I made a menu option that pulls a (accurate) version of the world map from my game instead of having a "traditional" world map. How did I do?

1656552400614.png

..Every time after I edit it and repost it I find a new tiny error I made. :kaodes:
1656550526125.png
Town Design is the best part of an RPG. Well, that and dungeon design
I think that this forum's member posts should include their Phone Number and Social Insurance Number.
My PC just broke with everything I've been working on, on it. I can't afford to replace it. Life is just wonderful....
More musics! Praise be to the winter towns!

Forum statistics

Threads
123,178
Messages
1,154,648
Members
161,546
Latest member
Desteyo34
Top