Monkeynugget

Veteran
Veteran
Joined
Sep 12, 2016
Messages
77
Reaction score
50
First Language
English
Primarily Uses
Hi

So i have a small function i use to allow for foldered pictures that works great everywhere but in battle common events

SO there's no plugin conflict as i get the same failure in a clean project

is there a different screen call $gamescreen.pictures call in battle processing that i cant find in the script call list?
1618091949089.png
1618092128747.png

the same event works perfectly outside of battling which makes me think the call is different in battles ?


Could anyone help a poor newbie out :rtear:
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,419
Reaction score
1,830
First Language
EN
Primarily Uses
RMMZ
Pictures are stored separately for map and battle; you need to convert the input ID to the "real" ID.

If you fetch the picture using the picture method (recommended!) then the ID conversion is automatic, e.g.
JavaScript:
$gameScreen.picture(pictureId)._name = newPicture;
This applies to both RMMV and RMMZ.
 

Monkeynugget

Veteran
Veteran
Joined
Sep 12, 2016
Messages
77
Reaction score
50
First Language
English
Primarily Uses
Pictures are stored separately for map and battle; you need to convert the input ID to the "real" ID.

If you fetch the picture using the picture method (recommended!) then the ID conversion is automatic, e.g.
JavaScript:
$gameScreen.picture(pictureId)._name = newPicture;
This applies to both RMMV and RMMZ.
Ah thats what i figured mus be happening, rhanks :ewat:

Do you know or know where its called from i'll probably need to make an addition for this but first i have to find out what its actually doing with it
i,e where do i find the 'real ID' you mention
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,419
Reaction score
1,830
First Language
EN
Primarily Uses
RMMZ
Like I said, I would recommend getting the picture via the picture method designed exactly for this purpose, partly for neatness and partly for compatibility with other plugins.

You can get the real picture ID from a per-scene ID by using the realPictureId method of Game_Screen (cf rmmz_objects.js), e.g.
JavaScript:
const realId = $gameScreen.realPictureId(12);
 

Monkeynugget

Veteran
Veteran
Joined
Sep 12, 2016
Messages
77
Reaction score
50
First Language
English
Primarily Uses
Like I said, I would recommend getting the picture via the picture method designed exactly for this purpose, partly for neatness and partly for compatibility with other plugins.

You can get the real picture ID from a per-scene ID by using the realPictureId method of Game_Screen (cf rmmz_objects.js), e.g.
JavaScript:
const realId = $gameScreen.realPictureId(12);
Thanks again for responding

Alas the default method of leaving an unfoldered pictures folder is something i just cant live with.

However if its just the battle images, they are far smaller in number and might be not worth the hassle. However thanks for giving me the realpicture call id

Its really helpful :kaoluv:
 

Latest Threads

Latest Posts

Latest Profile Posts

Writes that the characters have to climb a mountain.

Realized that I have to draw six sets of models where characters are climbing.

At least I know how to draw something. :)
I'm currently scratching my head on how to design plains. What do I even put in plains? Some trees (but not too many or it turns into a forest)? Grass? A few bushes? That's a bit dull.
I'm looking for tutorials but Google didn't seem to find much (or maybe I have the wrong keywords). I don't know how to map plains and I don't know how to learn.
I should probably be dragged kicking and screaming away from Daz3D... I was playing with 8.1 models and came up with this. Thoughts?
and_remember_tomorrow_miranda_8_1.jpg
If you're an artist of illustrations, you're doing fine.
If you're an artist of writing, you're doing fine.
If you're an artist of programming, you're doing fine.
But if you are all three above (and more) you cannot allow any distractions in your life.
Anyone had school furniture?

Forum statistics

Threads
111,401
Messages
1,060,844
Members
144,749
Latest member
hyrrozz
Top