;*2-8 801-965  45B6123-6728345

_unit = _this select 0

;領収年の下一桁
#n4
?norandnum: Exit
_nrand = random(100)
?_nrand > 90: _unit setObjectTexture [6, "\JASDF_F15\F15\No\9.paa"], goto "n5"
?_nrand > 80: _unit setObjectTexture [6, "\JASDF_F15\F15\No\8.paa"], goto "n5"
?_nrand > 70: _unit setObjectTexture [6, "\JASDF_F15\F15\No\7.paa"], goto "n5"
?_nrand > 60: _unit setObjectTexture [6, "\JASDF_F15\F15\No\6.paa"], goto "n5"
?_nrand > 50: _unit setObjectTexture [6, "\JASDF_F15\F15\No\5.paa"], goto "n5"
?_nrand > 40: _unit setObjectTexture [6, "\JASDF_F15\F15\No\4.paa"], goto "n5"
?_nrand > 30: _unit setObjectTexture [6, "\JASDF_F15\F15\No\3.paa"], goto "n5"
?_nrand > 20: _unit setObjectTexture [6, "\JASDF_F15\F15\No\2.paa"], goto "n5"
?_nrand > 10: _unit setObjectTexture [6, "\JASDF_F15\F15\No\1.paa"], goto "n5"
?_nrand >  0: _unit setObjectTexture [6, "\JASDF_F15\F15\No\0.paa"], goto "n5"

;登録順位
#n5
_unit setObjectTexture [7, "\JASDF_F15\F15\No\2.paa"]

?norandall: Exit
#nB
_unit setObjectTexture [2, "\JASDF_F15\F15\No\-.paa"], goto "n6"

;航空機の機種
#n6
_unit setObjectTexture [8, "\JASDF_F15\F15\No\8.paa"]


;製造番号
#n1
?norandnum: Exit
_nrand = random(100)
?_nrand > 40: _unit setObjectTexture [3, "\JASDF_F15\F15\No\8.paa"],  goto "n2"
?_nrand >  0: _unit setObjectTexture [3, "\JASDF_F15\F15\No\9.paa"],  goto "n2a"

#n2
?norandnum: Exit
_nrand = random(100)
?_nrand > 76: _unit setObjectTexture [4, "\JASDF_F15\F15\No\9.paa"], goto "n3"
?_nrand > 64: _unit setObjectTexture [4, "\JASDF_F15\F15\No\8.paa"], goto "n3"
?_nrand > 89: _unit setObjectTexture [4, "\JASDF_F15\F15\No\7.paa"], goto "n3"
?_nrand > 76: _unit setObjectTexture [4, "\JASDF_F15\F15\No\6.paa"], goto "n3"
?_nrand > 64: _unit setObjectTexture [4, "\JASDF_F15\F15\No\5.paa"], goto "n3"
?_nrand > 51: _unit setObjectTexture [4, "\JASDF_F15\F15\No\4.paa"], goto "n3"
?_nrand > 38: _unit setObjectTexture [4, "\JASDF_F15\F15\No\3.paa"], goto "n3"
?_nrand > 25: _unit setObjectTexture [4, "\JASDF_F15\F15\No\2.paa"], goto "n3"
?_nrand > 13: _unit setObjectTexture [4, "\JASDF_F15\F15\No\1.paa"], goto "n3"
?_nrand >  0: _unit setObjectTexture [4, "\JASDF_F15\F15\No\0.paa"], goto "n3a"

#n2a
?norandnum: Exit
_nrand = random(100)
?_nrand > 76: _unit setObjectTexture [4, "\JASDF_F15\F15\No\6.paa"], goto "n3b"
?_nrand > 64: _unit setObjectTexture [4, "\JASDF_F15\F15\No\5.paa"], goto "n3"
?_nrand > 51: _unit setObjectTexture [4, "\JASDF_F15\F15\No\4.paa"], goto "n3"
?_nrand > 38: _unit setObjectTexture [4, "\JASDF_F15\F15\No\3.paa"], goto "n3"
?_nrand > 25: _unit setObjectTexture [4, "\JASDF_F15\F15\No\2.paa"], goto "n3"
?_nrand > 13: _unit setObjectTexture [4, "\JASDF_F15\F15\No\1.paa"], goto "n3"
?_nrand >  0: _unit setObjectTexture [4, "\JASDF_F15\F15\No\0.paa"], goto "n3"

#n3
?norandnum: Exit
_nrand = random(100)
?_nrand > 90: _unit setObjectTexture [5, "\JASDF_F15\F15\No\9.paa"], goto "end"
?_nrand > 80: _unit setObjectTexture [5, "\JASDF_F15\F15\No\8.paa"], goto "end"
?_nrand > 70: _unit setObjectTexture [5, "\JASDF_F15\F15\No\7.paa"], goto "end"
?_nrand > 60: _unit setObjectTexture [5, "\JASDF_F15\F15\No\6.paa"], goto "end"
?_nrand > 50: _unit setObjectTexture [5, "\JASDF_F15\F15\No\5.paa"], goto "end"
?_nrand > 40: _unit setObjectTexture [5, "\JASDF_F15\F15\No\4.paa"], goto "end"
?_nrand > 30: _unit setObjectTexture [5, "\JASDF_F15\F15\No\3.paa"], goto "end"
?_nrand > 20: _unit setObjectTexture [5, "\JASDF_F15\F15\No\2.paa"], goto "end"
?_nrand > 10: _unit setObjectTexture [5, "\JASDF_F15\F15\No\1.paa"], goto "end"
?_nrand >  0: _unit setObjectTexture [5, "\JASDF_F15\F15\No\0.paa"], goto "end"

#n3a
?norandnum: Exit
_nrand = random(100)
?_nrand > 89: _unit setObjectTexture [5, "\JASDF_F15\F15\No\9.paa"], goto "end"
?_nrand > 78: _unit setObjectTexture [5, "\JASDF_F15\F15\No\8.paa"], goto "end"
?_nrand > 67: _unit setObjectTexture [5, "\JASDF_F15\F15\No\7.paa"], goto "end"
?_nrand > 56: _unit setObjectTexture [5, "\JASDF_F15\F15\No\6.paa"], goto "end"
?_nrand > 44: _unit setObjectTexture [5, "\JASDF_F15\F15\No\5.paa"], goto "end"
?_nrand > 33: _unit setObjectTexture [5, "\JASDF_F15\F15\No\4.paa"], goto "end"
?_nrand > 22: _unit setObjectTexture [5, "\JASDF_F15\F15\No\3.paa"], goto "end"
?_nrand > 11: _unit setObjectTexture [5, "\JASDF_F15\F15\No\2.paa"], goto "end"
?_nrand >  0: _unit setObjectTexture [5, "\JASDF_F15\F15\No\1.paa"], goto "end"

#n3b
?norandnum: Exit
_nrand = random(100)
?_nrand > 56: _unit setObjectTexture [5, "\JASDF_F15\F15\No\5.paa"], goto "end"
?_nrand > 44: _unit setObjectTexture [5, "\JASDF_F15\F15\No\4.paa"], goto "end"
?_nrand > 33: _unit setObjectTexture [5, "\JASDF_F15\F15\No\3.paa"], goto "end"
?_nrand > 22: _unit setObjectTexture [5, "\JASDF_F15\F15\No\2.paa"], goto "end"
?_nrand > 11: _unit setObjectTexture [5, "\JASDF_F15\F15\No\1.paa"], goto "end"
?_nrand >  0: _unit setObjectTexture [5, "\JASDF_F15\F15\No\0.paa"], goto "end"

#end