RPG Maker Forums

I have several pictures of NPC's sorted by outfit and mood.

Now I want to make a script call inside an event right before every message which prints the correct picture of the NPC. (Visual Novel style)

This might sound a little bit confusing.

Maybe that will clear things up. The image files look like:

NPC1_Outfit1_Mood1.png

Outfit and Mood can change ingame and are stored in two seperate gamevariables. So currently I have set up a common event which does exaxtly what I want: Printing the correct image, based off the talking NPC's mood and outfit.

But...

I have done it for one NPC only and it took me ages to create all the conditional branches.

So I was thinking if it possible to create a script which does this too.

Thank you!

edit:

I realised that I don't need a script for it, it's already coded. You just need to make a proper scriptcall. Something like this:

Code:
$gameScreen.showPicture(6, ['NPC' + $gameVariables.value(40) + '_' + $gameVariables.value(41) + '_' + $gameVariables.value(50)], 0, 0, 0, 100, 100, 255, 0)

Latest Threads

Latest Posts

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,040
Messages
1,018,472
Members
137,822
Latest member
madelbylz
Top