*Image in Stat Screen


#1

I’m looking to put image headers in my stat screen, but I’m not able to make it work properly. Can someone post the proper formatting of the script to show me how it’s supposed to be done?

Thanks a ton!


#2

What’s the formatting that you’re using?


#3

*stat_chart
*image info_header.jpg none

text Name
text Gender
text Build

*image traits_header.jpg none 

opposed_pair dependency
Codependent
Independent
opposed_pair priority
Priority: Others
Priority: Self
opposed_pair responsibility
Carefree
Responsible
opposed_pair perfection
Non-Conformist
Perfectionist

*image relationships_header.jpg none

percent mom_relationship Mom
percent kyle_relationship Kyle
percent trish_relationship Trish
percent thaniel_relationship Thaniel

But I’ve tried one full indent, two spaces, no spaces. . . I keep getting either the “invalid indent” or “should start with” errors.


#4

Where are your image files kept? Which folder?

And there should be no spaces in front of the asterisk. Make sure you save it.

OH! You need more *stat_charts


#5

Try

*image info_header.jpg none  

*stat_chart
  text Name
  text Gender
  text Build
  


*image traits_header.jpg none 
  
*stat_chart
  opposed_pair dependency
    Codependent
    Independent
  opposed_pair priority
    Priority: Others
    Priority: Self
  opposed_pair responsibility
    Carefree
    Responsible
  opposed_pair perfection
    Non-Conformist
    Perfectionist


*image relationships_header.jpg none
  
*stat_chart  
  percent mom_relationship Mom
  percent kyle_relationship Kyle
  percent trish_relationship Trish
  percent thaniel_relationship Thaniel

#6

That did it, thank you! I had no idea you needed a separate chart for each piece after an image. I also had the image after the chart. Thank you so much!


#7

Yeah! I was just guessing that images don’t work in stat charts, so shuffled it all about.


#8

I have a question! I don’t quite know what I’m doing differently, other than changing the position of the image from the top of the chart to the bottom, but I’m having trouble with getting the image to actually show up. The code I’m using is:

*stat_chart
text Name
opposed_pair Speed
Strength
opposed_pair Brutality
Mercy
opposed_pair Stealth
Charisma
percent Allies
*image map.jpg none

Yet nothing seems to work, with what is supposed to be the image just showing up as text saying: * image map.jpg none

Any ideas as to what is going on or how I can fix it? Thank you!


#9

It should be *image map.jpg center (or where ever you want to align it). Also make sure you have the image saved in your mygame file


#10

Oh thank you! That fixed the problem!