RMMV Seeking 1 line of code that I can't quite seem to get

Status
Not open for further replies.

Crusha

Veteran
Veteran
Joined
Jul 28, 2020
Messages
56
Reaction score
25
First Language
English
Primarily Uses
RMMV
I'm seeking the script/reference to elements (like None, Thunder, etc.) under the 'Damage' section for skills. I wish to use it beside the code I have:

if (this.isHpRecover())

Ideally, like:
if (this.isHpRecover() && this.isElement[0]) {

I don't know what the correct script is. I was thinking maybe it'd be index'ed where 0 is None (so if it's Hp.Recover and its Element is None, the code runs). Tried multiple ways, tried string as well, 'None', couldn't get what I wished for. The this.isHpRecover() works fine though, so obviously I'm not referencing the Element None part correctly.

The solution would be sincerely appreciated -- thank you for your time.
 

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
5,635
Reaction score
5,116
First Language
English
Primarily Uses
RMVXA

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

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