- Joined
- Oct 16, 2013
- Messages
- 63
- Reaction score
- 9
- First Language
- German
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:
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)
Last edited by a moderator:
