|
@@ -424,13 +424,25 @@ if $ARGS[0] = 'sports_outfit':
|
|
end
|
|
end
|
|
|
|
|
|
if $ARGS[0] = 'school_outfit':
|
|
if $ARGS[0] = 'school_outfit':
|
|
|
|
+ ! check to see if player has created a school uniform outfit
|
|
if ARRSIZE('defclothingnumber') > 0:
|
|
if ARRSIZE('defclothingnumber') > 0:
|
|
SchoolOutfitLoop = 0
|
|
SchoolOutfitLoop = 0
|
|
:FindSchoolOutfit
|
|
:FindSchoolOutfit
|
|
gs 'clothing_attributes', $defclothingtype[SchoolOutfitLoop], defclothingnumber[SchoolOutfitLoop]
|
|
gs 'clothing_attributes', $defclothingtype[SchoolOutfitLoop], defclothingnumber[SchoolOutfitLoop]
|
|
|
|
+ ! found an outfit that includes a school uniform
|
|
if CloStyle2 = 4:
|
|
if CloStyle2 = 4:
|
|
|
|
+ tempSchtype = 0
|
|
|
|
+ ! if they have worn a uniform recently we will use that rather than the one in the outfit
|
|
|
|
+ if schtype <> 0:
|
|
|
|
+ tempSchtype = schtype
|
|
|
|
+ $tempSchbrand = $schbrand
|
|
|
|
+ end
|
|
|
|
+ ! put the outfit on
|
|
gs 'wardrobe', 'default_entry_wear', SchoolOutfitLoop
|
|
gs 'wardrobe', 'default_entry_wear', SchoolOutfitLoop
|
|
- if schtype = 0:
|
|
|
|
|
|
+ !over ride the uniform with the most recent one used if there was one
|
|
|
|
+ if tempSchtype <> 0:
|
|
|
|
+ clothingwornnumber = tempSchtype
|
|
|
|
+ $clothingworntype = $tempSchbrand
|
|
schtype = clothingwornnumber
|
|
schtype = clothingwornnumber
|
|
$schbrand = $clothingworntype
|
|
$schbrand = $clothingworntype
|
|
end
|
|
end
|
|
@@ -440,8 +452,12 @@ if $ARGS[0] = 'school_outfit':
|
|
if SchoolOutfitLoop < ARRSIZE('defclothingnumber'):jump 'FindSchoolOutfit'
|
|
if SchoolOutfitLoop < ARRSIZE('defclothingnumber'):jump 'FindSchoolOutfit'
|
|
:FoundSchoolOutfit
|
|
:FoundSchoolOutfit
|
|
killvar 'SchoolOutfitLoop'
|
|
killvar 'SchoolOutfitLoop'
|
|
|
|
+ killvar 'tempSchtype'
|
|
|
|
+ killvar '$tempSchbrand'
|
|
end
|
|
end
|
|
- if schtype = 0 or schoolH[schtype] = 0:
|
|
|
|
|
|
+
|
|
|
|
+ ! if no uniform found or the one selected is worn out, use the default one
|
|
|
|
+ if schtype = 0 or dyneval('RESULT = <<$schbrand>>H[<<schtype>>]') <= 0:
|
|
schtype = 6
|
|
schtype = 6
|
|
$schbrand = 'school'
|
|
$schbrand = 'school'
|
|
end
|
|
end
|