Help using Enemy Levels (YEP)

Dehsalp

Veteran
Veteran
Joined
Oct 9, 2019
Messages
178
Reaction score
23
First Language
korean
Primarily Uses
RMMV
I'm using Enemy Levels (YEP)
I used this script to change the enemy's level.

<Custom Starting Level>
level = $gameActors.actor(1).level + 5;
</Custom Starting Level>


However, I want to use a variable here.
So I tried this.

<Custom Starting Level>
$gameVariables.value(292);
</Custom Starting Level>

<Custom Starting Level>
level = $gameVariables.value(292).level + 5;
</Custom Starting Level>

<Custom Starting Level>
level = $gameVariables.value(292) + 5;
</Custom Starting Level>

It doesn't work the way I tried.
How can I use variables?
 

Lay

Veteran
Veteran
Joined
Jul 18, 2019
Messages
124
Reaction score
47
First Language
French
Primarily Uses
RMMV
Code:
<Custom Starting Level>
level = $gameVariables.value(292);
</Custom Starting Level>
The notetag above will set the enemy level to the value in variable 292.

Code:
<Custom Starting Level>
level = $gameVariables.value(292) + 2;
</Custom Starting Level>
The notetag above will set the enemy level to the value in variable 292 increased by 2.

Using $gameVariables in the notetag is not compatible with battle test. You must perform the battle using playtest.
Make sure variable 292 is define when performing the battle.
 

Dehsalp

Veteran
Veteran
Joined
Oct 9, 2019
Messages
178
Reaction score
23
First Language
korean
Primarily Uses
RMMV
Code:
<Custom Starting Level>
level = $gameVariables.value(292);
</Custom Starting Level>
The notetag above will set the enemy level to the value in variable 292.

Code:
<Custom Starting Level>
level = $gameVariables.value(292) + 2;
</Custom Starting Level>
The notetag above will set the enemy level to the value in variable 292 increased by 2.

Using $gameVariables in the notetag is not compatible with battle test. You must perform the battle using playtest.
Make sure variable 292 is define when performing the battle.

Enemy note in
<Custom Starting Level>
$gameVariables.value(292);
</Custom Starting Level>

and

Set i used Control Variables, [292] variable to 5, in event.
And i was test in playtest not the battle test.

It doesn't work too.
 

Lay

Veteran
Veteran
Joined
Jul 18, 2019
Messages
124
Reaction score
47
First Language
French
Primarily Uses
RMMV
your notetag input is bad. you forgot the "level =". See how I wrote my notetag.
And I've tested it in my project, it works perfectly.
 

Dehsalp

Veteran
Veteran
Joined
Oct 9, 2019
Messages
178
Reaction score
23
First Language
korean
Primarily Uses
RMMV
your notetag input is bad. you forgot the "level =". See how I wrote my notetag.
And I've tested it in my project, it works perfectly.
I was stupid.
Thank you.

Maybe earlier
<Custom Starting Level>
level = $ gameVariables.value (292);
</ Custom Starting Level>
When I used this, I guess I only tried it in the battle test.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

okay, i experimented with some more fonts, let me know if theyre easier to read and if you have a preference!

Hiatus; Still doing my best to get employed. :hwink:
Finally took the plunge and got myself MV. Time for some productivity!
Not more Goblins but variations of the Irish Merrow this time...

Okay so now you can prepend a JS library to your Haxe plugin. You can also prepend your attribution information to every compiled plugin.

Forum statistics

Threads
99,169
Messages
962,576
Members
130,744
Latest member
slatlift
Top