- Joined
- Nov 11, 2023
- Messages
- 2
- Reaction score
- 0
- First Language
- English
- Primarily Uses
- RMMV
I've had some trouble with this, and I've come to ask about how I should go about it.
For context: I am using ICF-Soft's Parameter scripts to add a stat to the standard stat menu, this "stat" is supposed to be a dynamic level cap, since in the game I am creating, the level cap will increase from time to time.
To try to achieve this, I specifically used a simple script that set a level cap to a variable. If needed, here is the script (if you could even call it one):
When I use an NPC to externally set my cap to an arbitrary number such as 1, the script seems to work.
The problem here is that no matter what I tried, whenever I set my variable to a number, the level cap stat did not update. I tried everything I know, even the script call sheet.
Here are some images to (hopefully) show what is happening. Thank's in advance, even if this is probably another thread that has been done before.

Image: ICF-Soft's parameter table, it is supposed to check variable 20's value.

Image: Character, Level Cap stat is set to 0, this is natural because the variable hasn't been set at all.

Image: Using an npc, I changed the level cap variable to 1.

Image: same character, cap has been set to level 1. It had worked due to next level XP being crossed out. But the level cap stat hadn't changed one bit,
or this could be really simple, but i have no clue how to code in javascript lol.
For context: I am using ICF-Soft's Parameter scripts to add a stat to the standard stat menu, this "stat" is supposed to be a dynamic level cap, since in the game I am creating, the level cap will increase from time to time.
To try to achieve this, I specifically used a simple script that set a level cap to a variable. If needed, here is the script (if you could even call it one):
Game_Actor.prototype.maLevel = function() {
return $gameVariables.value(20);
};
return $gameVariables.value(20);
};
When I use an NPC to externally set my cap to an arbitrary number such as 1, the script seems to work.
The problem here is that no matter what I tried, whenever I set my variable to a number, the level cap stat did not update. I tried everything I know, even the script call sheet.
Here are some images to (hopefully) show what is happening. Thank's in advance, even if this is probably another thread that has been done before.

Image: ICF-Soft's parameter table, it is supposed to check variable 20's value.

Image: Character, Level Cap stat is set to 0, this is natural because the variable hasn't been set at all.

Image: Using an npc, I changed the level cap variable to 1.

Image: same character, cap has been set to level 1. It had worked due to next level XP being crossed out. But the level cap stat hadn't changed one bit,
or this could be really simple, but i have no clue how to code in javascript lol.