Character Creator EX Plugin

Hi, so im using SumRndmDde Character Creator. All my main characters are created with this plugin, all is PERFECT 🙂

Spoiler: But imagine this:
Character Creator EX-1.png

Spoiler: what if they could be resized ? something like this:
Character Creator EX-2.png
I would like to resize only in the world map, i dont understand a lot about code but i'm very persistent 🙂 any suggestion?

thanks.
var chars = SceneManager._scene._spriteset._characters;
for (var j in chars) chars[j].scale.set(0.5, 0.5);

If you want to pinpoint the character sprites exactly, you'll go into SceneManager._scene._spriteset.children[0], where the player and followers are the last four children, allowing for this code:

var chars = SceneManager._scene._spriteset.children[0].characters
for (var i = 0; i < 4; i++) chars[chars.length - i - 1].scale.set(0.5, 0.5);

Although I may have a mistake in the code. Even if I do though, it should be easy to find if you type SceneManager._scene._spriteset.children[0] into the dev console.
var chars = SceneManager._scene._spriteset._characters;
for (var j in chars) chars[j].scale.set(0.5, 0.5);

If you want to pinpoint the character sprites exactly, you'll go into SceneManager._scene._spriteset.children[0], where the player and followers are the last four children, allowing for this code:

var chars = SceneManager._scene._spriteset.children[0].characters
for (var i = 0; i < 4; i++) chars[chars.length - i - 1].scale.set(0.5, 0.5);

Although I may have a mistake in the code. Even if I do though, it should be easy to find if you type SceneManager._scene._spriteset.children[0] into the dev console.
im sorry but i cant find [SceneManager._scene._spriteset._characters] anywhere.
I thought mentioning the dev console would sduggest that I was talking about something you have to do on runtime.
In any case, you have to do it on runtime via script command.
i have no idea of what you are talking about :elswt:. Can you do it? What do you thinks is the budget to create something like this? I can sand you my project.
The budget for this is zero, because it's just two lines of code used inside Event's script connand. The only thing that may be required is opening of the dev console in game, typing in SceneManager._scene._spriteset._children[0], hit enter and search for something that contains character sprites in case my code doesn't work.
Hi, is this what you mean?
Character Creator EX-3.png

I tray this but it didn't work 🙁 i'm not sure this is what i'm supposed to do
Yeah, had a typo there 😀
SceneManager._scene._spriteset.children[0]
ok
Character Creator EX-4.png

the characters didn't scale and this is the log from SceneManager._scene._spriteset.children[0]

even if i disable SDR plugins the scale didn't work
OK, now that my computer finally works properly, I took a look at it.
Sorry. I didn't remember the code properly.
It's SceneManager._scene._spriteset._characterSprites. The last four.
Code:
var chars = SceneManager._scene._spriteset._characterSprites;
for (var i = 0; i < 4; i++) chars[chars.length - i - 1].scale.set(0.5);

Works for me.
OK, now that my computer finally works properly, I took a look at it.
Sorry. I didn't remember the code properly.
It's SceneManager._scene._spriteset._characterSprites. The last four.
Code:
var chars = SceneManager._scene._spriteset._characterSprites;
for (var i = 0; i < 4; i++) chars[chars.length - i - 1].scale.set(0.5);

Works for me.

OMG it works PERFECT 🙂, i can place the code in every event that leads to a transfer to world map, but i have another problem, my game have rumdum encounters, when you win and return to world map the scale is gone 🙁 any ideas?
Consider instead to run that code within an event on the World Map.
Set the trigger of the event to Parallel.
After the code, make sure to put a command to Erase Event.

Now it will run exactly once every time the player enters the map (including after a battle).

You can set the scale back to 1 on events leading away from the World Map
You can set the scale back to 1 on events leading away from the World Map
You don't need to since it automatically scales back to 100% when loading a new map.
Consider instead to run that code within an event on the World Map.
Set the trigger of the event to Parallel.
After the code, make sure to put a command to Erase Event.

Now it will run exactly once every time the player enters the map (including after a battle).

You can set the scale back to 1 on events leading away from the World Map
it works when you enter the map, sadly after a battle the event don't run.
Erase event is useless here. You need an autorun event that sets the scale and then turns on a switch. On page 2 you set a totally empty page with that switch as a condition. And then in the battle you turn the switch off via troop events.
Just don't also forget to turn it off while teleporting somewhere to a different map.
Erase event is useless here. You need an autorun event that sets the scale and then turns on a switch. On page 2 you set a totally empty page with that switch as a condition. And then in the battle you turn the switch off via troop events.
Just don't also forget to turn it off while teleporting somewhere to a different map.
It works 🙂 Thanks

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/character-creator-ex-plugin.93929/