Help using Enemy Levels (YEP)

Dehsalp

Veteran
Veteran
Joined
Oct 9, 2019
Messages
179
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
179
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
179
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 Profile Posts

Newest RPG Maker drops: hey fellas, get on the MZ train to somewhere

Me: Building my VX Ace lego tower, blissfully unaware of time moving forward
When you are trying to make progress in your game. But something is stopping your motivation. Like come on mind! Let me do what I want! :<
Tfw everyone is trying their hardest to brainstorm about unique ideas and game mechanics, here I am just going: "How am I gonna event conversations with busts" everyday. :kaoswt2:
Comedy is third person, tragedy is first person.
Man. A historic 130 year old church nearby had all of its windows broken out with bricks last night. Such a shame, it wasn't generic stained glass patterns either but had beautifully crafted murals depicting various parts of the gospels.

Forum statistics

Threads
99,320
Messages
964,132
Members
130,927
Latest member
Gigabitz
Top