Whats the method of filling Character Parameters via JavaScript?
[Solved] Character Paramaters via Javascript
Visual Novel Maker Support
PHP:
const A = $gameActors._data["ID"];
type in your console (F8);
Edit, ho sorry is for vnm !!
dho
Yeah I know how to do that in MV, I'm talking VNM 🙂
This is the VNM section of the board after all.
This is the VNM section of the board after all.
Hi, you can do:
If you don't know the UID and want to use the name instead, you can obtain the UID like this:
Let me know if that helps you out.
Code:
GameManager.characterParams[<Character UID>][<Parameter Name>] = value;
If you don't know the UID and want to use the name instead, you can obtain the UID like this:
Code:
var character = RecordManager.characters.first(function(c){return lcs(c.name) == "<character name>" });
if(character) GameManager.characterParams[character.index][<Parameter Name>] = value;
Let me know if that helps you out.
Thank you very much 🙂
I tested it myself, but it didn't work.
I used the javascript but there are errors in this script.
Here's a code that caused these errors:
As for the UID script, it has errors too:
I used the javascript but there are errors in this script.
Here's a code that caused these errors:
JavaScript:
var character = RecordManager.characters.first(function(c){return lcs(c.name) == "<character name>" });
if(character) GameManager.characterParams[character.index][<Parameter Name>] = value;
As for the UID script, it has errors too:
Original thread: https://forums.rpgmakerweb.com/threads/solved-character-paramaters-via-javascript.92849/