Character Creator EX Plugin

Status
Not open for further replies.

Tatsumaro

Veteran
Veteran
Joined
Aug 11, 2016
Messages
205
Reaction score
40
First Language
Portugues
Primarily Uses
RMMV
Hi, so im using SumRndmDde Character Creator. All my main characters are created with this plugin, all is PERFECT :)

Character Creator EX-1.png

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.
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,038
Reaction score
10,258
First Language
Czech
Primarily Uses
RMMV
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.
 
Last edited:

Tatsumaro

Veteran
Veteran
Joined
Aug 11, 2016
Messages
205
Reaction score
40
First Language
Portugues
Primarily Uses
RMMV
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.
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,038
Reaction score
10,258
First Language
Czech
Primarily Uses
RMMV
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.
 

Tatsumaro

Veteran
Veteran
Joined
Aug 11, 2016
Messages
205
Reaction score
40
First Language
Portugues
Primarily Uses
RMMV
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.
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,038
Reaction score
10,258
First Language
Czech
Primarily Uses
RMMV
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.
 

Tatsumaro

Veteran
Veteran
Joined
Aug 11, 2016
Messages
205
Reaction score
40
First Language
Portugues
Primarily Uses
RMMV
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
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,038
Reaction score
10,258
First Language
Czech
Primarily Uses
RMMV
Yeah, had a typo there :D
SceneManager._scene._spriteset.children[0]
 

Tatsumaro

Veteran
Veteran
Joined
Aug 11, 2016
Messages
205
Reaction score
40
First Language
Portugues
Primarily Uses
RMMV
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
 
Last edited:

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,038
Reaction score
10,258
First Language
Czech
Primarily Uses
RMMV
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.
 

Tatsumaro

Veteran
Veteran
Joined
Aug 11, 2016
Messages
205
Reaction score
40
First Language
Portugues
Primarily Uses
RMMV
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?
 

Aloe Guvner

Walrus
Veteran
Joined
Sep 28, 2017
Messages
1,627
Reaction score
1,061
First Language
English
Primarily Uses
RMMV
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
 

Tatsumaro

Veteran
Veteran
Joined
Aug 11, 2016
Messages
205
Reaction score
40
First Language
Portugues
Primarily Uses
RMMV
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.
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,038
Reaction score
10,258
First Language
Czech
Primarily Uses
RMMV
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.
 

Tatsumaro

Veteran
Veteran
Joined
Aug 11, 2016
Messages
205
Reaction score
40
First Language
Portugues
Primarily Uses
RMMV
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
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
5,893
Reaction score
4,217
First Language
Dutch
Primarily Uses
RMXP

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.

 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

It's almost new year, again!
Succesfully finished a quest of saving my kitty who fell from a wall!

+25XP

MrKiwi leveled up!
MrKiwi learned how to save his kitty!
Final sprint for me, although a long one. If everything goes well, I'll graduate by the end of the year. Then I'll have to take the Bar classes and exams (4 months), then I'm off to practicing law (as an intern for 6 months, paid of course, then I'll be a full fledged attorney).
I think there is something wrong with my cat. He is acting CATatonic.
Want to find a quick answer? Say the wrong one and SOMEONE will fall all over themselves to correct you.

Forum statistics

Threads
93,572
Messages
913,581
Members
123,103
Latest member
AntonioXander
Top