# cloakroom $coat_list_line = { !! a single line in a clothing list (wardrobe, etc) !! ARGS 0 - clothing type !! ARGS 1 - clothing index $bgcolor = iif($bgcolor='#f3f4ee','#ffffff','#f3f4ee') $RESULT = '' $RESULT +='' $RESULT += '<<$ARGS[0]>> no.<> (strength ' + dyneval '$RESULT += <<$ARGS[0]>>H[<>]'+')' $RESULT += '' + FUNC('$clothing_name', $ARGS[0], ARGS[1]) + '' $RESULT += 'View' $RESULT += 'Select' $RESULT += '' if i = defaultcoat: $RESULT += 'Yes' end $RESULT += '' $RESULT += '' if dyneval('RESULT = coatS[<>]') = 0:$RESULT += ' Keep' if dyneval('RESULT = coatS[<>]') = 2:$RESULT += ' Unwanted' $RESULT += ''} if $ARGS[0] = 'dest': *clr dynamic '<<$ARGS[1]>>S[<>] = 2' gt 'cloakroom', 'view_coat_list' end if $ARGS[0] = 'dest1': *clr dynamic '<<$ARGS[1]>>S[<>] = 0' gt 'cloakroom', 'view_coat_list' end if $ARGS[0] = 'view_coat_list': '
Cloakroom
' if defaultcoat = 0: '
You have not chosen a coat to wear.' else '
You will wear Coat<> when a coat is required.' end $bgcolor='#f3f4ee' '
' i = 1 :loopcoat if coat[i] = 1:*p dyneval($coat_list_line, 'coat', i) i += 1 if i <= 12:jump 'loopcoat' act 'Don''t wear a coat':defaultcoat = 0 '
Item no.DescriptionLarge imageSet as defaultDefaultSet for sale
' act 'Leave':gt $loc, $metka end if $ARGS[0] = 'view_coat_item': !! ARGS 0 - view_clothing_item !! ARGS 1 - clothing type !! ARGS 2 - clothing index cla '
' '<<$ARGS[1]>> no.<>' FUNC('$attributes_coat', $ARGS[1], ARGS[2]) FUNC('$clothing_name', $ARGS[1], ARGS[2]) $RESULT = '(strength ' dynamic '$RESULT += <<$ARGS[1]>>H[<>]' $RESULT += ')' '<<$RESULT>>' act 'Return':gt 'cloakroom', 'view_coat_list' !! if the clothing is worn out if dyneval('RESULT = <<$ARGS[1]>>H[<>]') <= 0: 'This item is worn and is not suitable for further wear.' act 'Throw it away': dynamic '<<$ARGS[1]>>[<>] = 0' gt 'cloakroom', 'view_coat_list', $ARGS[1] end end if defaultcoat ! '<>': act 'Set as default': defaultcoat = '<>' end end end --- cloakroom ---------------------------------