Gargoyle77

Veteran
Veteran
Joined
Dec 4, 2017
Messages
95
Reaction score
17
First Language
English
Primarily Uses
RMMV
Hello, everyone!!! I want to make an aura that buffs certain party members. For this, the aura will check if the targets have certain state. The code for this is something like this:

<Custom Aura Condition>
if (CONDITION) {
condition = true;
} else {
condition = false;
}
</Custom Aura Condition>

Does anybody know what do I have to write in "(CONDITION)" to check for the state? Thanks for reading!!!

Link to the plugin:

 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
5,553
Reaction score
3,619
First Language
English
Primarily Uses
RMMV
There's a pinned thread with MV's script calls, which includes how to check for states.

Yojur notetag should be:
Code:
<Custom Aura Condition>
condition=user.isStateAffected(X);
</Custom Aura Condition>

where X is the ID of the state they need to have.
 

Gargoyle77

Veteran
Veteran
Joined
Dec 4, 2017
Messages
95
Reaction score
17
First Language
English
Primarily Uses
RMMV
There's a pinned thread with MV's script calls, which includes how to check for states.

Yojur notetag should be:
Code:
<Custom Aura Condition>
condition=user.isStateAffected(X);
</Custom Aura Condition>

where X is the ID of the state they need to have.
It worked perfectly fine. Thanks a lot for your help!!!

PS: Yeah, I was wondering if there was a place where all script calls where included. The thing is I didn't know they were called like that, so I couldn't search for them. Thanks again for the help. Have a nice day!!!
 

Latest Threads

Latest Profile Posts

Tried something. Little sneak peak of Unity AD.
M42S7Us.gif

It's the little things. Lengthened the time the bar fades in and out to be a bit more comfortable.
3 days until release!

Forum statistics

Threads
125,737
Messages
1,173,115
Members
164,883
Latest member
rayli1107
Top