_face_image.qsrc 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. # $face_image
  2. !!use with - <img <<$set_imgh>> src="<<FUNC(''$face_image'')>>">
  3. if player_avatar = 1:$RESULT = 'images/avatar.jpg' & exit
  4. !! These images are missing from my copy of the image folder, so I am commenting them out for now
  5. !!if glass = 2:
  6. !! $RESULT = 'images/pc/body/hcolglass<<pcs_haircol>>.jpg'
  7. !! exit
  8. !!end
  9. !!if glass = 1:
  10. !! $RESULT = 'images/pc/body/nerd.jpg'
  11. !! exit
  12. !!end
  13. !!if shorthair = 1:
  14. !! $RESULT = 'images/pc/body/shcol<<pcs_haircol>>.jpg'
  15. !! exit
  16. !!end
  17. $RESULT = 'images/pc/body/hairstyles/'
  18. if pcs_haircol > 3:
  19. $RESULT += 'colours'
  20. jump 'skipsteps'
  21. end
  22. !! length
  23. if pcs_hairlng > 400:
  24. $RESULT += 'vlng'
  25. elseif pcs_hairlng > 260:
  26. $RESULT += 'lng'
  27. elseif pcs_hairlng > 160:
  28. $RESULT += 'medlo'
  29. elseif pcs_hairlng > 80:
  30. $RESULT += 'med'
  31. elseif pcs_hairlng > 30:
  32. $RESULT += 'short'
  33. else
  34. $RESULT += 'vshort'
  35. end
  36. $RESULT += '/'
  37. !! style for medium or longer hair
  38. if pcs_hairlng > 80:
  39. if hbraids > 0:
  40. $RESULT += 'braids'
  41. elseif hpigtail > 0:
  42. $RESULT += 'pigtails'
  43. elseif curly > 0 and hbangs > 0 and hpingripw > 0:
  44. $RESULT += 'curly-bangs-buns'
  45. elseif curly > 0 and hbangs > 0 and hscrunchw > 0:
  46. $RESULT += 'curly-bangs-scrunch'
  47. elseif curly > 0 and hbangs > 0:
  48. $RESULT += 'curly-bangs'
  49. elseif curly > 0 and hpingripw > 0:
  50. $RESULT += 'curly-buns'
  51. elseif curly > 0 and hscrunchw > 0:
  52. $RESULT += 'curly-scrunch'
  53. elseif hbangs > 0 and hpingripw > 0:
  54. $RESULT += 'bangs-buns'
  55. elseif hbangs > 0 and hscrunchw > 0:
  56. $RESULT += 'bangs-scrunch'
  57. elseif curly > 0:
  58. $RESULT += 'curly'
  59. elseif hbangs > 0:
  60. $RESULT += 'bangs'
  61. elseif hpingripw > 0:
  62. $RESULT += 'buns'
  63. elseif hscrunchw > 0:
  64. $RESULT += 'scrunch'
  65. else
  66. $RESULT += 'normal'
  67. end
  68. !! style for short hair (other images don''t exist)
  69. elseif pcs_hairlng <= 80 and pcs_hairlng > 30:
  70. if hbangs > 0:
  71. $RESULT += 'bangs'
  72. else
  73. $RESULT += 'normal'
  74. end
  75. !! style for very short hair (other images don''t exist)
  76. else
  77. $RESULT += 'normal'
  78. end
  79. :skipsteps
  80. $RESULT += '/'
  81. !! color
  82. $RESULT += 'hcol<<pcs_haircol>>.jpg'
  83. --- $face_image ---------------------------------