Monkeynugget

Veteran
Veteran
Joined
Sep 12, 2016
Messages
67
Reaction score
48
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,412
Reaction score
1,822
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
67
Reaction score
48
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,412
Reaction score
1,822
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
67
Reaction score
48
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 Profile Posts

Create Anime Art w/ AI, Tall Sprites with Aurora, Customize Variable Display | RPG Maker News #34

[My favorite slow moving track I've made so far]
dd_airport2.jpgdd_combat.jpg
dd_town.jpg
I did an experiment to try to solve the art style problem between RTP and 3D models.
But, it feels this grimdark world is going to end even faster. :kaoswt2:
Solovei wrote on caethyril's profile.
Hi, just wanted to say, thank you for helping me fix that event with the step count! I followed your example exactly and it works now:kaojoy:
still waiting for original character contest 3 bust/face dlc release :kaoluv:

Forum statistics

Threads
111,189
Messages
1,059,127
Members
144,437
Latest member
foxiee05
Top