Dehsalp

Veteran
Veteran
Joined
Oct 9, 2019
Messages
249
Reaction score
27
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
48
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
249
Reaction score
27
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
48
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
249
Reaction score
27
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.
 

Latest Threads

Latest Posts

Latest Profile Posts

Took a small break by playing VR. Latest update of these glasses unfortunately caused a little of trouble but it can be fixed with a manual operation.

Until You Fall is freaking awesome.
I am SO HYPED to share this trailer with everyone when its done. I almost want to tear up i had no idea how far i came along with Fallen Feather in these last 3 years.
how it looks from the top
Hike was successful guys! I made it to the top!
Add Film-like Visual Effects During Test-Play, Deploy Games with Electron | RPG Maker News #69

Forum statistics

Threads
112,187
Messages
1,066,466
Members
145,790
Latest member
LiteSilverwind
Top