code:
;-------------------------------------------------
; eraTheWorld 4.576�p ��������i�L�����N�^�[�̖��O������A���ɃR���Z�v�g�Ȃǈꌾ����Γ����j
;-------------------------------------------------
;���҂ɂ��C���A���M�A���ςɂ��ẮA�����̃��C�Z���X�����ɏ]���Ă��������B

;**** FlagManagement **********************************************************
;�{����ɂĎg�p���Ă���CFLAG�ETCVAR��
;
;TCVAR:[[�L�X��]]:351	�����|���ꂽ�t���O
;TCVAR:[[�L�X��]]:352	�����񈥎A
;CFLAG:[[�L�X��]]:1001	�т����肳����ꂽ
;CFLAG:[[�L�X��]]:1051�`���L�p
;CFLAG:[[�L�X��]]:1100	�o�[�W����
;
;******************************************************************************
;����p�֐�
;�s�@������
@M_KOJO_K83_FUKIGEN(ARG)
#FUNCTION
SIF TALENT:ARG:�@�� == -1
	RETURNF 1
SIF CFLAG:ARG:�u�`�M��
	RETURNF 1
SIF MARK:ARG:�������� >= 3
	RETURNF 1
RETURNF 0

;�����Ă锻��
@M_KOJO_K83_YOIDORE(ARG)
#FUNCTION
SIF ALCOHOL_FACE(ARG) == "�����ǂ�"
	RETURNF 1
SIF ALCOHOL_FACE(ARG) == "���ł���"
	RETURNF 1
RETURNF 0

;���ӂӌ��㔻��
@M_KOJO_K83_UFUFU(ARG)
#FUNCTION
SIF FLAG:���Ԓ�~
	RETURNF 0
SIF TALENT:ARG:���l
	RETURNF 1
SIF TALENT:ARG:����
	RETURNF 1
SIF TALENT:ARG:���~
	RETURNF 1
SIF TALENT:ARG:�Z�t�� >= 2
	RETURNF 1
RETURNF 0

;�����_���䎌
@M_KOJO_K83_AUTO(ARGS)
#FUNCTIONS
SELECTCASE ARGS
CASE "�P�h��"
	SELECTCASE RAND:17
	CASE 1
		RETURNF "�������I"
	CASE 2
		RETURNF "�������I"
	CASE 3
		RETURNF "�������I"
	CASE 4
		RETURNF "������I"
	CASE 5
		RETURNF "�͂����I"
	CASE 6
		RETURNF "�͂����I"
	CASE 7
		RETURNF "�Ђ����I"
	CASE 8
		RETURNF "�Ђ����I"
	CASE 9
		RETURNF "�Ђ�c�I"
	CASE 10
		RETURNF "�ӂ��c�I"
	CASE 11
		RETURNF "�ӂ����I"
	CASE 12
		RETURNF "�ӂ�c�I"
	CASE 13
		RETURNF "�ӂ킟���I"
	CASE 14
		RETURNF "�񂟂��I"
	CASE 15
		RETURNF "�񂭂��I"
	CASE 16
		RETURNF "�����I"
	CASEELSE
		RETURNF "��c���I"
	ENDSELECT
CASE "�P�h���c�I"
	SELECTCASE RAND:17
	CASE 1
		RETURNF "�������c�I"
	CASE 2
		RETURNF "�������c�I"
	CASE 3
		RETURNF "�������c�I"
	CASE 4
		RETURNF "������c�I"
	CASE 5
		RETURNF "�͂����c�I"
	CASE 6
		RETURNF "�͂����c�I"
	CASE 7
		RETURNF "�Ђ����c�I"
	CASE 8
		RETURNF "�Ђ����c�I"
	CASE 9
		RETURNF "�Ђ�c�I"
	CASE 10
		RETURNF "�ӂ��c�I"
	CASE 11
		RETURNF "�ӂ����c�I"
	CASE 12
		RETURNF "�ӂ�c�I"
	CASE 13
		RETURNF "�ӂ킟���c�I"
	CASE 14
		RETURNF "�񂟂��c�I"
	CASE 15
		RETURNF "�񂭂��c�I"
	CASE 16
		RETURNF "�����c�I"
	CASEELSE
		RETURNF "��c���I"
	ENDSELECT
CASE "��A�h��"
	SELECTCASE RAND:14
	CASE 1
		RETURNF "�����A�����A"
	CASE 2
		RETURNF "�����A�����A"
	CASE 3
		RETURNF "�����A�������A"
	CASE 4
		RETURNF "�����A�����A"
	CASE 5
		RETURNF "�����A�����A"
	CASE 6
		RETURNF "�����A����A"
	CASE 7
		RETURNF "�͂��A�����A"
	CASE 8
		RETURNF "�͂��A�����A"
	CASE 9
		RETURNF "����A�����A"
	CASE 10
		RETURNF "����A���������A"
	CASE 11
		RETURNF "����A�������A"
	CASE 12
		RETURNF "����A����A"
	CASE 13
		RETURNF "����A�񂟂��A"
	CASEELSE
		RETURNF "����A�ӂ����A"
	ENDSELECT
CASE "�ߖF��"
	SELECTCASE RAND:2
	CASE 1
		RETURNF "�Ђ႟���I�I"
	CASEELSE
		RETURNF "���႟���I�I"
	ENDSELECT
CASE "�ߖF��"
	SELECTCASE RAND:5
	CASE 1
		RETURNF "������I"
	CASE 2
		RETURNF "�Ђ��I"
	CASE 3
		RETURNF "�Ђ����I"
	CASE 4
		RETURNF "�����I�H"
	CASEELSE
		RETURNF "����I"
	ENDSELECT
CASE "��e"
	SELECTCASE RAND:14
	CASE 1
		RETURNF "�ЂႠ���I"
	CASE 2
		RETURNF "������I"
	CASE 3
		RETURNF "�������I"
	CASE 4
		RETURNF "������I"
	CASE 5
		RETURNF "�����I"
	CASE 6
		RETURNF "�ӂ�����I"
	CASE 7
		RETURNF "���Ă��I"
	CASE 8
		RETURNF "�������I"
	CASE 9
		RETURNF "����I"
	CASE 10
		RETURNF "�Ђ����I"
	CASE 11
		RETURNF "���Ăāc�c"
	CASE 12
		RETURNF "���[�c�c"
	CASE 13
		RETURNF "�����c�c"
	CASEELSE
		RETURNF "�ނނށc�c"
	ENDSELECT
ENDSELECT

;### ���㑶�ݔ��� ###################################
@M_KOJO_K83(ARG)
;������RESULTS��ݒ肷��Ƒ��̓��L���������˂����܂�Ă����퓮�삷��B

;RESULTS = _TEST_

;�Ɛݒ肷��ƁA"EVENT"�n�C�x���g����
;M_KOJO_TEST_EVENT_K83_1() �Ƃ��ŌĂ΂��c�͂��B�i���e�X�g�@�\�j

;������CFLAG���̃L�����ϐ����g���ꍇ�A�L�����ԍ��̎w�肪�K�v�ɂȂ�܂�

;�R�����g�A�E�g���O���Ė�������L�A���Ԓ�~����L��1������ƁA���ꂼ�ꎞ�Ԓ�~���A�������A�Ȃ肫�莞�ɃR�}���h���オ�ǂݍ��܂��悤��
;����Ȃ��Ǝ��Ԓ�~���A�������A�Ȃ肫�莞�͈�ؒ���܂���

;�j�Z�L�����Z������L��1������ƁA@M_KOJO_EVENT_K83_LOST_VIRGIN_STOP�ŃL�����Z���̐��ۂ𑀍�ł��܂�
;����������񂹔���_����ƌ���������񂹔���_�ʏ��1�������M_KOJO_EVENT_K83_PERMISSION�ŉ����|���̐��ۂ𑀍�ł��܂�

;X�ɂ̓L�����ԍ������Ă�������

;CFLAG:[[�L�X��]]:��������L = 0
;CFLAG:[[�L�X��]]:���Ԓ�~����L = 0
;CFLAG:[[�L�X��]]:�Ȃ肫�����L = 0
;CFLAG:[[�L�X��]]:�j�Z�L�����Z������L = 0
;CFLAG:[[�L�X��]]:����������񂹔���_���� = 0
;CFLAG:[[�L�X��]]:����������񂹔���_�ʏ� = 0

;CFLAG:�����|���֎~��1������Ǝ������牟���|���Ă��Ȃ��Ȃ�܂�
;�ȉ��͗��炩�Z�t�������܂ŉ����|���Ă��Ȃ��Ȃ�g�p��
;IF !TALENT:[[�L�X��]]:���� && !TALENT:[[�L�X��]]:�Z�t��
;	CFLAG:[[�L�X��]]:�����|���֎~ = 1
;ELSE
;	CFLAG:[[�L�X��]]:�����|���֎~ = 0
;ENDIF

;���㑶�ݔ���ł��A�����ăR�����g�A�E�g���Ȃ��ł�������
RETURN 1
;### ����F���� ###################################
@M_KOJO_COLOR_K83
;���C���O���[��
SETCOLOR 0x32cd32

;����������������������������������������������������
;"UPDATE����"
;����������������������������������������������������
@M_KOJO_UPDATE_K83
#DIM VERSION
;����Ǝ���UPDATE�p
;ENCOUNTER��p�ɓƎ�����t���O���d���񂾏ꍇ���ɂǂ���
;UPDATE�����CFLAG���̃L�����ϐ����g���ꍇ�A�L�����ԍ��̎w�肪�K�v�ɂȂ�܂�
VERSION = 119
CALL M_KOJO_COLOR_K83
IF !TALENT:[[�L�X��]]:�L�X���o�� || EXP:[[�L�X��]]:�L�X�o��
	SIF FIRSTTIME("�t�@�[�X�g�L�X", 0, [[�L�X��]])
		PRINTFORML �E���̃f�[�^�̃L�X���̓L�X���o���ς݂ł�
ENDIF
RESETCOLOR
IF CFLAG:[[�L�X��]]:1100 == VERSION
	CALL M_KOJO_COLOR_K83
	PRINTFORML �ŐV�o�[�W�����ł�(ver.{CFLAG:[[�L�X��]]:1100 / 100}.{CFLAG:[[�L�X��]]:1100 % 100})
	RESETCOLOR
ELSE
	IF TALENT:[[�L�X��]]:�z�C�^�A�C != -1
		PRINTFORML [�A�C]��t���Ă������H
		PRINTL [1] - ������
		PRINTL [0] - ����
		INPUT
		IF RESULT
			TALENT:[[�L�X��]]:�z�C�^�A�C = -1
			CALL M_KOJO_COLOR_K83
			PRINTFORMW �u����ȂɈÂ����ȁc�c�v
			RESETCOLOR
		ELSE
			PRINTFORMW ���̂܂܂ɂ��܂����B
		ENDIF
	ENDIF
	IF TALENT:[[�L�X��]]:���L�ϐ� != 1
		PRINTFORML [���L�݊�]��t���Ă������H
		PRINTL [1] - ������
		PRINTL [0] - ����
		INPUT
		IF RESULT
			TALENT:[[�L�X��]]:���L�ϐ� = 1
			CALL M_KOJO_COLOR_K83
			PRINTFORMW �u���A�����Ȃ��c�I�v
			RESETCOLOR
		ELSE
			PRINTFORMW ���̂܂܂ɂ��܂����B
		ENDIF
	ENDIF
	IF TALENT:[[�L�X��]]:�|���I != 1
		PRINTFORML [�|���I]��t���Ă������H
		PRINTL [1] - ������
		PRINTL [0] - ����
		INPUT
		IF RESULT
			TALENT:[[�L�X��]]:�|���I = 1
			CALL M_KOJO_COLOR_K83
			PRINTFORMW �u���A����Ȏ��́c�c�v
			RESETCOLOR
		ELSE
			PRINTFORMW ���̂܂܂ɂ��܂����B
		ENDIF
	ENDIF
	IF RELATION:[[�L�X��]]:[[���}��]] < 150
		PRINTFORML ���}���E�p���X�B�E�E�V�Ƃ̑������㏸�����Ă����H
		PRINTL [1] - ������
		PRINTL [0] - ����
		INPUT
		IF RESULT
			RELATION:[[�L�X��]]:[[���}��]] = 150
			RELATION:[[�L�X��]]:[[�p���X�B]] = 120
			RELATION:[[�L�X��]]:[[�E�V]] = 120
			PRINTFORMW ����C�����܂����B
		ELSE
			PRINTFORMW ���̂܂܂ɂ��܂����B
		ENDIF
	ENDIF
	CFLAG:[[�L�X��]]:1100 = VERSION
	CALL M_KOJO_COLOR_K83
	PRINTFORML UPDATE�����I(ver.{CFLAG:[[�L�X��]]:1100 / 100}.{CFLAG:[[�L�X��]]:1100 % 100})
	RESETCOLOR
ENDIF
RETURN 1

;����������������������������������������������������
;"ENCOUNTER"�n�C�x���g�i�G�N�X�g���\���j
;����������������������������������������������������
@M_KOJO_ENCOUNTER_K83
;���ΖʁA���A�̃^�C�~���O
;TALENT�̕ύX�͂����łǂ����B
;�o���̕ύX���ꗂ��o��ꍇ������܂��̂ŁACSV���C�����������鎖�𐄏����܂�

CLEARLINE 1
;�n��
IF MAIN_MAP == 9 && AT_HOME([[�L�X��]])
	PRINTFORMDW ����ȂƂ���ɉ��������Ă���B
	PRINTFORMDW %CALLNAME:MASTER%�͕s�R�Ɏv���Ē���`���Ă݂��B
	PRINTFORMDW �Ȃ�ƁI ���̒��ɂ��̎q�������Ă����I
	PRINTL
	PRINTFORMW �u�Ђ���I�H �ɁA�l�ԁc�c�H �ǁA�ǂ����Ă����Ɂc�c�H�v
	PRINTL
	PRINTFORMDW %CALLNAME:MASTER%�͈�ʂ莩�ȏЉ�������B
	PRINTL
	PRINTFORMW �u�Ӂ[��c�c�B���Ⴀ�M�����n��ŕ�炷�񂾁c�c�v
	PRINTFORML �u���A�����͊O�ɔ�ׂ���Â���������Ȃ����ǁA
	PRINTFORMW �@�݂�ȋC�܂܂ɕ�炵�Ă�c�c�����Ƃ��낾�Ɓc�v���v
	PRINTFORMW �u���Ɓc�c��A�킽���̓L�X���c�c�B�ޕr���Ƃ��c�c�v
	PRINTL
	PRINTFORMDL �ޏ��͉��ɓ������܂܂ԂԂƒ����Ă��邪�A���t�̎��؂ꂪ�����B
	PRINTFORMDW %CALLNAME:MASTER%�͂��ꂩ�炲�ߏ�����ɂȂ�̂ŁA�Ǝ�������o�����B
	PRINTL
	PRINTFORMW �u�c�c�c�c��A��낵���c�c�v
	PRINTL
	PRINTFORMDL ������߂��܂܂������̔ޏ����������A���΂炭�̌�A�Ђ傢���Ə����Ȏ���o���Ĉ��肵���B
	PRINTFORMDW �ǂ����p���������艮�̂悤���B
	CFLAG:[[�L�X��]]:1001 = 0
	;���L������
	CALL M_KOJO_DIARYSETTING_K83(36)
;���̑�
ELSE
	PRINTFORMDW ����ȂƂ���ɉ��������Ă���B
	PRINTFORMDL ���ׂĂ݂܂����H
	PRINTDL [1] - �͂�
	PRINTDL [0] - ������
	INPUT
	;�͂�
	IF RESULT
		PRINTFORMDW �Ȃ�ƁI ���̒��ɂ��̎q�������Ă����I
		PRINTL
		PRINTFORMW �u�Ђ႟���I�H�v
		PRINTFORMW �u�����A���߂�Ȃ����c�c�B����͂��́c�c�ȂŁc�c�v
		PRINTFORMW �u��A�킽���̓L�X���c�c�v
		PRINTFORMW �u�����ƁA�A�ޕr���Ƃ��A������c�c���́c�c�v
		PRINTL
		PRINTFORMDL �\�\�d���̂悤�����G�ł͂Ȃ��悤���B
		PRINTFORMDW %CALLNAME:MASTER%�͂ЂƂ܂����ȏЉ�����Ă������B
		CFLAG:[[�L�X��]]:1001 = 0
		;���L������
		CALL M_KOJO_DIARYSETTING_K83(37)
	;������
	ELSE
		PRINTFORMDW ���ɋC�ɂ��������]�����������u�ԁA
		PRINTL
		PRINTFORMDL �h�K�b�I
		PRINTW
		PRINTFORMDW �ƁA�w�ォ�牽�҂����Ԃ����Ă����B
		PRINTFORMDW �U������ƈ�l�̏��̎q���̂тĂ���B
		PRINTFORMDW %CALLNAME:MASTER%�͑��v���Ƌ���Ő����|�����B
		PRINTL
		PRINTFORMW �u�����c�c�ޏ��̌아���Ȃ�āc�c���邢�c�c�v
		PRINTFORMW �u�Ђ���I�H ���A���߂�Ȃ����c�c�v
		PRINTFORMW �u��A�킽���̓L�X���c�c�v
		PRINTFORMW �u�����ƁA�A�ޕr���Ƃ��A������c�c���́c�c�v
		PRINTL
		PRINTFORMDL �\�\�ǂ������������Ƃ��Ĕ�т����������A�w���ɓ\���Ă������아�ɒe���ꂽ�炵���B
		PRINTFORMDW ����Ȃ��̌��Ɋo�����Ȃ��̂����c�c�B
		PRINTL
		PRINTFORMW �u���A�������܂���c�c�v
		PRINTL
		PRINTFORMDW �L�X���̓o�c���������Ƀg�{�g�{�ƕ����A���̒��ւƖ߂��Ă������B
		;����
		TALENT:[[�L�X��]]:�@�� = -1
		CFLAG:[[�L�X��]]:1001 = 1
		;���L������
		CALL M_KOJO_DIARYSETTING_K83(38)
	ENDIF
ENDIF
PRINTL

RETURN 1

;����������������������������������������������������
;"SP_EVENT"�n�C�x���g
;����������������������������������������������������
;==================================================
;�f�[�g�A��Ƀt�@�[�X�gKISS�i���ӂ��t���j
;==================================================
@M_KOJO_SPEVENT_K83_1(ARG,ARG:1)
;������TARGET
;�n�̕��\��
;CALL SPEVENT_MESSAGE_1(ARG,ARG:1)
;--------------------------------------------------
;�L���`�F�b�N�i=0, ��\���A1, �\���j
LOCAL = 1
;-------------
IF LOCAL
	PRINTL
	PRINTFORMDW �f�[�g����̋A�蓹�A�L�X���͂����̂悤�ɉ��ɓ����Ăӂ�ӂ�ƕ����Ȃ�����Ă���B
	IF TALENT:[[�L�X��]]:����
		PRINTFORMDW ���������������Ƃ������ŁA%CALLNAME:MASTER%�̓N�C�N�C�Ɛ�����������ꂽ�B
	ELSE
		PRINTFORMDW ���������������Ƃ������ŁA%CALLNAME:MASTER%�͂��Ə��˂��ꂽ�B
	ENDIF
	PRINTFORMDL ���������ƁA�L�X���͂������Ȃ��Ί�ł���������߂Ă����B
	PRINTW
	IF TALENT:[[�L�X��]]:����
		PRINTFORMW �u���A���́A%CALLNAME:MASTER%�c�c�����́A�y���������c�c�v
		PRINTFORMW �u������A���́c�c���A���炪�������āc�c�v
		PRINTFORMW �u%CALLNAME:MASTER%�c�c�ڂ��҂��āc�c�v
		PRINTW
		SETCOLOR 255, 100, 255
		PRINTFORML ����c%UNICODE(0x2764)%
		CALL M_KOJO_COLOR_K83
		PRINTW
		PRINTFORMW �u���A���߂�}�Ɂc�c���́A�킽���́A�����c�c�����Ɓc�c�v
		PRINTL
		PRINTFORMDL �L�X���͊��^�Ԃɂ��Ȃ��獬�����Ă���̂ŁA�Ƃ肠�������𕏂łĂ������B
		PRINTW
		PRINTFORMW �u���A���肪�Ɓc�c�ł��A���ꂶ��c�c�t�c�c\/\/\/�v
		;�t���O�p
		IF FIRSTTIME("�t�@�[�X�g�L�X")
			PRINTFORMW �i��A�E�C���o�����c�c�B%CALLNAME:MASTER%�̑O�łȂ�A�킽���ł��E�C�o����c�c�I�j
		ENDIF
		;���L������
		CALL M_KOJO_DIARYSETTING_K83(43)
	ELSE
		PRINTFORMW �u���A���́A%CALLNAME:MASTER%�c�c�����́A�y���������c�c�v
		PRINTFORMW �u������A���́c�c�����Ɓc�c�v
		PRINTFORMW �u���A���肪�Ɓc�c���A���x�����Ɖ���������c�c�v
		PRINTL
		PRINTFORMW �i�����c�c�B�E�C���o�Ȃ��c�c�j
		TCVAR:[[�L�X��]]:�L�X�L�����Z�� = 1
		;���L������
		CALL M_KOJO_DIARYSETTING_K83(42)
	ENDIF
ENDIF
RETURN 1

;==================================================
;�f�[�g�A��ɍ����i���l���t���j
;==================================================
@M_KOJO_SPEVENT_K83_2(ARG,ARG:1)
;������TARGET
;�n�̕��\��
;CALL SPEVENT_MESSAGE_2(ARG,ARG:1)
;--------------------------------------------------
;�L���`�F�b�N�i=0, ��\���A1, �\���j
LOCAL = 1
;-------------
IF LOCAL
	;-------------------------------------------------
	;������
	;-------------------------------------------------
	;�������e
	;���̍������e�\����Ɏ󂯂邩�ǂ����̑I�𕪂��\������܂�
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 0
		;����
		IF FIRSTTIME("����")
			PRINTL
			PRINTFORMDW �f�[�g����̋A�蓹�A�L�X���͂����̂悤�ɉ��ɓ����Ăӂ�ӂ�ƕ����Ȃ�����Ă���B
			PRINTFORMDW ���������������Ƃ������œˑR�A%CALLNAME:MASTER%�͌�납�炪�΂��ƕ������ꂽ�B
			PRINTFORMDL �ǂ������̂��ƐU��������Ƃ��邪�A�L�X���͊��w���ɖ��߂��܂ܓ����Ȃ��B
			PRINTW
			;�т����肳����ꂽ
			IF CFLAG:[[�L�X��]]:1001
				PRINTFORMW �u�c�c���߂ĉ������������Ȃ������ˁc�c�v
				PRINTL
				PRINTFORMDL �\�\���̎��͋��R�\���Ă������아�ɏ������āA�����͂Ȃ�Ȃ������\�\
				PRINTW
			ELSE
				PRINTFORMW �u�т����肵���c�c�H �ӂӁA%CALLNAME:MASTER%�̔w���A�����������c�c�v
			ENDIF
			PRINTFORMW �u�킽���ˁA�̂͂�������Đl�Ԃ��c�c�߂炦�Ă��v
			PRINTL
			PRINTFORMDL �c�c���t�K������Ă��邪�A�߂܂��Ă��邱�ƂƂ����Έ���������B
			PRINTW
			PRINTFORMW �u�����A���͗d���Ȃ́c�c������^�`�������v
			PRINTFORMW �u������A�n��ɕ�����ꂽ�c�c�v
			PRINTL
			PRINTFORMDL ���͂����Ⴄ���낤�Ǝv�Ă��Ă���ƁA���ꂪ�`��������̂悤�ɂ��Ԃ��U��B
			PRINTW
			PRINTFORMW �u������A���Ȃ��c�c�d���̖{���́A�ς��Ȃ��v
			PRINTFORMW �u�l�Ԃ����������c�c���ꂪ�A�킽�����킽���ł���Ƃ������c�c�v
			PRINTFORMW �u�c�c���̏Փ��͗}�����Ȃ��́v
			PRINTL
			PRINTFORMDW �L�X���͉������������̂��낤�B
			PRINTFORMDL �܂����������\�\
			PRINTW
			PRINTFORMW �u�˂��A%CALLNAME:MASTER%�c�c�킽���A%CALLNAME:MASTER%�̎����D���v
			PRINTFORMW �u������c�c���A���l�Ƃ��āc�c�t�������Ăق����c�c�v
		;�ȍ~
		ELSE
			PRINTL
			PRINTFORMDW �f�[�g����̋A�蓹�A�L�X���͂����̂悤�ɉ��ɓ����Ăӂ�ӂ�ƕ����Ȃ�����Ă���B
			PRINTFORMDW ���������������Ƃ������ŁA�O�C�Ƙr�������ꂽ�B
			PRINTFORMDL �\�\�L�X���͂܂����߂��Ȃ��悤���B
			PRINTW
			PRINTFORMW �u�˂��A%CALLNAME:MASTER%�c�c�ǂ����Ă킽���ƗV��ł����́c�c�H�v
			PRINTFORMW �u%CALLNAME:MASTER%�͂킽���̎��A�ǂ��v���Ă�́c�c�H�v
		ENDIF
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;�����I�b�P�[�i���l���t���j
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 1
		;���f�肵�ĂȂ�
		IF FIRSTTIME("�ԓ�")
			PRINTFORMDL �H�H�H
			PRINTFORMDL �}�ɘb��180�x�ς�������Ƃɋ����˘f���Ȃ�����A%CALLNAME:MASTER%�͔ޏ��̍����ɉ������B
			PRINTW
			PRINTFORMW �u�فA�ق�ƁH�v
			PRINTFORMW �u�킽���͗d�������ǁc�c����ł������́H�v
			PRINTDL [1] - ����
			PRINTDL [0] - ������Ƃ��킢
			INPUT
			;����
			IF RESULT
				PRINTFORMW �u%CALLNAME:MASTER%�͗D�����񂾂ˁc�c�v
				PRINTFORMW �u�������c�c�B%CALLNAME:MASTER%�́A���������Ƃ��낪�D���c�c�v
				PRINTFORMW �u���v�A%CALLNAME:MASTER%�ׂ̗ɋ���΁A�킽����%CALLNAME:MASTER%�ׂ̈̑��݂ŋ����邩��c�c�v
			;������Ƃ��킢
			ELSE
				PRINTFORMW �u%CALLNAME:MASTER%�͐����҂��ˁc�c�v
				PRINTFORMW �u�c�c���́A������ƕ|�����Ă��������A�킽���͋��S�n���ǂ������肵�āc�c�v
				PRINTFORMW �u%CALLNAME:MASTER%�́A���������Ƃ��낪�D���Ȃ̂����c�c�v
			ENDIF
			PRINTFORMW �u���߂�ˁc�c�킽���̎���m���ė~�����āc�c�v
			PRINTFORMW �u�ł��A�E�C���o���Č����ėǂ������c�c�v
			PRINTFORMW �u���ւցc�c����ł킽�������A���A���l�A�Ȃ񂾂ˁc�c�v
		;���f�肵�����Ƃ���
		ELSE
			PRINTFORMW �u�فA�ق�Ɓc�c�H�v
			PRINTFORMW �u���A�������c�c�I �킽���A�ǂ������炢��������Ȃ��āc�c�����c�c�v
			PRINTFORMW �u�����ƕ|�������c�c����ꂽ�Ǝv���Ă��c�c�v
			PRINTFORMW �u���ւցc�c����ł킽�������A���A���l�A�Ȃ񂾂ˁc�c�v
		ENDIF
		;���L������
		CALL M_KOJO_DIARYSETTING_K83(46)
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;�������s
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 2
		;���߂Ă̂��f��
		IF FIRSTTIME("�ԓ�")
			PRINTFORMDL �H�H�H
			PRINTFORMDL �}�ɘb��180�x�ς�������Ƃɋ����˘f�����B
			PRINTW
			PRINTFORMW �u���A��������ˁc�c�B������A�����́B���ꂪ���ʂ�����c�c�v
			PRINTFORMW �u���߂�ˁc�c��A�킽���̎����c�c�m���āc�ق����Łc�c�����c�c�����c�c�v
			;���L������
			CALL M_KOJO_DIARYSETTING_K83(45)
		;���f����ڈȍ~
		ELSE
			PRINTFORMW �u�������c�c�v
			PRINTFORMW �u%CALLNAME:MASTER%�́c�c�������c�c�����c�c�����c�c�v
		ENDIF
		RETURN 1
	ENDIF
ENDIF
RETURN 1

;==================================================
;�f�[�g�A��
;==================================================
@M_KOJO_SPEVENT_K83_3(ARG,ARG:1)
;������TARGET
;�n�̕��\��
CALL SPEVENT_MESSAGE_3(ARG,ARG:1)
;--------------------------------------------------
;�L���`�F�b�N�i=0, ��\���A1, �\���j
LOCAL = 1
;-------------
IF LOCAL
	;-------------------------------------------------
	;������
	;-------------------------------------------------
	;�ʏ�A��
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 0
		;�Z�ݍ���
		IF MAIN_MAP == 9 || FLAG:�Z�ݍ��݃L���� == [[�L�X��]]
			IF TALENT:[[�L�X��]]:���l
				PRINTFORML �u�������܁c�c�v
				PRINTFORMW �u�܂��A�f�[�g���悤�ˁc�c��v
			ELSEIF TALENT:[[�L�X��]]:����
				PRINTFORML �u�������܁c�c�v
				PRINTFORMW �u�܁A�܂��A�f�[�g�������c�ȁc�c�v
			ELSEIF TALENT:[[�L�X��]]:�v��
				;�v��ŊO���Z�ݍ��݂͖����͂��c�c�I
				PRINTFORMW �u�n��͊���Ȃ��c�c�v
			ELSE
				PRINTFORMW �u�A��ꂽ�c�c�v
			ENDIF
		ELSE
			IF TALENT:[[�L�X��]]:���l
				PRINTFORMW �u�܂��A�f�[�g���悤�ˁc�c��v
			ELSEIF TALENT:[[�L�X��]]:����
				PRINTFORMW �u�܁A�܂��A�f�[�g�������c�ȁc�c�v
			ELSEIF TALENT:[[�L�X��]]:�v��
				PRINTFORMW �u�������̂́c�c����Ȃ��c�c�v
			ELSE
				PRINTFORMW �u�A��ꂽ�c�c�v
			ENDIF
		ENDIF
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;������������C�x���g
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 0
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 1
		PRINTFORML
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;��������2>1���x���_�E���C�x���g
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 0
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 2
		PRINTFORML
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;��������3>2���x���_�E���C�x���g
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 0
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 3
		PRINTFORML
		RETURN 1
	ENDIF
	PRINTFORML
ENDIF
RETURN 1

;����������������������������������������������������
;"EVENT"�n�C�x���g
;����������������������������������������������������
;==================================================
;�����ő���
;==================================================
@M_KOJO_EVENT_K83_1(ARG,ARG:1)
;������TARGET
;--------------------------------------------------
;�L���`�F�b�N�i=0, ��\���A1, �\���j
LOCAL = 1
;-------------
IF LOCAL
	;-------------------------------------------------
	;������
	;-------------------------------------------------
	;MASTER�������Ă���
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && (ARG == 1 || ARG == 2) && !TCVAR:[[�L�X��]]:352
		;�o�����^�C���@���␳�i��ɏ����j
		SIF DAY:2 == 4 && DAY:3 == 14
			TALENT:[[�L�X��]]:�@�� = MAX(TALENT:[[�L�X��]]:�@��, 0)
		;�n���E�B��
		IF DAY:2 == 3 && DAY:3 == 30
			CALL M_KOJO_K83_ENCOUNT("�n���E�B��")
		;�s�@��
		ELSEIF M_KOJO_K83_FUKIGEN([[�L�X��]])
			SIF !TCVAR:[[�L�X��]]:352
				PRINTFORMW �u����ɂ���c�c�v
		ELSE
			CALL M_KOJO_K83_ENCOUNT("�ʏ�")
		ENDIF
		;�o�����^�C���`���R
		SIF DAY:2 == 4 && DAY:3 == 14
			CALL M_KOJO_K83_ENCOUNT("�o�����^�C��")
		CALL M_KOJO_EVENT_K83_1_END
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;TARGET�������Ă���
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 0
	;-------------------------------------------------

	;�������܂���

	;-------------------------------------------------
	;TARGET�����C�ɓ����Ă��Ĉꏏ�ɓ���
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 3
		PRINTFORMW �u�Ђ���I�I %CALLNAME:MASTER%�c�c�I�v
		PRINTFORMW �u���́c�c���A����́c�c���́c�c�v
		PRINTFORMW �u���c�H ���A�ꏏ�ɁA���āc�c���c�c�v
		PRINTFORMW �u����A���Ⴀ�c�c�����Ȃ��c�c\/\/\/�v
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;TARGET�����C�ɓ����Ă��ďo�čs����
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 4
		PRINTFORMW �u%M_KOJO_K83_AUTO("�ߖF��")% ���A���߂�Ȃ��������I�I�v
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;TARGET�����C�ɓ����Ă��Ēǂ��o���ꂽ
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 5
		PRINTFORMW �u%M_KOJO_K83_AUTO("�ߖF��")% �ŁA�o�Ă��āI�I�v
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;�O�o��ő�������
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 6 && !TCVAR:[[�L�X��]]:352
		;�n���E�B��
		IF DAY:2 == 3 && DAY:3 == 30
			CALL M_KOJO_K83_ENCOUNT("�n���E�B��")
		ELSE
			CALL M_KOJO_K83_ENCOUNT("�ʏ�")
			;�o�����^�C��
			SIF DAY:2 == 4 && DAY:3 == 14
				CALL M_KOJO_K83_ENCOUNT("�o�����^�C��")
		ENDIF
		CALL M_KOJO_EVENT_K83_1_END
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;���L�����ƃf�[�g���ɑ�������
	;ARG:1�Ƀf�[�g����
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 7 && !TCVAR:[[�L�X��]]:352
		;�n���E�B���D��
		IF DAY:2 == 3 && DAY:3 == 30
			CALL M_KOJO_K83_ENCOUNT("�n���E�B��")
		ELSE
			IF TALENT:[[�L�X��]]:���l
				PRINTFORMW �u�����A%CALLNAME:MASTER%�c�c���̐l�́c�c�v
				;����
				TALENT:[[�L�X��]]:�@�� = -1
			ELSEIF TALENT:[[�L�X��]]:����
				PRINTFORMW �u�����A%CALLNAME:MASTER%�c�c���A����ɂ��c��c�c�v
				;�ǂ��Ȃ�Ȃ�
				TALENT:[[�L�X��]]:�@�� = MIN(TALENT:[[�L�X��]]:�@��, 0)
			ELSEIF TALENT:[[�L�X��]]:�v��
				PRINTFORMW �u�����A%CALLNAME:MASTER%�c�c�v
				;�ǂ��Ȃ�Ȃ�
				TALENT:[[�L�X��]]:�@�� = MIN(TALENT:[[�L�X��]]:�@��, 0)
			ELSE
				PRINTFORMW �u�����I ���A����ɂ���c�c�v
			ENDIF
			;�o�����^�C��
			SIF DAY:2 == 4 && DAY:3 == 14
				CALL M_KOJO_K83_ENCOUNT("�o�����^�C��")
		ENDIF
		CALL M_KOJO_EVENT_K83_1_END
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;MAIN_MAP��ň���ŏ��̈��A
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 0
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 8
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;�O�o��ň���ŏ��̈��A
	;ARG:1�Ƀf�[�g����
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 0
	;-------------------------------------------------
;�ꎞ����
;	IF LOCAL:1 && ARG == 9
;		;�f�[�g����Ȃ�
;		IF !ARG:1
;			;�n���E�B��
;			IF DAY:2 == 3 && DAY:3 == 30
;				CALL M_KOJO_K83_ENCOUNT("�n���E�B��")
;			ELSE
;				CALL M_KOJO_K83_ENCOUNT("�ʏ�")
;				;�o�����^�C��
;				SIF DAY:2 == 4 && DAY:3 == 14
;					CALL M_KOJO_K83_ENCOUNT("�o�����^�C��")
;			ENDIF
;		;�f�[�g���肠��
;		ELSE
;			;�n���E�B���D��
;			IF DAY:2 == 3 && DAY:3 == 30
;				CALL M_KOJO_K83_ENCOUNT("�n���E�B��")
;			ELSE
;				IF TALENT:[[�L�X��]]:���l
;					PRINTFORMW �u�����A%CALLNAME:MASTER%�c�c���̐l�́c�c�v
;					;����
;					TALENT:[[�L�X��]]:�@�� = -1
;				ELSEIF TALENT:[[�L�X��]]:����
;					PRINTFORMW �u�����A%CALLNAME:MASTER%�c�c���A����ɂ��c��c�c�v
;					;�ǂ��Ȃ�Ȃ�
;					TALENT:[[�L�X��]]:�@�� = MIN(TALENT:[[�L�X��]]:�@��, 0)
;				ELSEIF TALENT:[[�L�X��]]:�v��
;					PRINTFORMW �u�����A%CALLNAME:MASTER%�c�c�v
;					;�ǂ��Ȃ�Ȃ�
;					TALENT:[[�L�X��]]:�@�� = MIN(TALENT:[[�L�X��]]:�@��, 0)
;				ELSE
;					PRINTFORMW �u�����I ���A����ɂ���c�c�v
;				ENDIF
;				;�o�����^�C��
;				SIF DAY:2 == 4 && DAY:3 == 14
;					CALL M_KOJO_K83_ENCOUNT("�o�����^�C��")
;			ENDIF
;		ENDIF
;		CALL M_KOJO_EVENT_K83_1_END
;		RETURN 1
;	ENDIF
ENDIF
RETURN 1
;==================================================
;�������A
;==================================================
@M_KOJO_K83_ENCOUNT(ARGS)
SELECTCASE ARGS
CASE "�n���E�B��"
	;�@���␳
	TALENT:[[�L�X��]]:�@�� = MAX(TALENT:[[�L�X��]]:�@��, 0)
	IF TALENT:[[�L�X��]]:����
		PRINTFORMDW ����ȂƂ���ɃW���b�N�E�I�E�����^���������Ă���B
		PRINTFORMDL �Ǝv�����璆�ɂ̓L�X�����I�I
		PRINTW
		PRINTFORMW �u���ւցc�c�т����肵���H�v
		PRINTFORMW �u���}�������ɍ���Ă�������́c�c��v
	ELSE
		PRINTFORMDW ����ȂƂ���ɉ��������Ă���B
		PRINTFORMDL �Ǝv�����璆�ɂ̓L�X�����I�I
		PRINTW
		PRINTFORMW �u�сA�т����肵���c�c�H�v
		PRINTFORMW �u�����͋������Ă��������Ȃ񂾂��āc�c�v
	ENDIF
CASE "�o�����^�C��"
	;�@���␳
	TALENT:[[�L�X��]]:�@�� = MAX(TALENT:[[�L�X��]]:�@��, 0)
	SELECTCASE CFLAG:[[�L�X��]]:�D���x
	CASE 1000 TO 3000
		;�u���b�N�T���_�[
		PRINTFORMW �u����c�c�j�̐l�ɓn�����ă��}������񂪁c�c�v
	CASE 3001 TO 5000
		;�`���R���[�g
		PRINTFORMW �u���A����c�c�ǂ����c�c�v
	CASE IS > 5000
		IF EXP:[[�L�X��]]:����o�� < 100
			;�����`���R
			PRINTFORMW �u���A����c�c�󂯎���āc�c�v
		ELSE
			;����`���R
			PRINTFORMW �u����A�����̓o�����^�C�����Ă������Łc�c���́c�c�v
			PRINTFORMW �u�`���R���[�g�c�c�A���������A%CALLNAME:MASTER%�ɐH�ׂė~�����c�c\/\/\/�v
		ENDIF
	ENDSELECT
;�ʏ�
CASEELSE
	;�n�� or �������_
	IF INRANGE(CFLAG:[[�L�X��]]:���݈ʒu, 900, 1000) || CFLAG:MASTER:�����ʒu / 100 == CFLAG:[[�L�X��]]:�����ʒu / 100
		IF TALENT:[[�L�X��]]:���l || TALENT:[[�L�X��]]:����
			PRINTFORML �u�����A%CALLNAME:MASTER%\@ TALENT:[[�L�X��]]:���l ? �� # �c�c \@�I�v
			SELECTCASE RAND:6
			CASE 0
				PRINTFORMW �u������Ȃ��Ďv���Ă��c�c\/\/\/�v
			CASE 1
				PRINTFORMW �u���܃q�}�c�c�H�v
			CASE 2
				PRINTFORMW �u���A�ŋߖZ���������ˁc�c�v
			CASE 3
				PRINTFORMW �u�c�c���肢�ł����Ă��H�v
			CASE 4
				PRINTFORMW �u���������}��������%CALLNAME:MASTER%�̘b���Ă��c�c�v
			CASEELSE
				PRINTFORMW �u���Ɓc�c�n��͂��������V�C�ł��c�c�I�v
			ENDSELECT
		ELSEIF TALENT:[[�L�X��]]:�v��
			PRINTFORMW �u�����A%CALLNAME:MASTER%�c�c�v
			PRINTFORMW �u�����ƁA���A����ɂ���c�c�v
		ELSE
			PRINTFORMW �u�����I ���A����ɂ���c�c�v
		ENDIF
	ELSE
		IF TALENT:[[�L�X��]]:���l
			PRINTFORMW �u�����A%CALLNAME:MASTER%���I�v
		ELSEIF TALENT:[[�L�X��]]:����
			PRINTFORMW �u�����A%CALLNAME:MASTER%�c�c�I�v
		ELSEIF TALENT:[[�L�X��]]:�v��
			PRINTFORMW �u�����A%CALLNAME:MASTER%�c�c�v
		ELSE
			PRINTFORMW �u�����I ���A����ɂ���c�c�v
		ENDIF
	ENDIF
ENDSELECT
;==================================================
;���A����I������
;���オ�\������Ȃ��Ă���������܂�
;==================================================
@M_KOJO_EVENT_K83_1_END
;������
TCVAR:[[�L�X��]]:352 = 1
;����ŁA�s�@���ł͂Ȃ��A�f�[�g���ł͂Ȃ��A�~���s����75%�ȏ�
IF TALENT:[[�L�X��]]:���� && TALENT:[[�L�X��]]:�@�� >= 0 && !FLAG:�f�[�g���� && CFLAG:[[�L�X��]]:���܂��Ă�x >= 750
	PRINTFORMDW �L�X���͖j����߂Ă����������Ă���c�c
	SELECTCASE RAND:4
	CASE 1
		PRINTFORMW �u�˂��A%CALLNAME:MASTER%�c�c����A�����͈ꏏ�Ɂc�c�v
	CASE 2
		PRINTFORMW �u�˂��A%CALLNAME:MASTER%�c�c�ӁA��l�ŉ������Ɂc�c�v
	CASE 3
		PRINTFORMW �u���A���̂��A%CALLNAME:MASTER%�c�c������Ă��āc�c\/\/\/�v
	CASEELSE
		PRINTFORMW �u�����c�c%CALLNAME:MASTER%�c�c��A���c�c\/\/\/�v
	ENDSELECT
ENDIF
RETURN 1

;==================================================
;���N�����Ƃ��i���͂悤����j
;==================================================
@M_KOJO_EVENT_K83_2(ARG,ARG:1)
;������TARGET
;--------------------------------------------------
;�L���`�F�b�N�i=0, ��\���A1, �\���j
LOCAL = 1
;-------------
IF LOCAL
	;-------------------------------------------------
	;������
	;-------------------------------------------------
	;�񓯐������肪��ɋN���Ă�
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 1
		;-------------------------------------------------
		;TARGET������MASTER�������Ă���i���玞�Y���Q���A�Q���̂݁H
		;�L���`�F�b�N�i=0, ��\���A1, �\���j
		LOCAL:1 = 1
		;-------------------------------------------------
		IF LOCAL:1 && !ARG:1
			PRINTL
			PRINTFORMW �u���A%CALLNAME:MASTER%�A���͂悤�c�c�v
			RETURN 1
		ENDIF
		;-------------------------------------------------
		;MASTER������TARGET�������Ă��Ă�(���疳���ł������Ă���\���L��
		;�L���`�F�b�N�i=0, ��\���A1, �\���j
		LOCAL:1 = 0
		;-------------------------------------------------
		IF LOCAL:1 && ARG:1 == 1
			PRINTFORMW
			RETURN 1
		ENDIF
		PRINTFORMW
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;���������肪�N���Ă���
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 2
		PRINTL
		PRINTFORMW �u���A%CALLNAME:MASTER%�A���͂悤�c�c�v
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;���������肪�Q�Ă���
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 0
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 3
		PRINTFORMW
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;MASTER���N���Ă��āA���肪�N���Ă���
	;�Y���Q��TARGET�N���͂�����iTARGET����or�Y���Q��TARGET���������セ�̂܂�MASTER���N����������ő��肪�N�������ꍇ����
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 4
		;-------------------------------------------------
		;�񓯐�
		;�L���`�F�b�N�i=0, ��\���A1, �\���j
		LOCAL:1 = 1
		;-------------------------------------------------
		IF LOCAL:1 && !ARG:1
			PRINTL
			PRINTFORMW �u���c�c�ނɂ�c�c���c�c�v
			PRINTFORMW �u���A���͂悤�c�c%CALLNAME:MASTER%�c�c�v
			RETURN 1
		ENDIF
		;-------------------------------------------------
		;������
		;�L���`�F�b�N�i=0, ��\���A1, �\���j
		LOCAL:1 = 1
		;-------------------------------------------------
		IF LOCAL:1 && ARG:1 == 1
			PRINTL
			PRINTFORMW �u���c�c�ނɂ�c�c���c�c�v
			PRINTFORMW �u���A���͂悤�c�c%CALLNAME:MASTER%�c�c�v
			RETURN 1
		ENDIF
		PRINTFORMW
		RETURN 1
	ENDIF
	;���̑�
	PRINTFORML
ENDIF
RETURN 1

;==================================================
;��Q��Ƃ��i���₷�݌���j
;==================================================
@M_KOJO_EVENT_K83_3(ARG,ARG:1)
;������TARGET
;--------------------------------------------------
;�L���`�F�b�N�i=0, ��\���A1, �\���j
LOCAL = 1
;-------------
IF LOCAL
	;-------------------------------------------------
	;������
	;-------------------------------------------------
	;�����ɋA��i�莞�ɂȂ��ĐQ��j
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 1 && CFLAG:[[�L�X��]]:���ӂ�
		;����
		IF CFLAG:[[�L�X��]]:���݈ʒu == OMANEKIBEYA() || CFLAG:[[�L�X��]]:���݈ʒu == CFLAG:[[�L�X��]]:�����ʒu
			IF TALENT:[[�L�X��]]:����
				PRINTFORML �u�ӂ킟�`���c�c�˂ނ��c�c�v
				PRINTFORMW �u%CALLNAME:MASTER%�A���₷�݁c�c�v
			ELSE
				PRINTFORMW �u�ӂ킟�`���c�c�˂�c�c�v
			ENDIF
		;����ȊO
		ELSE
			PRINTFORML �u�ӂ킟�`���c�c�˂ނ��c�c�v
			;����
			IF CFLAG:MASTER:�����ʒu == CFLAG:[[�L�X��]]:�����ʒu
				PRINTFORMW �u��ɂ˂�ˁc�c���₷�݁c�c�v
			;�n��
			ELSEIF MAIN_MAP == 9 || INRANGE(CFLAG:[[�L�X��]]:���݈ʒu, 900, 1000)
				IF TALENT:[[�L�X��]]:����
					PRINTFORMW �u%CALLNAME:MASTER%�A���₷�݁`�c�v
				ELSE
					PRINTFORMW �u���₷�݁c�c�v
				ENDIF
			ELSE
				IF TALENT:[[�L�X��]]:����
					PRINTFORMW �u�����A��Ȃ���B%CALLNAME:MASTER%�A���₷�݁`�c�v
				ELSEIF TALENT:[[�L�X��]]:�v��
					PRINTFORMW �u�����A��ˁB���₷�݁c�c�v
				ELSE
					PRINTFORMW �u�A���ĐQ�悤�c�c�v
				ENDIF
			ENDIF
		ENDIF
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;�������ɂ��Ă���
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 2
		PRINTFORMW �u�ӂ��`�c�����c�c�v
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;�������i�N���Ă��Ȃ��̂ŉ�b�Ƃ������͐Q���H�j
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 3
		SELECTCASE RAND:3
		CASE 1
			PRINTFORMW �u�����c�c�����c�c�v
		CASE 2
			PRINTFORMW �u��c�c�ӂ��c�c�v
		CASEELSE
			PRINTFORMW �u�ӂ��c�c�ӂւցc�c�v
		ENDSELECT
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;�C�^�Y����
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	;LOCAL:1 = 0
	;-------------------------------------------------
	;IF LOCAL:1 && ARG == 4
		;PRINTFORMW
		;RETURN 1
	;ENDIF
;	;-------------------------------------------------
;	;���㒆�i����t�����_���L������MAIN_MAP�Ő����ԂɂȂ����ꍇ���A�����������ő��肪���サ���ꍇ�ɔ���
;	;�L���`�F�b�N�i=0, ��\���A1, �\���j
;	LOCAL:1 = 0
;	;-------------------------------------------------
;	IF LOCAL:1 && ARG == 5
;		PRINTFORMW
;		RETURN 1
;	ENDIF
;	;-------------------------------------------------
;	;MASTER���_�E���i�����܂ŉ^�΂��j
;	;�L���`�F�b�N�i=0, ��\���A1, �\���j
;	LOCAL:1 = 0
;	;-------------------------------------------------
;	IF LOCAL:1 && ARG == 6
;		PRINTFORMW
;		RETURN 1
;	ENDIF
	;-------------------------------------------------
	;TARGET�������܂Ŗ߂��Ă���
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 7
		;-------------------------------------------------
		;���̂܂ܒ��ւ��ĐQ��
		;�L���`�F�b�N�i=0, ��\���A1, �\���j
		LOCAL:1 = 1
		;-------------------------------------------------
		IF LOCAL:1 && ARG:1 == 0
			PRINTFORMW �u�����Q��c�c���₷�݁c�c�����v
			RETURN 1
		ENDIF
		;-------------------------------------------------
		;��������ǂ��o���ꂽ
		;�L���`�F�b�N�i=0, ��\���A1, �\���j
		LOCAL:1 = 1
		;-------------------------------------------------
		IF LOCAL:1 && ARG:1 == 1
			PRINTFORMW �u�ˁA�Q�邩��c�c�o�Ă��āc�c�v
			RETURN 1
		ENDIF
		;-------------------------------------------------
		;���L�����Ƃ̂g���~�߂����ĐQ��
		;�L���`�F�b�N�i=0, ��\���A1, �\���j
		LOCAL:1 = 1
		;-------------------------------------------------
		IF LOCAL:1 && ARG:1 == 2
			PRINTFORMW �u�c�c�c�c�o�Ă��āv
			RETURN 1
		ENDIF
	ENDIF
;	;-------------------------------------------------
;	;��ݏZTARGET��MAIN_MAP�ŋx�e
;	;�L���`�F�b�N�i=0, ��\���A1, �\���j
;	LOCAL:1 = 0
;	;-------------------------------------------------
;	IF LOCAL:1 && ARG == 8
;		PRINTFORMW
;		RETURN 1
;	ENDIF
	;-------------------------------------------------
	;�O�̃^�[������ꏏ�̕����ɂ����Ԃő��肪�Q��i�����������܂ށi
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 9
		IF TALENT:[[�L�X��]]:����
			PRINTFORML �u�ӂ킟�`���c�c�˂ނ��c�c�v
			PRINTFORMW �u%CALLNAME:MASTER%�A���₷�݁c�c�v
		ELSE
			PRINTFORMW �u�ӂ킟�`���c�c�˂悤�c�c�v
		ENDIF
		RETURN 1
	ENDIF
	;���̑�
	PRINTFORML
ENDIF
RETURN 1
;
;;==================================================
;;�ړ������ꂿ����
;;==================================================
;@M_KOJO_EVENT_K83_4(ARG,ARG:1)
;;������TARGET
;;--------------------------------------------------
;;�L���`�F�b�N�i=0, ��\���A1, �\���j
;LOCAL = 0
;;-------------
;
;IF LOCAL
;	;-------------------------------------------------
;	;������
;	;-------------------------------------------------
;	;�����~�܂���
;	;���̌㑘������ɐڑ�
;	;�L���`�F�b�N�i=0, ��\���A1, �\���j
;	LOCAL:1 = 0
;	;-------------------------------------------------
;	IF LOCAL:1 && ARG == 1
;		PRINTFORML
;		RETURN 1
;	ENDIF
;	;-------------------------------------------------
;	;�y����߂��Ēʂ�߂���
;	;�L���`�F�b�N�i=0, ��\���A1, �\���j
;	LOCAL:1 = 0
;	;-------------------------------------------------
;	IF LOCAL:1 && ARG == 2
;		PRINTFORML
;		RETURN 1
;	ENDIF
;	;-------------------------------------------------
;	;�������Ēʂ�߂���
;	;�L���`�F�b�N�i=0, ��\���A1, �\���j
;	LOCAL:1 = 0
;	;-------------------------------------------------
;	IF LOCAL:1 && ARG == 3
;		PRINTFORML
;		RETURN 1
;	ENDIF
;	;���̑�
;	PRINTFORML
;ENDIF
;RETURN 1

;==================================================
;���҉���Ń��[�h�ω�
;==================================================
@M_KOJO_EVENT_K83_5(ARG,ARG:1)
;������TARGET
;ARG�ɓ����Ă����L�����i�l�����c��Ȃ̂ŁA���Ȕc�����ȐӔC��
;--------------------------------------------------
;�L���`�F�b�N�i=0, ��\���A1, �\���j
LOCAL = 1
;-------------
IF LOCAL
	;-------------------------------------------------
	;������
	;-------------------------------------------------
	;���}���������Ă���
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == [[���}��]]
		PRINTFORMW �u���A���}�������I�v
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;�p���X�B�������Ă���
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == [[�p���X�B]]
		PRINTFORMW �u�����A�p���X�B�c�c���A����͈Ⴍ�āc�c�v
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;�E�V�������Ă���
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == [[�E�V]]
		PRINTFORMW �u���A�E�V����c�c����ɂ���v
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;���Ƃ肪�����Ă���
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == [[���Ƃ�]]
		PRINTFORMW �u���A���Ƃ肳��c�c���A����ɂ���c�c�v
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;���ӂ������Ă���
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == [[����]]
		PRINTFORMW �u���A�ӂ����A����ɂ���c�c�v
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;���󂪓����Ă���
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == [[����]]
		PRINTFORMW �u���A�󂿂��c�c����ɂ���v
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;�������������Ă���
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == [[������]]
		PRINTFORMW �u�����A�����������c�c���A����ɂ���c�c�v
		RETURN 1
	ENDIF
	;���̑��i�L�����w��Ȃ�
	PRINTFORML �u���c�c�l�������Ⴄ�c�c�v
ENDIF
RETURN 1

;==================================================
;���ڌ�����
;==================================================
@M_KOJO_EVENT_K83_6(ARG,ARG:1)
;������TARGET
;ARG�ɏ����
;--------------------------------------------------
;�L���`�F�b�N�i=0, ��\���A1, �\���j
LOCAL = 1
;-------------
IF LOCAL
	;-------------------------------------------------
	;������
	;-------------------------------------------------
	;���ڌ������i��ꍇ���x:��j
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG:1 == 1
		PRINTFORML �u%M_KOJO_K83_AUTO("�ߖF��")%�I�v
		IF TALENT:[[�L�X��]]:���l
			PRINTFORMW �u%CALLNAME:MASTER%�c�c�Ђǂ��c�c�����c�c�����c�c�v
			;����
			TALENT:[[�L�X��]]:�@�� = -1
		ELSEIF TALENT:[[�L�X��]]:����
			PRINTFORMW �u����ȁc�c%CALLNAME:MASTER%�c�c�����c�c�����c�c�v
			;����
			TALENT:[[�L�X��]]:�@�� = -1
		ELSE
			PRINTFORMW �u���c�c���A�������߂�Ȃ����c�c�v
		ENDIF
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;�������ƎQ���i��ꍇ���x:���j
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG:1 == 2
		PRINTFORML �u�����c�c�I�v
		IF TALENT:[[�L�X��]]:���l
			PRINTFORMW �u���A���߂��c�I %CALLNAME:MASTER%�́A�킽���̂��̂Ȃ񂾂���c�c�I�I�v
		ELSEIF TALENT:[[�L�X��]]:����
			PRINTFORMW �u%CALLNAME:MASTER%�c�c�킽�����c�c���˂����c�c�v
		ELSE
			PRINTFORMW �u%CALLNAME:MASTER%�c�c���邢�c�c�v
		ENDIF
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;�C�܂������ɗ�������
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG:1 == 3
		PRINTFORML �u%M_KOJO_K83_AUTO("�ߖF��")%�I�v
		IF TALENT:[[�L�X��]]:���l
			PRINTFORMW �u%CALLNAME:MASTER%�c�c�Ђǂ��c�c�����c�c�����c�c�v
			;����
			TALENT:[[�L�X��]]:�@�� = -1
		ELSEIF TALENT:[[�L�X��]]:����
			PRINTFORMW �u����ȁc�c%CALLNAME:MASTER%�c�c�����c�c�����c�c�v
			;����
			TALENT:[[�L�X��]]:�@�� = -1
		ELSE
			PRINTFORMW �u���c�c���A�������߂�Ȃ����c�c�v
		ENDIF
		RETURN 1
	ENDIF
	;���̑�
	PRINTFORML
ENDIF
RETURN 1

;==================================================
;�������ꂽ
;==================================================
@M_KOJO_EVENT_K83_7(ARG,ARG:1)
;������TARGET
;ARG�ɖڌ���
;--------------------------------------------------
;�L���`�F�b�N�i=0, ��\���A1, �\���j
LOCAL = 1
;-------------
IF LOCAL
	;-------------------------------------------------
	;������
	;-------------------------------------------------
	;�������ꂽ�i�ڌ��҂̓�ꍇ���x:��j
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG:1 == 1
		IF TALENT:[[�L�X��]]:���l
			PRINTFORMW �u�݁A����ꂿ������ˁc�c\/\/\/�v
		ELSEIF TALENT:[[�L�X��]]:����
			PRINTFORMW �u�ǁA�ǂ����悤�c�c����ꂿ������c�c�v
		ELSE
			PRINTFORMW �u�ǁA�ǂ����悤�c�c����ꂿ������c�c�v
		ENDIF
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;�ڌ��҂��������ƎQ���i�ڌ��҂̓�ꍇ���x:���j
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG:1 == 2
		IF TALENT:[[�L�X��]]:���l
			PRINTFORMW �u���c�c���A����ȁc�c�܂��A%CALLNAME:MASTER%�����������Ȃ�c�c�v
		ELSEIF TALENT:[[�L�X��]]:����
			PRINTFORMW �u���c�c�܁A�܂��A%CALLNAME:MASTER%�����������Ȃ�c�c�v
		ELSE
			PRINTFORMW �u���c�c���A����c�c�v
		ENDIF
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;�ڌ��҂���������
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG:1 == 3
		IF TALENT:[[�L�X��]]:���l
			PRINTFORMW �u�݁A����ꂿ������ˁc�c\/\/\/�v
		ELSEIF TALENT:[[�L�X��]]:����
			PRINTFORMW �u�ǁA�ǂ����悤�c�c����ꂿ������c�c�v
		ELSE
			PRINTFORMW �u�ǁA�ǂ����悤�c�c����ꂿ������c�c�v
		ENDIF
		RETURN 1
	ENDIF
	;���̑�
	PRINTFORML
ENDIF
RETURN 1
;
;;==================================================
;;�ڌ��������₢�l�߂�i���ݖ���
;;==================================================
;@M_KOJO_EVENT_K83_8(ARG,ARG:1)
;RETURN 1

;==================================================
;�p���c�v�����ꂽ
;==================================================
@M_KOJO_EVENT_K83_9(ARG,ARG:1)
;������TARGET
;--------------------------------------------------
;�L���`�F�b�N�i=0, ��\���A1, �\���j
LOCAL = 1
;-------------
IF LOCAL
	;-------------------------------------------------
	;������
	;-------------------------------------------------
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG:1 == 1
		;����
		IF FIRSTTIME("�p���c�v��")
			IF TALENT:[[�L�X��]]:���l
				PRINTFORMW �u%CALLNAME:MASTER%�A���Ƃ�������c�c�v
				PRINTFORML �u���A���́c�c�킽���������̂����ꂾ���ǁc�c�v
				PRINTFORMW �u���̎�͎~�߂��ق��������Ǝv���ȁc�c�v
				PRINTFORMW �u��A�킽���̂�������c�c���A���́c�c\/\/\/�v
			ELSEIF TALENT:[[�L�X��]]:����
				PRINTFORMW �u%CALLNAME:MASTER%�A���Ƃ����c�c�v
				PRINTFORMW �u���A���́c�c%CALLNAME:MASTER%�́c�c����������Ȃ́c�c�H�v
			ELSEIF TALENT:[[�L�X��]]:�v��
				PRINTFORMW �u%CALLNAME:MASTER%�A���Ƃ����c�c�v
				PRINTFORMW �u���A���́c�c���A�����������Ƃ��Ă�Ɓc�c����������Ǝv���c�c�v
			ELSE
				PRINTFORMW �u�����A���Ƃ����c�c�Ђ��I�I�v
				PRINTFORMW �u�c�c�c�c�ւ񂽂��v
			ENDIF
		ELSE
			IF TALENT:[[�L�X��]]:���l
				PRINTFORMW �u%CALLNAME:MASTER%�c�c�܂����̎�����Ă��񂾁c�c�v
				PRINTFORMW �u�킽�������W�߂��邯�ǁc�c���l�̏��L������Ȃ����c�c�v
				PRINTFORMW �u%CALLNAME:MASTER%�̂́c�c�ӁA���ʂ̔ƍ߁c�c���Ǝv���c�c�v
			ELSEIF TALENT:[[�L�X��]]:����
				PRINTFORMW �u%CALLNAME:MASTER%�c�c����ς肻����������c�c�v
				PRINTFORMW �u�킽�������W�߂��邯�ǁc�c���f�͂����ĂȂ����c�c�v
			ELSEIF TALENT:[[�L�X��]]:�v��
				PRINTFORMW �u%CALLNAME:MASTER%�c�c����ς肻����������c�c�v
				PRINTFORMW �u�����A���Ƃ肳��Ɍ���������c�c�E�����v
			ELSE
				PRINTFORMW �u%CALLNAME:MASTER%�́c�c�Œ�Ȑl�ԁv
			ENDIF
		ENDIF
		RETURN 1
	ENDIF
	PRINTFORML
ENDIF
RETURN 1

;==================================================
;�����|����
;==================================================
@M_KOJO_EVENT_K83_10(ARG,ARG:1)
;������TARGET
;--------------------------------------------------
;�L���`�F�b�N�i=0, ��\���A1, �\���j
LOCAL = 1
;-------------
IF LOCAL
	;-------------------------------------------------
	;������
	;-------------------------------------------------
	;���ӂ�==2�i�J�n���j
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 1
		;-------------------------------------------------
		;MASTER�������|�����i�J�n���j
		;�L���`�F�b�N�i=0, ��\���A1, �\���j
		LOCAL:1 = 1
		;-------------------------------------------------
		IF LOCAL:1 && !ARG:1
			IF TALENT:[[�L�X��]]:���l
				SELECTCASE RAND:5
				CASE 1
					PRINTFORML �u�ӂӁc�c%CALLNAME:MASTER%�c�c�v
					CALL HPH_PRINT(@"�u����������c�cHPH�v", "W")
				CASE 2
					PRINTFORML �u%CALLNAME:MASTER%�c�c�����c�c�v
					CALL HPH_PRINT(@"�u�����ς��C�����悭���Ă�����ˁc�cHPH�v", "W")
				CASE 3
					PRINTFORML �u%CALLNAME:MASTER%�c�c�����A���߁c�c�v
					CALL HPH_PRINT(@"�u���˂����A�Ԃ߂āc�cHPH�v", "W")
				CASE 4
					PRINTFORML �u�͂��A�͂��c�c%CALLNAME:MASTER%�c�c�v
					CALL HPH_PRINT(@"�u%CALLNAME:MASTER%�����c�c���������c�cHPH�v", "W")
				CASEELSE
					PRINTFORML �u���߂�A%CALLNAME:MASTER%�c�c�v
					CALL HPH_PRINT(@"�u���܂�ł��Ȃ��Ȃ���������c�cHPH�v", "W")
				ENDSELECT
			ELSEIF TALENT:[[�L�X��]]:����
				SELECTCASE RAND:5
				CASE 1
					PRINTFORML �u�ӂӁc�c%CALLNAME:MASTER%�c�c�v
					CALL HPH_PRINT(@"�u�������́A�킽���́c�cHPH�v", "W")
				CASE 2
					PRINTFORML �u%CALLNAME:MASTER%�c�c�����c�c�v
					CALL HPH_PRINT(@"�u���v�A�C�����悭���Ă�����c�cHPH�v", "W")
				CASE 3
					PRINTFORML �u%CALLNAME:MASTER%�c�c�����A���߁c�c�v
					CALL HPH_PRINT(@"�u������Ɛg�݂̑��āc�cHPH�v", "W")
				CASE 4
					PRINTFORML �u�͂��A�͂��c�c%CALLNAME:MASTER%�c�c�v
					CALL HPH_PRINT(@"�u%CALLNAME:MASTER%�������Ȃ��񂾂�c�cHPH�v", "W")
				CASEELSE
					PRINTFORML �u���߂�A%CALLNAME:MASTER%�c�c�v
					CALL HPH_PRINT(@"�u�������܂�ł��Ȃ��c�cHPH�v", "W")
				ENDSELECT
			ELSE
				PRINTFORML �u���߂�A%CALLNAME:MASTER%�c�c�v
				PRINTFORMW �u�������܂�ł��Ȃ��c�c�I�v
			ENDIF
			TCVAR:[[�L�X��]]:351 = 1
			RETURN 1
		ENDIF
;		;-------------------------------------------------
;		;MASTER�ɕ��������i�J�n���j
;		;�L���`�F�b�N�i=0, ��\���A1, �\���j
;		LOCAL:1 = 0
;		;-------------------------------------------------
;		IF LOCAL:1 && ARG:1 == 1
;			PRINTFORML
;			RETURN 1
;		ENDIF
;		PRINTFORML
;		RETURN 1
	ENDIF
	;-------------------------------------------------
	;�Ȃ��߂�ꂽ�i�I�����j
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 2
		;-------------------------------------------------
		;�����o����
		;�L���`�F�b�N�i=0, ��\���A1, �\���j
		LOCAL:1 = 1
		;-------------------------------------------------
		IF LOCAL:1 && !ARG:1
			IF TALENT:[[�L�X��]]:���l
				SELECTCASE RAND:3
				CASE 1
					PRINTFORMW �u�����c�c�c�O�c�c�v
				CASE 2
					PRINTFORMW �u��c�c�������c�c�䖝����c�c�v
				CASEELSE
					PRINTFORMW �u�ނނށc�c�܂����x�c�c�v
				ENDSELECT
			ELSEIF TALENT:[[�L�X��]]:����
				SELECTCASE RAND:3
				CASE 1
					PRINTFORMW �u�����c�c��A�������c�c���߂�c�c�v
				CASE 2
					PRINTFORMW �u���A���߂�c�c������Ƃ�肷�����c�c�v
				CASEELSE
					PRINTFORMW �u���c�c���A����������Ƃ����������c�c�v
				ENDSELECT
			ELSE
				PRINTFORMW �u���A���߂�Ȃ����c�c�v
			ENDIF
			TCVAR:[[�L�X��]]:351 = 0
			RETURN 1
		ENDIF
		;-------------------------------------------------
;		;�����������[�h�����I��
;		;�L���`�F�b�N�i=0, ��\���A1, �\���j
;		LOCAL:1 = 0
;		;-------------------------------------------------
;		IF LOCAL:1 && ARG:1 == 1
;			PRINTFORML
;			RETURN 1
;		ENDIF
;		;-------------------------------------------------
;		;�����������[�h�����I��
;		;�L���`�F�b�N�i=0, ��\���A1, �\���j
;		LOCAL:1 = 0
;		;-------------------------------------------------
;		IF LOCAL:1 && ARG:1 == 2
;			PRINTFORML
;			RETURN 1
;		ENDIF
	ENDIF
	;-------------------------------------------------
	;�����o�����s
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 3
		;-------------------------------------------------
		;�D���ɂ��ď�Ԃ��甲���o���Ȃ�����
		;�L���`�F�b�N�i=0, ��\���A1, �\���j
		LOCAL:1 = 1
		;-------------------------------------------------
		IF LOCAL:1 && ARG:1 == 1
			IF TALENT:[[�L�X��]]:���l
				SELECTCASE RAND:3
				CASE 1
					PRINTFORMW �u�c�O�c�c����%CALLNAME:MASTER%�͓������Ȃ��c�c�v
				CASE 2
					PRINTFORMW �u������x���c�c%CALLNAME:MASTER%�͂킽���̂��́v
				CASEELSE
					PRINTFORMW �u�������D���ɂ��Ă��Č������c�c�v
				ENDSELECT
			ELSEIF TALENT:[[�L�X��]]:����
				SELECTCASE RAND:3
				CASE 1
					PRINTFORMW �u%CALLNAME:MASTER%�c�c���߂āc�c�v
				CASE 2
					PRINTFORMW �u���ʂ���c�c%CALLNAME:MASTER%�c�c�v
				CASEELSE
					PRINTFORMW �u�����A�������c�c�v
				ENDSELECT
			ELSE
				PRINTFORMW �u�ӂӁA���߂āc�c�v
			ENDIF
			RETURN 1
		ENDIF
		;-------------------------------------------------
		;�~���s���������Ĕ����o���Ȃ�����
		;�L���`�F�b�N�i=0, ��\���A1, �\���j
		LOCAL:1 = 1
		;-------------------------------------------------
		IF LOCAL:1 && ARG:1 == 2
			IF TALENT:[[�L�X��]]:���l
				SELECTCASE RAND:3
				CASE 1
					PRINTFORMW �u�܁[���I�v
				CASE 2
					PRINTFORMW �u�₾���c�c�����Ƃ��c�c�v
				CASEELSE
					PRINTFORMW �u�c�O�c�c���͂킽���̕��������c�c�v
				ENDSELECT
			ELSEIF TALENT:[[�L�X��]]:����
				SELECTCASE RAND:3
				CASE 1
					PRINTFORMW �u���߂��c�c�I �����Ȃ��c�c�v
				CASE 2
					PRINTFORMW �u�������c�c���肢�c�I�v
				CASEELSE
					PRINTFORMW �u����������Ƃ�����c�I�v
				ENDSELECT
			ELSE
				PRINTFORMW �u���߁c�c�v
			ENDIF
			RETURN 1
		ENDIF
	ENDIF
	;���̑�
	PRINTFORML
ENDIF
RETURN 1

;==================================================
;����ő���
;==================================================
@M_KOJO_EVENT_K83_11(ARG,ARG:1)
;������TARGET
;--------------------------------------------------
;�L���`�F�b�N�i=0, ��\���A1, �\���j
LOCAL = 1
;-------------
IF LOCAL
	;-------------------------------------------------
	;������
	;-------------------------------------------------
	;�ǂ��o���ꂽ
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 1
		PRINTFORML �u%M_KOJO_K83_AUTO("�ߖF��")%�I�I�v
		PRINTFORMW �u�o�Ă��ā[�[���I�I�v
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;�ڂ��������i�ǂ��o����Ȃ��j
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 2
		PRINTFORMW �u�Ђ႟���I�v
		PRINTFORMW �u���āA%CALLNAME:MASTER%�c�c���A�ꏏ�ɓ���H�v
		RETURN 1
	ENDIF
	;���̑�
	PRINTFORML
ENDIF
RETURN 1

;==================================================
;�Q���ɔE�э���
;==================================================
@M_KOJO_EVENT_K83_12(ARG,ARG:1)
;������TARGET
;--------------------------------------------------
;�L���`�F�b�N�i=0, ��\���A1, �\���j
LOCAL = 1
;-------------
IF LOCAL
	;-------------------------------------------------
	;������
	;-------------------------------------------------
	;�ǂ��o�����i�{��j
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 2
		PRINTFORMW �u�ނނ��c�c�o�Ă��āc�c�I�v
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;�Q���ɐN��
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG:1 == 1
		SELECTCASE RAND:3
		CASE 1
			PRINTFORMW �u��[�c�c�c�c�v
		CASE 2
			PRINTFORMW �u���������c�c�c�c�v
		CASEELSE
			PRINTFORMW �u�����c�c�����c�c�v
		ENDSELECT
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;�Q���ɐN���i���肪����j
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && (ARG:1 == 2 || ARG:1 == 3)
		PRINTFORMW �u���c�c�I�v
		SELECTCASE RAND:3
		CASE 1
			PRINTFORMW �u���c�c%CALLNAME:MASTER%�c�c�v
		CASE 2
			PRINTFORMW �u%CALLNAME:MASTER%�c�c�ǂ������́c�c�H�v
		CASEELSE
			PRINTFORMW �u�ӂ킟�`���c�c%CALLNAME:MASTER%�c�c�ȂɁH�v
		ENDSELECT
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;�Q���ɐN���i���肪����E����j
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------

	;�������܂���

	;-------------------------------------------------
	;�ǂ��o�����
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && (ARG:1 == 4 || ARG:1 == 5)
		PRINTFORMW �u���c�c�I�v
		SELECTCASE RAND:3
		CASE 1
			PRINTFORMW �u���A�N���c�c�I�H�v
		CASE 2
			PRINTFORMW �u�ȁA�����c�c�I�H�v
		CASEELSE
			PRINTFORMW �u������Ɓc�c�I �ŁA�o�Ă��āc�c�v
		ENDSELECT
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;�ǂ��o�����i����j
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------

	;�������܂���

	;���̑�
	PRINTFORML
ENDIF
RETURN 1
;
;;==================================================
;;���d����
;;==================================================
;@M_KOJO_EVENT_K83_13(ARG,ARG:1)
;;������TARGET
;;ARG:1�Ɏc���Ă���d����
;;--------------------------------------------------
;;�L���`�F�b�N�i=0, ��\���A1, �\���j
;LOCAL = 0
;;-------------
;
;IF LOCAL
;	;-------------------------------------------------
;	;������
;	;-------------------------------------------------
;	;�d���J�n�i�E��ֈړ�����j
;	;�L���`�F�b�N�i=0, ��\���A1, �\���j
;	LOCAL:1 = 0
;	;-------------------------------------------------
;	IF LOCAL:1 && ARG == 1
;		PRINTFORML
;		RETURN 1
;	ENDIF
;	;-------------------------------------------------
;	;�Ɩ���
;	;�L���`�F�b�N�i=0, ��\���A1, �\���j
;	LOCAL:1 = 0
;	;-------------------------------------------------
;	IF LOCAL:1 && ARG == 2
;		PRINTFORML
;		RETURN 1
;	ENDIF
;	;-------------------------------------------------
;	;�d���I��
;	;�L���`�F�b�N�i=0, ��\���A1, �\���j
;	LOCAL:1 = 0
;	;-------------------------------------------------
;	IF LOCAL:1 && ARG == 3
;		PRINTFORML
;		RETURN 1
;	ENDIF
;	;���̑�
;	PRINTFORML
;ENDIF
;RETURN 1

;==================================================
;�H���n
;==================================================
@M_KOJO_EVENT_K83_14(ARG,ARG:1)
;������TARGET
;--------------------------------------------------
;�L���`�F�b�N�i=0, ��\���A1, �\���j
LOCAL = 1
;-------------
IF LOCAL
	;-------------------------------------------------
	;�����Ă����H����H�ׂ�ꂽ
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == -1
		;�ꏏ�ɍ����
		IF DISH_ASSI == [[�L�X��]]
			PRINTFORML �u�H�ׂȂ��Ȃ��������Ⴄ��c�c�I�v
		;����ĂȂ�
		ELSE
			PRINTFORML �u���A�����������c�c�I�v
		ENDIF
		RETURN 1
	ENDIF
	;���̑�
	PRINTFORML
ENDIF
RETURN 1

;==================================================
;MASTER�������|����
;==================================================
@M_KOJO_EVENT_K83_15(ARG,ARG:1)
;������TARGET
;--------------------------------------------------
;�L���`�F�b�N�i=0, ��\���A1, �\���j
LOCAL = 1
;-------------
IF LOCAL
	;-------------------------------------------------
	;������
	;-------------------------------------------------
	;�������i�����|���R�}���h�ɓ����H
	;MASTER�������|�����i�E�t�t�J�n���j
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	;LOCAL:1 = 0
	;-------------------------------------------------
	;IF LOCAL:1 && ARG == 1
		;PRINTFORML
		;RETURN 1
	;ENDIF
	;-------------------------------------------------
	;�����I���i�E�t�t�I�����j
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 2
		IF FLAG:���Ԓ�~
		ELSEIF M_KOJO_K83_UFUFU([[�L�X��]])
			IF CFLAG:[[�L�X��]]:���܂��Ă�x < 200
				PRINTFORMW �u�͂��A�͂��c�c�A��ꂽ�c�c�v
			ELSEIF CFLAG:[[�L�X��]]:���܂��Ă�x < 500
				PRINTFORMW �u�͂��A�͂��A���A���������܂��Ȃ́c�c�H�v
			ELSEIF CFLAG:[[�L�X��]]:���܂��Ă�x < 800
				PRINTFORMW �u�͂��A�͂��A�܁A�܂��c�c����Ȃ��c�c�v
			ELSE
				PRINTFORMW �u���A�����܂��c�c�H ���A����Ȃ��c�c�����v
			ENDIF
		ELSE
			IF CFLAG:[[�L�X��]]:���܂��Ă�x < 200
				PRINTFORMW �u�͂��A�͂��A�ӂ��c�c�c�c�v
			ELSEIF CFLAG:[[�L�X��]]:���܂��Ă�x < 500
				PRINTFORMW �u�͂��A�͂��A�͂��A�͂��c�c�c�c�v
			ELSEIF CFLAG:[[�L�X��]]:���܂��Ă�x < 800
				PRINTFORMW �u�͂��A�͂��A�܁A�܂��c�c�����c�c�v
			ELSE
				PRINTFORMW �u���c�c�����Ȃ́c�c�����c�c�v
			ENDIF
		ENDIF
		RETURN 1
	ENDIF
	;���̑�
	PRINTFORML
;	;-------------------------------------------------
;	;����`��
;	;�L���`�F�b�N�i=0, ��\���A1, �\���j
;	LOCAL:1 = 0
;	;-------------------------------------------------
;	IF LOCAL:1 && ARG == 3
;		;-------------------------------------------------
;		;���t������Ă���
;		;�L���`�F�b�N�i=0, ��\���A1, �\���j
;		LOCAL:1 = 0
;		;-------------------------------------------------
;		IF LOCAL:1 && ARG:1 == 1
;			PRINTFORML
;			RETURN 1
;		ENDIF
;		;-------------------------------------------------
;		;���t������Ă���
;		;�L���`�F�b�N�i=0, ��\���A1, �\���j
;		LOCAL:1 = 0
;		;-------------------------------------------------
;		IF LOCAL:1 && ARG:1 == 2
;			PRINTFORML
;			RETURN 1
;		ENDIF
;		;-------------------------------------------------
;		;����̃��[�h
;		;�L���`�F�b�N�i=0, ��\���A1, �\���j
;		LOCAL:1 = 0
;		;-------------------------------------------------
;		IF LOCAL:1 && ARG:1 == 3
;			PRINTFORML
;			RETURN 1
;		ENDIF
;		;-------------------------------------------------
;		;���𒅂�
;		;�L���`�F�b�N�i=0, ��\���A1, �\���j
;		LOCAL:1 = 0
;		;-------------------------------------------------
;		IF LOCAL:1 && ARG:1 == 4
;			PRINTFORML
;			RETURN 1
;		ENDIF
;	ENDIF
ENDIF
RETURN 1
;
;;==================================================
;;�Y���Q����
;;==================================================
;@M_KOJO_EVENT_K83_16(ARG,ARG:1)
;;������TARGET
;;--------------------------------------------------
;;�L���`�F�b�N�i=0, ��\���A1, �\���j
;LOCAL = 0
;;-------------
;
;IF LOCAL
;	;-------------------------------------------------
;	;������
;	;-------------------------------------------------
;	;�Y���Q���n�߂��i�J�n���j(���݂���
;	;�L���`�F�b�N
;	;LOCAL:1 = 0
;	;-------------------------------------------------
;	;IF LOCAL:1 && ARG == 1
;		;PRINTFORML
;		;RETURN 1
;	;ENDIF
;	;-------------------------------------------------
;	;�Y���Q���I�������i�I�����j
;	;�L���`�F�b�N�i=0, ��\���A1, �\���j
;	LOCAL:1 = 0
;	;-------------------------------------------------
;	IF LOCAL:1 && ARG == 2
;		PRINTFORML
;		RETURN 1
;	ENDIF
;	;���̑�
;	PRINTFORML
;ENDIF
;RETURN 1
;;==================================================
;;���~�ߏI����
;;==================================================
;@M_KOJO_EVENT_K83_17(ARG,ARG:1)
;;������TARGET
;;�r���Ɩ��L����Ă��Ȃ����m�󋵂ɂ���Ă͘A���ŕ\�������̂Œ���
;;ARG�Ɏː���
;;ARG:1�Ɏː����
;;--------------------------------------------------
;;�L���`�F�b�N�i=0, ��\���A1, �\���j
;LOCAL = 0
;;-------------
;
;IF LOCAL
;	;-------------------------------------------------
;	;������
;	;-------------------------------------------------
;	;ARG=1�`3�͔r��
;	;��̉���
;	;�L���`�F�b�N�i=0, ��\���A1, �\���j
;	LOCAL:1 = 0
;	;-------------------------------------------------
;	IF LOCAL:1 && ARG == 1
;		RETURN 1
;	ENDIF
;	;-------------------------------------------------
;	;�Ⓒ
;	;�L���`�F�b�N�i=0, ��\���A1, �\���j
;	LOCAL:1 = 0
;	;-------------------------------------------------
;	IF LOCAL:1 && ARG == 2
;		RETURN 1
;	ENDIF
;	;-------------------------------------------------
;	;�p���c����
;	;�L���`�F�b�N�i=0, ��\���A1, �\���j
;	LOCAL:1 = 0
;	;-------------------------------------------------
;	IF LOCAL:1 && ARG == 3
;		RETURN 1
;	ENDIF
;	;-------------------------------------------------
;	;�y�����o�����ː��z
;	;�L���`�F�b�N�i=0, ��\���A1, �\���j
;	LOCAL:1 = 0
;	;-------------------------------------------------
;	IF LOCAL:1 && ARG == 4
;		;���t���Œᐸ��
;		IF ARG:1 == 1
;		;���t���Œ�f���o��
;		ELSEIF ARG:1 == 2
;		;���t���Œ��ŕ���
;		ELSEIF ARG:1 == 3
;		;���t���ō�����
;		ELSEIF ARG:1 == 4
;		;�Z�����t�����t���Œ�f���o��
;		ELSEIF ARG:1 == 5
;		;�Z�����t�����t���ō�����
;		ELSEIF ARG:1 == 6
;		ENDIF
;		RETURN 1
;	ENDIF
;	;-------------------------------------------------
;	;�y�����o��ʎː��z
;	;�L���`�F�b�N�i=0, ��\���A1, �\���j
;	LOCAL:1 = 0
;	;-------------------------------------------------
;	IF LOCAL:1 && ARG == 5
;		;���m���������t�o��100����
;		IF ARG:1 == 1
;		;�ʏ�ʂ������
;		ELSEIF ARG:1 == 2
;		;��ː��t�r�߂Ƃ�
;		ELSEIF ARG:1 == 3
;		ENDIF
;		RETURN 1
;	ENDIF
;	;-------------------------------------------------
;	;�y�����o����ː��z
;	;�L���`�F�b�N�i=0, ��\���A1, �\���j
;	LOCAL:1 = 0
;	;-------------------------------------------------
;	IF LOCAL:1 && ARG == 6
;		;�ʂ������
;		IF ARG:1 == 1
;		;�r�߂Ƃ�
;		ELSEIF ARG:1 == 2
;		ENDIF
;		RETURN 1
;	ENDIF
;	;-------------------------------------------------
;	;�y�����o�A�i���ː��z
;	;�L���`�F�b�N�i=0, ��\���A1, �\���j
;	LOCAL:1 = 0
;	;-------------------------------------------------
;	IF LOCAL:1 && ARG == 7
;		;�`���o2�ȉ�
;		IF ARG:1 == 1
;		;�\���ȊO
;		ELSEIF ARG:1 == 2
;		ENDIF
;		RETURN 1
;	ENDIF
;	;-------------------------------------------------
;	;�y�����o�����r���z
;	;�L���`�F�b�N�i=0, ��\���A1, �\���j
;	LOCAL:1 = 0
;	;-------------------------------------------------
;	IF LOCAL:1 && ARG == 8
;		RETURN 1
;	ENDIF
;	;-------------------------------------------------
;	;�y�����o�S���ː��z
;	;�L���`�F�b�N�i=0, ��\���A1, �\���j
;	LOCAL:1 = 0
;	;-------------------------------------------------
;	IF LOCAL:1 && ARG == 9
;		;�񏈏��S���ː��s���Ȃ�
;		IF ARG:1 == 1
;		;�񏈏��S���ː��s������
;		ELSEIF ARG:1 == 2
;		;�����S���ː�
;		ELSEIF ARG:1 == 3
;		ENDIF
;		RETURN 1
;	ENDIF
;	;-------------------------------------------------
;	;���Ԓ�~��������
;	;�L���`�F�b�N�i=0, ��\���A1, �\���j
;	LOCAL:1 = 0
;	;-------------------------------------------------
;	IF LOCAL:1 && ARG == 0
;		RETURN 1
;	ENDIF
;ENDIF
;RETURN 1
;==================================================
;�i�}�ł�点�뎞
;==================================================
@M_KOJO_EVENT_K83_18(ARG,ARG:1)
;������TARGET
;--------------------------------------------------
;�L���`�F�b�N�i=0, ��\���A1, �\���j
LOCAL = 1
;-------------
IF LOCAL
	;-------------------------------------------------
	;������
	;-------------------------------------------------
	;��D�v���䎌
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 1
		IF TALENT:[[�L�X��]]:���� || TALENT:[[�L�X��]]:���l
			PRINTFORMW �u���A���߂�c�c�܂��c�c�|���c�c�v
		ELSE
			PRINTFORMW �u�����c�c���A����́c�c�܁A�܂��c�c�v
		ENDIF
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;�f����
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 2
		IF TALENT:[[�L�X��]]:���� || TALENT:[[�L�X��]]:���l
			PRINTFORMW �u���߂�ˁc�c���߂�c�c�v
		ELSE
			PRINTFORMW �u���A���߂�c�c���肪�Ƃ��c�c�v
		ENDIF
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;�f�����̂ɔS���Đ؂ꂽ
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 3
		IF TALENT:[[�L�X��]]:���� || TALENT:[[�L�X��]]:���l
			PRINTFORMW �u��A�₾���c�c���肢�c�c�����c�c�v
		ELSE
			PRINTFORMW �u���߂��c�c�I �������c�c�����c�c�v
		ENDIF
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;�댯���ȊO����
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 4
		IF TALENT:[[�L�X��]]:���� || TALENT:[[�L�X��]]:���l
			PRINTFORMW �u���A�����܂Ō����Ȃ�c�c�v
		ELSE
			PRINTFORMW �u��A�������c�c�v
		ENDIF
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;�댯������
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 5
		IF TALENT:[[�L�X��]]:���� || TALENT:[[�L�X��]]:���l
			PRINTFORMW �u��A�������c�c%CALLNAME:MASTER%���������Ȃ�c�c������v
		ELSE
			PRINTFORMW �u�����c�c��A�������c�c�c�c�v
		ENDIF
		RETURN 1
	ENDIF
ENDIF
RETURN 1
;;==================================================
;;�_�Е�炵�����F���ĖႤ
;;==================================================
;@M_KOJO_EVENT_K83_19(ARG,ARG:1)
;;������ARG
;;--------------------------------------------------
;;�L���`�F�b�N�i=0, ��\���A1, �\���j
;LOCAL = 0
;IF LOCAL
;	;-------------------------------------------------
;	;������
;	;-------------------------------------------------
;	;�F�߂���
;	;�L���`�F�b�N�i=0, ��\���A1, �\���j
;	LOCAL:1 = 0
;	;-------------------------------------------------
;	IF LOCAL:1 && ARG == 1
;		PRINTFORML
;		RETURN 1
;	ENDIF
;	;-------------------------------------------------
;	;�F�߂��Ȃ�
;	;�L���`�F�b�N�i=0, ��\���A1, �\���j
;	LOCAL:1 = 0
;	;-------------------------------------------------
;	IF LOCAL:1 && ARG == 2
;		PRINTFORML
;		RETURN 1
;	ENDIF
;ENDIF
;RETURN 1
;==================================================
;�A�
;==================================================
@M_KOJO_EVENT_K83_20(ARG,ARG:1)
;������LOCALS or RESULT
;--------------------------------------------------
;�L���`�F�b�N�i=0, ��\���A1, �\���j
LOCAL = 1
IF LOCAL
	;-------------------------------------------------
	;������
	;-------------------------------------------------
	;�ʏ�A��
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 1
		IF TALENT:[[�L�X��]]:���l
			PRINTFORMW �u�����c�c�A��Ȃ��Ɓc�c�܂��ˁA%CALLNAME:MASTER%�c�c�v
		ELSEIF TALENT:[[�L�X��]]:����
			PRINTFORMW �u�����A��Ȃ��Ɓc�c�܂��ˁA%CALLNAME:MASTER%�v
		ELSEIF TALENT:[[�L�X��]]:�v��
			PRINTFORMW �u�ӂ킟�c�c�܂��ˁv
		ELSE
			PRINTFORMW �u�����c�c����Ȃ�c�c�v
		ENDIF
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;�f�[�g���A��
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 2
		;�������ӂӒ�
		IF CFLAG:[[�L�X��]]:���݈ʒu == OMANEKIBEYA()
			IF TALENT:[[�L�X��]]:���l
				PRINTFORMW �u�ӂ킟�c�c���A���߂�A%CALLNAME:MASTER%�c�c�킽���c�c�v
			ELSEIF TALENT:[[�L�X��]]:����
				PRINTFORMW �u�ӂ킟�c�c%CALLNAME:MASTER%�c�c�킽���c�c�����c�c�v
			;���ʗ��炶��Ȃ��Ɠ���Ȃ�����
			ELSE
				PRINTFORMW �u�ӂ킟�c�c�ˁc�c�˂ނ��c�c�v
			ENDIF
		;�ȊO
		ELSE
			IF TALENT:[[�L�X��]]:���l
				PRINTFORMW �u���߂�A�����A��Ȃ�����c�c�܂��ˁA%CALLNAME:MASTER%�c�c�v
			ELSEIF TALENT:[[�L�X��]]:����
				PRINTFORMW �u�����A�����A��Ȃ��Ɓc�c�܂��ˁA%CALLNAME:MASTER%�c�c�v
			ELSEIF TALENT:[[�L�X��]]:�v��
				PRINTFORMW �u�ӂ킟�c�c���낻��A��ˁc�c�v
			ELSE
				PRINTFORMW �u�����Ȃ��Ă����c�c����Ȃ�c�c�v
			ENDIF
		ENDIF
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;���֐�ł�������
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 3
		;����
		IF CFLAG:[[�L�X��]]:���݈ʒu == OMANEKIBEYA()
			IF TALENT:[[�L�X��]]:���l
				PRINTFORMW �u�ӂ킟�c�c���A���߂�A%CALLNAME:MASTER%�c�c�킽���c�c�v
			ELSEIF TALENT:[[�L�X��]]:����
				PRINTFORMW �u%CALLNAME:MASTER%�c�c�킽���A�����c�c�v
			;���ʗ��炶��Ȃ��Ɠ���Ȃ�����
			ELSE
				PRINTFORMW �u�����c�c���Ԃ��c�c�v
			ENDIF
		ELSE
			IF TALENT:[[�L�X��]]:���l
				PRINTFORMW �u�����͊y���������c�c�܂��f�[�g���悤�ˁc��v
			ELSEIF TALENT:[[�L�X��]]:����
				PRINTFORMW �u�����͊y���������c�c�܁A�܂��V�ڂ��ˁc�c�v
			ELSEIF TALENT:[[�L�X��]]:�v��
				PRINTFORMW �u�����͊y���������c�c�܂��ˁc�c�v
			ELSE
				PRINTFORMW �u�������Ă��ꂽ�́c�c�H ���A���肪�Ɓc�c�v
			ENDIF
		ENDIF
		RETURN 1
	ENDIF
ENDIF
RETURN 1
;==================================================
;�ח��f���擾��
;==================================================
@M_KOJO_EVENT_K83_21(ARG,ARG:1)
;������ARG
;--------------------------------------------------
;�L���`�F�b�N�i=0, ��\���A1, �\���j
LOCAL = 1
IF LOCAL
	;-------------------------------------------------
	;������
	;-------------------------------------------------
	;����擾
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 1
		PRINTFORML �u���A�C�Â���������c�c�v
		PRINTFORMW �u�킽���A%CALLNAME:MASTER%�̂��Ɓc�c�v
		PRINTL
		PRINTFORMDL �L�X���͊��Ԃ����ĉ��̒��ɕ��������Ă�B
		PRINTW
		PRINTFORMW �u���A���ꂪ��������Ď��Ȃ񂾁c�c�v
		PRINTFORMW �u�ǂ����悤�c�c����Ȃ���܂Ƃ��Ɋ猩��Ȃ��c�c�v
		PRINTFORMW �u�ςȎq�����Ďv��ꂿ�Ⴄ�c�c�����c�c�v
		PRINTL
		PRINTFORMDW �����J�^�J�^�Ɨh�炵�A���̓��h�͊O���猩�Ă���ڗđR�������B
		PRINTFORMDW �����܂��ޕr���Ƃ��B
		PRINTFORMDL �Â��n�̒�ŁA�L�X���͓Ƃ茜�z�̈�˂ɗ����Ă������\�\
		PRINTW
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;�v��擾
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 2
		PRINTFORMW �u%CALLNAME:MASTER%�c�c�Ȃ�ł킽���Ȃ񂩂ɍ\���Ă����񂾂낤�c�c�v
		PRINTFORMW �u�ւ�Ȑl�ԁc�c�v
		RETURN 1
	ENDIF
;	;-------------------------------------------------
;	;���~�擾
;	;�L���`�F�b�N�i=0, ��\���A1, �\���j
;	LOCAL:1 = 0
;	;-------------------------------------------------
;	IF LOCAL:1 && ARG == 3
;		PRINTFORML
;		RETURN 1
;	ENDIF
;	;-------------------------------------------------
;	;���l�擾
;	;�L���`�F�b�N�i=0, ��\���A1, �\���j
;	LOCAL:1 = 0
;	;-------------------------------------------------
;	IF LOCAL:1 && ARG == 4
;		PRINTFORML
;		RETURN 1
;	ENDIF
;	;-------------------------------------------------
;	;�Z�t���擾
;	;�L���`�F�b�N�i=0, ��\���A1, �\���j
;	LOCAL:1 = 0
;	;-------------------------------------------------
;	IF LOCAL:1 && ARG == 5
;		PRINTFORML
;		RETURN 1
;	ENDIF
ENDIF
RETURN 1
;==================================================
;�����I�����Ɏ���
;==================================================
@M_KOJO_EVENT_K83_22(ARG,ARG:1)
;������ARG
;ARG:0�Ɏ��ԏ�
;ARG:1�Ɏ��Ԏ��
;--------------------------------------------------
;�L���`�F�b�N�i=0, ��\���A1, �\���j
LOCAL = 1
;-------------
IF LOCAL
;	;-------------------------------------------------
;	;�ʏ펩��
;	;�L���`�F�b�N�i=0, ��\���A1, �\���j
;	LOCAL:1 = 0
;	;-------------------------------------------------
;	IF LOCAL:1 && ARG == 1
;		PRINTFORML
;		RETURN 1
;	ENDIF
;	;-------------------------------------------------
;	;����������
;	;�L���`�F�b�N�i=0, ��\���A1, �\���j
;	LOCAL:1 = 0
;	;-------------------------------------------------
;	IF LOCAL:1 && ARG == 2
;		PRINTFORML
;		RETURN 1
;	ENDIF
;	;-------------------------------------------------
;	;���������t����
;	;�L���`�F�b�N�i=0, ��\���A1, �\���j
;	LOCAL:1 = 0
;	;-------------------------------------------------
;	IF LOCAL:1 && ARG == 3
;		PRINTFORML
;		RETURN 1
;	ENDIF
;	;-------------------------------------------------
;	;���m�����i���Ԍo��(�������Ԍo���͍�������)�ɂ�镪�򂠂�
;	;�L���`�F�b�N�i=0, ��\���A1, �\���j
;	LOCAL:1 = 0
;	;-------------------------------------------------
;	IF LOCAL:1 && ARG == 4
;		LOCAL:2 = EXP:���Ԍo�� - EXP:�������Ԍo��
;		;���m�����C�x���g����i�\���͈�x����
;		IF LOCAL:1 >= 25
;		;�n�̕�����B���������ꍇ��[SKIPSTART][SKIPEND]���폜���Ă�������
;		[SKIPSTART]
;		ELSEIF LOCAL:1 >= 20
;		ELSEIF LOCAL:1 >= 15
;		ELSEIF LOCAL:1 >= 10
;		ELSEIF LOCAL:1 >= 5
;		[SKIPEND]
;		ELSE
;		ENDIF
;		PRINTFORML
;		RETURN 1
;	ENDIF
;	;-------------------------------------------------
;	;�ח��f�����莩�Ԓ��ō���
;	;�L���`�F�b�N�i=0, ��\���A1, �\���j
;	LOCAL:1 = 0
;	;-------------------------------------------------
;	IF LOCAL:1 && ARG == 5
;		;-------------------------------------------------
;		;�b�q��or�b���o10�ȏ�
;		;�L���`�F�b�N�i=0, ��\���A1, �\���j
;		LOCAL:1 = 0
;		;-------------------------------------------------
;		IF LOCAL:1 && ARG:1 == 1
;			PRINTFORML
;			RETURN 1
;		ENDIF
;		;-------------------------------------------------
;		;�u�q��or�u���o10�ȏ�
;		;�L���`�F�b�N�i=0, ��\���A1, �\���j
;		LOCAL:1 = 0
;		;-------------------------------------------------
;		IF LOCAL:1 && ARG:1 == 2
;			PRINTFORML
;			RETURN 1
;		ENDIF
;		;-------------------------------------------------
;		;�`�q��or�`���o10�ȏ�
;		;�L���`�F�b�N�i=0, ��\���A1, �\���j
;		LOCAL:1 = 0
;		;-------------------------------------------------
;		IF LOCAL:1 && ARG:1 == 3
;			PRINTFORML
;			RETURN 1
;		ENDIF
;		;-------------------------------------------------
;		;�a�q��or�a���o10�ȏ�
;		;�L���`�F�b�N�i=0, ��\���A1, �\���j
;		LOCAL:1 = 0
;		;-------------------------------------------------
;		IF LOCAL:1 && ARG:1 == 4
;			PRINTFORML
;			RETURN 1
;		ENDIF
;		;-------------------------------------------------
;		;���ʎw�薳��
;		;�L���`�F�b�N�i=0, ��\���A1, �\���j
;		LOCAL:1 = 0
;		;-------------------------------------------------
;		IF LOCAL:1 && ARG:1 == 5
;			PRINTFORML
;			RETURN 1
;		ENDIF
;		;���̑�
;		;��̕������؏������ɁA�����ɏ������ƂŊח��f�����莩�Ԓ��ō��ߎ��Ԃ̋��ʌ����\�����邱�Ƃ��o���܂�
;		PRINTFORML
;		RETURN 1
;	ENDIF
;	;-------------------------------------------------
;	;���Ԓ��ō���
;	;�L���`�F�b�N�i=0, ��\���A1, �\���j
;	LOCAL:1 = 0
;	;-------------------------------------------------
;	IF LOCAL:1 && ARG == 6
;		;-------------------------------------------------
;		;�K���S�o����
;		;�L���`�F�b�N�i=0, ��\���A1, �\���j
;		LOCAL:1 = 0
;		;-------------------------------------------------
;		IF LOCAL:1 && ARG:1 == 1
;			PRINTFORML
;			RETURN 1
;		ENDIF
;		;-------------------------------------------------
;		;�S�o�̂�
;		;�L���`�F�b�N�i=0, ��\���A1, �\���j
;		LOCAL:1 = 0
;		;-------------------------------------------------
;		IF LOCAL:1 && ARG:1 == 2
;			PRINTFORML
;			RETURN 1
;		ENDIF
;		;���̑�
;		;��̕������؏������ɁA�����ɏ������ƂŎ��Ԓ��ō��ߎ��Ԃ̋��ʌ����\�����邱�Ƃ��o���܂�
;		PRINTFORML
;		RETURN 1
;	ENDIF
;	;-------------------------------------------------
;	;�䖝
;	;�L���`�F�b�N�i=0, ��\���A1, �\���j
;	LOCAL:1 = 0
;	;-------------------------------------------------
;	IF LOCAL:1 && ARG == 7
;		PRINTFORML
;		RETURN 1
;	ENDIF
	;���̑�
	;��̕������؏������ɁA�����ɏ������ƂŎ��Ԃ̋��ʌ����\�����邱�Ƃ��o���܂�
	;�䖝
	IF ARG == 7
		PRINTFORML �u�͂��A�͂��c�c�g�̂��c�c�M���c�c�v
		CALL HPH_PRINT(@"�u%CALLNAME:MASTER%�c�c�҂��Ăāc�cHPH�v", "L")
	;����
	ELSEIF ARG == 2
		PRINTFORML �u%CALLNAME:MASTER%�A�Q��������c�c�H�v
		PRINTFORML �u�c�c�c�c�c�c�v
		PRINTL
		PRINTFORML �u%M_KOJO_K83_AUTO("�P�h���c�I")% �c�c�͂��͂��c�c�v
		PRINTFORML �u%CALLNAME:MASTER%�c�c%CALLNAME:MASTER%�c�c%M_KOJO_K83_AUTO("�P�h���c�I")%�v
	;����
	ELSEIF TALENT:[[�L�X��]]:����
		PRINTFORML �u�͂��A�͂��c�c%CALLNAME:MASTER%�c�c%M_KOJO_K83_AUTO("�P�h���c�I")%�v
		IF TALENT:[[�L�X��]]:���l && !RAND:5
			PRINTFORML �u�����͂����ς��������c�c%M_KOJO_K83_AUTO("�P�h���c�I")%�v
			PRINTFORML �u�����A���߂��A%M_KOJO_K83_AUTO("��A�h��")%%M_KOJO_K83_AUTO("�P�h���c�I")%�v
			PRINTFORML �u�͂����c�c�����Ƃ��c�c%M_KOJO_K83_AUTO("�P�h���c�I")%�v
		ELSE
			SELECTCASE RAND:5
			CASE 1
				PRINTFORML �u��A�₳�����ˁc�c%M_KOJO_K83_AUTO("�P�h���c�I")%�v
				PRINTFORML �u%CALLNAME:MASTER%�c�c�������c�c%M_KOJO_K83_AUTO("�P�h��")% %M_KOJO_K83_AUTO("��A�h��")%%M_KOJO_K83_AUTO("�P�h���c�I")%�v
			CASE 2
				PRINTFORML �u�������A���߂��A�₾���I %M_KOJO_K83_AUTO("��A�h��")%%M_KOJO_K83_AUTO("�P�h���c�I")%�v
			CASE 3
				PRINTFORML �u%CALLNAME:MASTER%�c�c�~�����c�c%M_KOJO_K83_AUTO("�P�h���c�I")%�v
				PRINTFORML �u���߂��A�����Ƃ��c�c%M_KOJO_K83_AUTO("��A�h��")%%M_KOJO_K83_AUTO("�P�h���c�I")%�v
			CASE 4
				PRINTFORML �u�����ς��c�c�������悭�c�c%M_KOJO_K83_AUTO("�P�h���c�I")%�v
				PRINTFORML �u�͂��A�͂��c�c�������I %M_KOJO_K83_AUTO("�P�h���c�I")%�v
			CASEELSE
				PRINTFORML �u�����c�c%CALLNAME:MASTER%�c�c%M_KOJO_K83_AUTO("�P�h���c�I")%�v
				PRINTFORML �u%CALLNAME:MASTER%�c�c�����c�c�v
			ENDSELECT
		ENDIF
	;�v��
	ELSEIF TALENT:[[�L�X��]]:�v��
		PRINTFORML �u�����c�c%CALLNAME:MASTER%�c�c%M_KOJO_K83_AUTO("�P�h���c�I")%�v
		PRINTFORML �u��A�₾�c�c�킽���c�c�v
	;�ʏ�
	ELSE
		PRINTFORML �u�c%M_KOJO_K83_AUTO("�P�h���c�I")%�v
	ENDIF
	RETURN 1
ENDIF
RETURN 1
;==================================================
;����A�ꂾ��
;==================================================
@M_KOJO_EVENT_K83_23(ARG,ARG:1)
;������LOCAL
;--------------------------------------------------
;�L���`�F�b�N�i=0, ��\���A1, �\���j
LOCAL = 1
;-------------
IF LOCAL
	;-------------------------------------------------
	;������
	;-------------------------------------------------
	;�f��ꂽ
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 1
		PRINTFORMW �u�������c�I�H ���A����͂�����Ɓc�c�v
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;�ꏏ�ɓ����Ă��ꂽ
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 2
		PRINTFORMW �u�����c�c�I ���A������c�c\/\/\/�v
		RETURN 1
	ENDIF
	;���̑�
	PRINTFORML
ENDIF
RETURN 1
;==================================================
;���D
;==================================================
@M_KOJO_EVENT_K83_24(ARG,ARG:1)
;������LOCAL
;--------------------------------------------------
;�L���`�F�b�N�i=0, ��\���A1, �\���j
LOCAL = 1
;-------------
IF LOCAL
	;-------------------------------------------------
	;������
	;-------------------------------------------------
	;����
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 1
		IF CFLAG:[[�L�X��]]:�q���l��
			PRINTFORMW �u�����c�c�ȁA�Ȃ񂾂��g�̂��c�c�v
			PRINTFORMW �u�����A����͂����Ɓc�c�I�v
			PRINTL
			PRINTFORMDL �L�X����%CALLNAME:MASTER%�̉��ւƌ��������\�\
			PRINTW
			PRINTFORMW �u%CALLNAME:MASTER%�A���̂��c�c�v
			CALL HPH_PRINT(@"�u�܂��c�c�ł���������c�cHPH�v", "W")
			PRINTFORMW �u���ւցc�c�܂��ꏏ�Ɏq��Ă��悤�ˁc�c�I�v
		ELSE
			PRINTFORMW �u�����c�c�ȁA�Ȃ񂾂��g�̂��c�c�v
			PRINTFORMW �u���A������Ă܂����c�c�I�v
			PRINTL
			PRINTFORMDL �L�X����%CALLNAME:MASTER%�̉��ւƌ��������\�\
			PRINTW
			PRINTFORMW �u%CALLNAME:MASTER%�A���A���̂ˁc�c���́c�c�v
			CALL HPH_PRINT(@"�u�ŁA�ł���������c�cHPH�v", "W")
			PRINTL
			PRINTFORMDL �L�X���������g�̂�k�킵�Ă����̂ŁA%CALLNAME:MASTER%�͗D���������Ă������B
			PRINTW
			PRINTFORMW �u���ւցc�c���v�A�킽���c�c�撣��c�c�I�v
		ENDIF
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;�v��
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 2
		PRINTFORMW �u�����c�c�ȁA�Ȃ񂾂��g�̂��c�c�v
		PRINTFORMW �u���A������Ă܂����c�c�I�v
		PRINTL
		PRINTFORMDL �L�X����%CALLNAME:MASTER%�̉��ւƌ��������\�\
		PRINTW
		PRINTFORMW �u%CALLNAME:MASTER%�A���A���́c�c���́c�c�v
		PRINTFORMW �u���A����c�c�ł��A��������c�c�v
		PRINTL
		PRINTFORMDL �L�X���������g�̂�k�킵�Ă����̂ŁA%CALLNAME:MASTER%�͕��łĂ������B
		PRINTW
		PRINTFORMW �u%CALLNAME:MASTER%�c�c�c�c�킽���A�撣��c�c�I�v
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;�ח��f������
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 3
		PRINTFORMW �u�����c�c�ȁA�Ȃ񂾂��g�̂��c�c�v
		PRINTFORMW �u���A������Ă܂����c�c�I�v
		PRINTL
		PRINTFORMDL �L�X����%CALLNAME:MASTER%�̉��ւƌ��������\�\
		PRINTW
		PRINTFORMW �u���A���́c�c���́c�c�v
		PRINTFORMW �u���A����c�c�v
		PRINTL
		PRINTFORMDL �L�X���́A�ق�̂�Ɩc��񂾂������w�������B
		PRINTW
		PRINTFORMW �u�킽���c�c��Ă�c�c����Ȃ�c�c�v
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;�����o
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 4
		PRINTFORMW �u�����c�c�ȁA�Ȃ񂾂��g�̂��c�c�v
		PRINTFORMW �u�ȁA�Ȃɂ���c�c�I �ǁA�ǂ����āc�c�I�v
		PRINTFORMW �u���킠���������������I�I�I�v
		RETURN 1
	ENDIF
	;���̑�
	PRINTFORML
ENDIF
RETURN 1
;==================================================
;�o�Y
;==================================================
@M_KOJO_EVENT_K83_25(ARG,ARG:1)
;������LOCAL
;ARG:1	���l�ڂ̎q����
;--------------------------------------------------
;�L���`�F�b�N�i=0, ��\���A1, �\���j
LOCAL = 1
;-------------
IF LOCAL
	;-------------------------------------------------
	;������
	;-------------------------------------------------
	;����
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 1
		PRINTFORMW �u�͂��A�͂��c�c�͂��͂��c�c�v
		PRINTFORMW �u�������c�c�����c�c�������I�I�v
		PRINTL
		PRINTFORMW �u�͂��c�c�͂��c�c���A���܂ꂽ�c�c�I�I�v
		PRINTFORMW �u�Ԃ����c�c%CALLNAME:MASTER%�Ƃ킽���́c�c�I�v
		PRINTFORMW �u�������A�悵�悵�c�c�ӂӁA�����ς���������߂āA��؂Ɉ�ĂȂ���c�c�I�v
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;�v��
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 2
		PRINTFORMW �u�͂��A�͂��c�c�͂��͂��c�c�v
		PRINTFORMW �u�������c�c�����c�c�������I�I�v
		PRINTL
		PRINTFORMW �u�͂��c�c�͂��c�c���A���܂ꂽ�c�c�I�v
		PRINTFORMW �u�悵�悵�c�c���̎q�͑�؂Ɉ�ĂȂ���c�c�I�v
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;�ח��f������
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 3
		PRINTFORMW �u�͂��A�͂��c�c�͂��͂��c�c�v
		PRINTFORMW �u�������c�c�����c�c�������I�I�v
		PRINTL
		PRINTFORMW �u�͂��c�c�͂��c�c���A���܂ꂽ�c�c�I�v
		PRINTFORMW �u�悵�悵�c�c���O�͋���������񂾂�c�c�I�v
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;�����o
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 4
		PRINTFORMW �u�͂��A�͂��c�c�͂��͂��c�c�v
		PRINTFORMW �u�������c�c�����c�c�������I�I�v
		PRINTL
		PRINTFORMW �u�͂��c�c�͂��c�c���A���߂��c�c�I�v
		PRINTFORMW �u�ȁA�Ȃ�Ȃ񂾂낤�c�c���̎q�c�c�����c�c�������c�c�v
		RETURN 1
	ENDIF
	;���̑�
	PRINTFORML
ENDIF
RETURN 1
;==================================================
;�I�i�o��
;==================================================
@M_KOJO_EVENT_K83_26(ARG,ARG:1)

;--------------------------------------------------
;�L���`�F�b�N�i=0, ��\���A1, �\���j
LOCAL = 1
;-------------
IF LOCAL
	SELECTCASE ARG
		CASE 0
			;-------------------------------------------------
			;����ꂽ�u��
			;�L���`�F�b�N�i=0, ��\���A1, �\���j
			LOCAL:1 = 1
			;-------------------------------------------------
			IF LOCAL:1
				;�D�����Ƃ���܂�����Ȃ�
				IF TALENT:[[�L�X��]]:���l
					PRINTFORMW �u���c�c\/\/\/ %CALLNAME:MASTER%�c�c�����狏���́c�c�H�v
				ELSEIF TALENT:[[�L�X��]]:����
					PRINTFORMW �u���c�c\/\/\/ %CALLNAME:MASTER%�c�c�ȁA�Ȃ�Łc�c\/\/\/�v
				ELSEIF TALENT:[[�L�X��]]:�v��
					PRINTFORMW �u%M_KOJO_K83_AUTO("�ߖF��")% %CALLNAME:MASTER%�c�c���A����́c�c\/\/\/�v
				ELSE
					PRINTFORMW �u%M_KOJO_K83_AUTO("�ߖF��")% ���A���������߂�Ȃ����c�c�v
				ENDIF
				RETURN 1
			ENDIF
		CASE 1
			;-------------------------------------------------
			;�������Ȃ�
			;�L���`�F�b�N�i=0, ��\���A1, �\���j
			LOCAL:1 = 1
			;-------------------------------------------------
			IF LOCAL:1
				PRINTL
				IF TALENT:[[�L�X��]]:���l
					PRINTFORMW �u���A�A�����Ⴄ�́c�c�H �������c�c�v
				ELSEIF M_KOJO_K83_UFUFU([[�L�X��]])
					PRINTFORMW �u���A�A�����Ⴄ�́c�c�H�v
				ELSEIF TALENT:[[�L�X��]]:�v��
					PRINTFORMW �u���A����Ȃ�c�c\/\/\/�v
				ELSE
					PRINTFORMDL �L�X���͕�R�Ƃ��Ă���
					PRINTL
					PRINTFORMW �u�c�c�c�c\/\/\/�v
				ENDIF
				RETURN 1
			ENDIF
		CASE 2
			;-------------------------------------------------
			;���̂܂ܑ��s
			;�L���`�F�b�N�i=0, ��\���A1, �\���j
			LOCAL:1 = 1
			;-------------------------------------------------
			IF LOCAL:1
				PRINTL
				IF TALENT:[[�L�X��]]:���l
					PRINTFORMW �u���c�c����ȁc�c�v
					SELECTCASE RAND:2
					CASE 1
						PRINTFORMW �u%M_KOJO_K83_AUTO("��A�h��")%%M_KOJO_K83_AUTO("�P�h���c�I")%�c�c%CALLNAME:MASTER%�c�c�v
						PRINTFORMW �u�����c�c�₵���悧�c�c%M_KOJO_K83_AUTO("�P�h���c�I")%�v
					CASEELSE
						PRINTFORMW �u%CALLNAME:MASTER%�c�c%CALLNAME:MASTER%�c�c%M_KOJO_K83_AUTO("�P�h���c�I")%�v
						PRINTFORMW �u���Ă邾���Ȃ̂��c�c�����c�c%M_KOJO_K83_AUTO("�P�h���c�I")%�v
					ENDSELECT
				ELSEIF M_KOJO_K83_UFUFU([[�L�X��]])
					PRINTFORMW �u���c�c��A�������c�c�v
					SELECTCASE RAND:2
					CASE 1
						PRINTFORMW �u%CALLNAME:MASTER%�c�c���Ăāc�c%M_KOJO_K83_AUTO("�P�h���c�I")%�v
					CASEELSE
						PRINTFORMW �u%M_KOJO_K83_AUTO("��A�h��")%%M_KOJO_K83_AUTO("�P�h���c�I")%�c�c%CALLNAME:MASTER%�c�c�v
					ENDSELECT
				ELSEIF TALENT:[[�L�X��]]:�v��
					PRINTFORMW �u�����`�`��\/\/\/�v
				ELSE
					PRINTFORMDL �L�X���͕�R�Ƃ��Ă���
					PRINTL
					PRINTFORMW �u�c�c�c�c\/\/\/�v
				ENDIF
				RETURN 1
			ENDIF
		CASE 3
			;-------------------------------------------------
			;�ǂ��o��
			;�L���`�F�b�N�i=0, ��\���A1, �\���j
			LOCAL:1 = 1
			;-------------------------------------------------
			IF LOCAL:1
				PRINTL
				PRINTFORMW �u�ŁA�o�Ă��ā[�[�[���I�I�v
				RETURN 1
			ENDIF
		CASE 4
			;-------------------------------------------------
			;������Ⴄ
			;�L���`�F�b�N�i=0, ��\���A1, �\���j
			LOCAL:1 = 1
			;-------------------------------------------------
			IF LOCAL:1
				PRINTL
				IF TALENT:[[�L�X��]]:���l
					CALL HPH_PRINT(@"�u���ւցc�c���肪��HPH �����āc�c�I�v", "W")
				ELSEIF M_KOJO_K83_UFUFU([[�L�X��]])
					PRINTFORMW �u���c�c���A���������c�c��������\/\/\/�v
				ELSEIF TALENT:[[�L�X��]]:�v��
					PRINTFORMW �u���c�c���A����́c�c���A����c�c\/\/\/�v
				ELSE
					PRINTFORMDL �L�X���͕�R�Ƃ��Ă���
					PRINTL
					PRINTFORMW �u�c�c�c�c\/\/\/�v
				ENDIF
				RETURN 1
			ENDIF
		CASE 5
			;-------------------------------------------------
			;����
			;�L���`�F�b�N�i=0, ��\���A1, �\���j
			LOCAL:1 = 1
			;-------------------------------------------------
			IF LOCAL:1
				PRINTL
				IF TALENT:[[�L�X��]]:���l
					CALL HPH_PRINT(@"�u�ӂӁc�c�܁A�܂����Ăˁc�cHPH�v", "W")
				ELSEIF M_KOJO_K83_UFUFU([[�L�X��]])
					CALL HPH_PRINT(@"�u�͂��͂��c�c���A�������������c�cHPH�v", "W")
				ELSEIF TALENT:[[�L�X��]]:�v��
					CALL HPH_PRINT(@"�u�c�cHPH�v", "W")
				ELSE
					;����̂��H�H�H
					PRINTFORMW �u�c�c�c�c\/\/\/�v
				ENDIF
				RETURN 1
			ENDIF
		CASE 6
			;-------------------------------------------------
			;���エ����
			;�L���`�F�b�N�i=0, ��\���A1, �\���j
			LOCAL:1 = 1
			;-------------------------------------------------
			IF LOCAL:1
				PRINTL
				IF TALENT:[[�L�X��]]:���l
					PRINTFORMW �u�ƁA���܂��Ă����c�c�H �ق�ƁH ������c�c�I�v
					PRINTFORMW �u�����́A%CALLNAME:MASTER%�����Ă��ꂽ��Ȃ��čl���Ă��́c�c�v
					PRINTFORMW �u����������{���ɗ��Ă���āA�킽���c�c�c�c�v
					CALL HPH_PRINT(@"�u�˂��A%CALLNAME:MASTER%�c�c������������HPH�v", "W")
				ELSEIF M_KOJO_K83_UFUFU([[�L�X��]])
					PRINTFORMW �u�ƁA���܂�́c�c�H ���A������c�c�v
					PRINTFORMW �u���͂������܂ŁA%CALLNAME:MASTER%�����Ă��ꂽ��Ȃ��čl���Ă��́c�c�v
					PRINTFORMW �u����������{���ɗ��Ă���āA�킽���c�c�c�c�v
					PRINTFORMW �u�˂��A%CALLNAME:MASTER%�c�c���̂��\�\�v
				;���ɕ���ȋC�����Ď蔲���B
				ELSEIF TALENT:[[�L�X��]]:�v��
					CALL HPH_PRINT(@"�u�c�cHPH�v", "W")
				ELSE
					PRINTFORMW �u�c�c�c�c\/\/\/�v
				ENDIF
				RETURN 1
			ENDIF
	ENDSELECT
ENDIF

;==================================================
;���肩��f�[�g�̂��U��
;==================================================
@M_KOJO_EVENT_K83_27(ARG,ARG:1)
;������LOCAL
;ARG:1�͖ړI�n
;--------------------------------------------------
;�L���`�F�b�N�i=0, ��\���A1, �\���j
LOCAL = 1
;-------------
IF LOCAL
	SELECTCASE ARG
		;-------------------------------------------------
		CASE 0
		;�U������
		;�L���`�F�b�N�i=0, ��\���A1, �\���j
		LOCAL:1 = 1
		;-------------------------------------------------
		IF LOCAL:1
			SELECTCASE STR:(5000 + ARG:1)
			CASE "����_��"
				PRINTFORMW �u�˂��A%CALLNAME:MASTER%�c�c�ꏏ�ɐ_�Ђɍs���Ȃ��H�v
			CASE "���@��"
				PRINTFORMW �u�˂��A%CALLNAME:MASTER%�c�c�ꏏ�ɂ����ɍs���Ȃ��H�v
			CASE "�l�Ԃ̗�"
				PRINTFORMW �u�˂��A%CALLNAME:MASTER%�c�c�ꏏ�ɗ��ɍs���Ȃ��H�v
			CASE "���̌΁`�g����"
				PRINTFORMW �u�˂��A%CALLNAME:MASTER%�c�c�ꏏ�Ɍ΂ɍs���Ȃ��H�v
			CASE "�����̒|��"
				PRINTFORMW �u�˂��A%CALLNAME:MASTER%�c�c�ꏏ�ɒ|�тɍs���Ȃ��H�v
			CASE "���@�̐X"
				PRINTFORMW �u�˂��A%CALLNAME:MASTER%�c�c�ꏏ�ɐX�ɍs���Ȃ��H�v
			CASE "�O�r�̐�`���E"
				PRINTFORMW �u�˂��A%CALLNAME:MASTER%�c�c�ꏏ�ɐ�ɍs���Ȃ��H�v
			CASE "�d���̎R (�R�[)"
				PRINTFORMW �u�˂��A%CALLNAME:MASTER%�c�c�ꏏ�ɎR�ɍs���Ȃ��H�v
			CASE "�d���̎R (�R��)"
				PRINTFORMW �u�˂��A%CALLNAME:MASTER%�c�c�ꏏ�ɎR�o��ɍs���Ȃ��H�v
			CASE "�n��"
				PRINTFORMW �u�˂��A%CALLNAME:MASTER%�c�c�����͒n��ɗ��Ȃ��H�v
			CASE "���̐��E�`��"
				PRINTFORMW �u�˂��A%CALLNAME:MASTER%�c�c�A���ɍs���Ă݂����c�c�v
			ENDSELECT
			RETURN 1
		ENDIF
		;-------------------------------------------------
		CASE 1
		;�󂯂�
		;�L���`�F�b�N�i=0, ��\���A1, �\���j
		LOCAL:1 = 1
		;-------------------------------------------------
		IF LOCAL:1
			PRINTFORMW �u�ق�ƁH ������c�c�I�v
			TALENT:[[�L�X��]]:�@�� = 1
			RETURN 1
		ENDIF
		;-------------------------------------------------
		CASE 2
		;�f����
		;�L���`�F�b�N�i=0, ��\���A1, �\���j
		LOCAL:1 = 1
		;-------------------------------------------------
		IF LOCAL:1
			PRINTFORMW �u�������c�c�v
			TALENT:[[�L�X��]]:�@�� = MIN(TALENT:[[�L�X��]]:�@��, 0)
			RETURN 1
		ENDIF
		;-------------------------------------------------
		CASE 3
		;�����ɗU��ꂽ
		;�L���`�F�b�N�i=0, ��\���A1, �\���j
		LOCAL:1 = 1
		;-------------------------------------------------
		IF LOCAL:1
			PRINTFORMW �u�˂��A%CALLNAME:MASTER%�c�c���A�����ɗ��Ȃ��c�c�H�v
			RETURN 1
		ENDIF
		;-------------------------------------------------
		CASE 4
		;�����ɗU��ꂽ�̂��󂯂�
		;�L���`�F�b�N�i=0, ��\���A1, �\���j
		LOCAL:1 = 1
		;-------------------------------------------------
		IF LOCAL:1
			PRINTFORMW �u�ق�ƁH ����A���Ⴀ�����c�c�I�v
			TALENT:[[�L�X��]]:�@�� = 1
			RETURN 1
		ENDIF
		;-------------------------------------------------
		CASE 5
		;�����ɗU��ꂽ�̂�f����
		;�L���`�F�b�N�i=0, ��\���A1, �\���j
		LOCAL:1 = 1
		;-------------------------------------------------
		IF LOCAL:1
			PRINTFORMW �u�������c�c�v
			TALENT:[[�L�X��]]:�@�� = MIN(TALENT:[[�L�X��]]:�@��, 0)
			RETURN 1
		ENDIF
	ENDSELECT
ENDIF
RETURN 1

;==================================================
;�E�ߌ���
;==================================================
@M_KOJO_EVENT_K83_28(ARG,ARG:1)
;������TARGET
;ARG�ɒE�������I��
;ARG:1�iARG=3�̏ꍇ�݂̂���j�n�̕��̔���
;--------------------------------------------------
;�L���`�F�b�N�i=0, ��\���A1, �\���j
LOCAL = 1
;-------------
IF LOCAL
	SELECTCASE ARG
	CASE 0
		;-------------------------------------------------
		;�S���ɂ���
		;�L���`�F�b�N�i=0, ��\���A1, �\���j
		LOCAL:1 = 1
		;-------------------------------------------------
		IF LOCAL:1
			IF FLAG:���Ԓ�~
			ELSEIF TALENT:[[�L�X��]]:���l
				SELECTCASE RAND:3
				CASE 1
					PRINTFORMW �u����A���Ⴀ�A�E�����āc�c\/\/\/�v
				CASE 2
					PRINTFORMW �u���A����ȂɌ��Ȃ��Łc�c\/\/\/�v
				CASEELSE
					PRINTFORMW �u�ӂӁc�c\/\/\/�v
				ENDSELECT
			ELSEIF M_KOJO_K83_UFUFU([[�L�X��]])
				SELECTCASE RAND:3
				CASE 1
					PRINTFORMW �u���c�c\/\/\/�v
				CASE 2
					PRINTFORMW �u�́A�p���������c�c\/\/\/�v
				CASEELSE
					PRINTFORMW �u���c�c�I�v
				ENDSELECT
			ENDIF
			RETURN 1
		ENDIF
	CASE 1
		;-------------------------------------------------
		;�����p�ɂ���
		;�L���`�F�b�N�i=0, ��\���A1, �\���j
		LOCAL:1 = 1
		;-------------------------------------------------
		IF LOCAL:1
			IF FLAG:���Ԓ�~
			ELSEIF M_KOJO_K83_UFUFU([[�L�X��]])
				PRINTFORMW �u��c�c\/\/\/�v
			ENDIF
			RETURN 1
		ENDIF
	CASE 2
		;-------------------------------------------------
		;���E��
		;�L���`�F�b�N�i=0, ��\���A1, �\���j
		LOCAL:1 = 1
		;-------------------------------------------------
		IF LOCAL:1
			IF FLAG:���Ԓ�~
			ELSEIF M_KOJO_K83_UFUFU([[�L�X��]])
				PRINTFORMW �u����c�c\/\/\/�v
			ENDIF
			RETURN 1
		ENDIF
	CASE 3
		;-------------------------------------------------
		;�p���c���傤����
		;�L���`�F�b�N�i=0, ��\���A1, �\���j
		LOCAL:1 = 1
		;-------------------------------------------------
		IF LOCAL:1
			SELECTCASE ARG:1
			CASE 0
				;-------------------------------------------------
				;�����ł�
				;�L���`�F�b�N�i=0, ��\���A1, �\���j
				LOCAL:1 = 1
				;-------------------------------------------------
				IF LOCAL:1
					PRINTFORMW �u�ˁA�˂��c�c%CALLNAME:MASTER%�́c�c���傤�����c�c\/\/\/�v
					RETURN 1
				ENDIF
			CASE 1
				;-------------------------------------------------
				;OK�i���X
				;�L���`�F�b�N�i=0, ��\���A1, �\���j
				LOCAL:1 = 1
				;-------------------------------------------------
				IF LOCAL:1
					PRINTFORMW �u���A������c�c\/\/\/�v
					RETURN 1
				ENDIF
			CASE 2
				;-------------------------------------------------
				;OK�i�a�X
				;�L���`�F�b�N�i=0, ��\���A1, �\���j
				LOCAL:1 = 1
				;-------------------------------------------------
				IF LOCAL:1
					PRINTFORMW �u���c�c�ׁA�ʂɂ������ǁc�c�v
					RETURN 1
				ENDIF
			CASE 3
				;-------------------------------------------------
				;���ł�
				;�L���`�F�b�N�i=0, ��\���A1, �\���j
				LOCAL:1 = 1
				;-------------------------------------------------
				IF LOCAL:1
					PRINTFORMW �u���c�c��A�₾���ǁc�c�v
					RETURN 1
				ENDIF
			ENDSELECT
		ENDIF
	ENDSELECT
ENDIF
RETURN 1

;==================================================
;�{�����
;==================================================
@M_KOJO_EVENT_K83_29(ARG,ARG:1)
;������TARGET
;ARG��TARGET�̓x���ŕ���
;--------------------------------------------------
;�L���`�F�b�N�i=0, ��\���A1, �\���j
LOCAL = 1
;-------------
IF LOCAL
;	;-------------------------------------------------
;	;������
;	;-------------------------------------------------
;	;�{�点�Ă��܂���
;	;�L���`�F�b�N�i=0, ��\���A1, �\���j
;	LOCAL:1 = 0
;	;-------------------------------------------------
;	IF LOCAL:1 && ARG == 1
;		RETURN 1
;	ENDIF
	;-------------------------------------------------
	;�������Ă��܂����@[���a]����
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 2
		IF TALENT:[[�L�X��]]:����
			PRINTFORML �u%CALLNAME:MASTER%�c�c�Ђǂ���c�c�����c�c�������c�c�v
		ELSEIF TALENT:[[�L�X��]]:�v��
			PRINTFORML �u%CALLNAME:MASTER%�c�c�Ђǂ��c�c�����c�c�������c�c�v
		ELSE
			PRINTFORML �u�Ђǂ��c�c�����c�c�������c�c�v
		ENDIF
		RETURN 1
	ENDIF
ENDIF
RETURN 1

;==================================================
;���肪�����|��������
;==================================================
@M_KOJO_EVENT_K83_30(ARG,ARG:1)
;������TARGET
;--------------------------------------------------
;�L���`�F�b�N�i=0, ��\���A1, �\���j
LOCAL = M_KOJO_K83_UFUFU([[�L�X��]])
;-------------
IF LOCAL
	;-------------------------------------------------
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 1
	;��ꂽ
		PRINTFORML �u�͂��A�͂��c�c�A��ꂽ���c�c�v
		PRINTFORMW �u���A���߂�ˁc�c%CALLNAME:MASTER%�c�c�v
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 2
	;�������ĉ��
		PRINTFORMW �u�͂��A�͂��c�c���A�����A�\���c�c�v
		PRINTFORMW �u%CALLNAME:MASTER%�c�c���A���肪�Ƃ��c�c�v
		TCVAR:[[�L�X��]]:351 = 0
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 3
	;���������Ƃ���������|���ꂽ
		PRINTFORMW �u�Ђ���I�I�v
		IF TALENT:[[�L�X��]]:���l
			SELECTCASE RAND:2
			CASE 1
				CALL HPH_PRINT(@"�u��c�c�����������āc�cHPH�v", "W")
			CASEELSE
				CALL HPH_PRINT(@"�u��c�c�����΂񂱂ˁc�cHPH�v", "W")
			ENDSELECT
		ELSE
			SELECTCASE RAND:2
			CASE 1
				PRINTFORMW �u�����c�c���A���߂�Ȃ������c�c�I�v
			CASEELSE
				PRINTFORMW �u�����c�c��A��邵�Ă��c�c�I�v
			ENDSELECT
		ENDIF
		TCVAR:[[�L�X��]]:351 = 0
		RETURN 1
	ENDIF
	;-------------------------------------------------
	;�L���`�F�b�N�i=0, ��\���A1, �\���j
	LOCAL:1 = 1
	;-------------------------------------------------
	IF LOCAL:1 && ARG == 4
	;����܂ł��Ă�����
		IF TALENT:[[�L�X��]]:���l
			SELECTCASE RAND:2
			CASE 1
				CALL HPH_PRINT(@"�u%CALLNAME:MASTER%�c�c�D���Ȃ񂾂ˁc�cHPH�v", "W")
			CASEELSE
				CALL HPH_PRINT(@"�u���Ⴀ�A�����ς��V��ł�����c�cHPH�v", "W")
			ENDSELECT
		ELSE
			SELECTCASE RAND:2
			CASE 1
				CALL HPH_PRINT(@"�u������Ă��x����c�cHPH�v", "W")
			CASEELSE
				CALL HPH_PRINT(@"�u�ӂӁc�c���ꂶ�Ⴀ�A�������Ȃ���c�cHPH�v", "W")
			ENDSELECT
		ENDIF
		RETURN 1
	ENDIF
ENDIF
RETURN 1

;
;;==================================================
;;����̏I����(AFTERTRA�j�[�̑O)�A�ʎ����Ȃ���ΌĂяo����Ȃ�
;;==================================================
;@M_KOJO_EVENT_K83_31(ARG,ARG:1)
;;������TARGET
;;ARG�͉���ĂȂ�����
;;�����ȏ����ĂȂ��������s�������Ƃ��ł��܂�
;;CFLAG:�I�i�o���ŕ������Ă��悳����
;;--------------------------------------------------
;;�L���`�F�b�N�i=0, ��\���A1, �\���j
;LOCAL = 0
;;-------------
;IF LOCAL
;	;-------------------------------------------------
;	;������
;	;-------------------------------------------------
;	;��������Ă��Ȃ�
;	;�L���`�F�b�N�i=0, ��\���A1, �\���j
;	LOCAL:1 = 0
;	;-------------------------------------------------
;	IF LOCAL:1 && ARG
;		RETURN 1
;	ENDIF
;	;-------------------------------------------------
;	;��������Ă���
;	;�L���`�F�b�N�i=0, ��\���A1, �\���j
;	LOCAL:1 = 0
;	;-------------------------------------------------
;	IF LOCAL:1 && ARG == 0
;		RETURN 1
;	ENDIF
;ENDIF
;RETURN 1
;
;[SKIPSTART]
;;-------------------------------------------------
;;�I�i�o���������̒n�̕����f�t�H���g�̂��̂���ύX�������ꍇ�p�B
;;���̏ꍇ�㉺��SKIPSTART~SKIPEND���O���Ă��������B
;;CFLAG���̃L�����ϐ����g���ꍇ�A�L�����ԍ��̎w�肪�K�v�ɂȂ�܂��B
;;-------------------------------------------------
;@M_KOJO_EVENT_K83_ONABARE_1(ARG)
;;-------------------------------------------------
;:����F��t����Ȃ�R�����g�A�E�g���O��X���L�����ԍ���
;;CALL M_KOJO_COLOR_K83
;
;IF ARG
;	PRINTFORML A�M���Ă�ꍇ
;ELSE
;	PRINTFORML V�M���Ă�ꍇ
;ENDIF
;;-------------------------------------------------
;[SKIPEND]
;
;
;[SKIPSTART]
;;-------------------------------------------------
;;�I�i�o���ł��̂܂ܑ����Ă��炤�ꍇ�̒n�̕����f�t�H���g�̂��̂���ύX�������ꍇ�p�B
;;���̏ꍇ�㉺��SKIPSTART~SKIPEND���O���Ă��������B
;;CFLAG���̃L�����ϐ����g���ꍇ�A�L�����ԍ��̎w�肪�K�v�ɂȂ�܂��B
;;-------------------------------------------------
;@M_KOJO_EVENT_K83_ONABARE_2(ARG)
;;-------------------------------------------------
;:����F��t����Ȃ�R�����g�A�E�g���O��X���L�����ԍ���
;;CALL M_KOJO_COLOR_K83
;
;IF ARG
;	PRINTFORML A�M���Ă�ꍇ
;ELSE
;	PRINTFORML V�M���Ă�ꍇ
;ENDIF
;;-------------------------------------------------
;[SKIPEND]
;
;
;[SKIPSTART]
;;-------------------------------------------------
;;�I�i�o���Ȃ������b�N�X�̒n�̕����f�t�H���g�̂��̂���ύX�������ꍇ�p�B
;;���̏ꍇ�㉺��SKIPSTART~SKIPEND���O���Ă��������B
;;CFLAG���̃L�����ϐ����g���ꍇ�A�L�����ԍ��̎w�肪�K�v�ɂȂ�܂��B
;;-------------------------------------------------
;@M_KOJO_EVENT_K83_ONABARE_3(�O�Y�P,�{�Ԃ͂ǂ�����,��,������)
;;-------------------------------------------------
;#DIM �O�Y�P
;;1=C 2=B 3=M
;#DIM �{�Ԃ͂ǂ�����
;;0�łu�A1�ł`
;#DIM ������
;#DIM ��
;
;:����F��t����Ȃ�R�����g�A�E�g���O��X���L�����ԍ���
;;CALL M_KOJO_COLOR_K83
;
;SELECTCASE �O�Y�P
;	CASE 1
;		PRINTFORML �b�ӂ�
;	CASE 2
;		PRINTFORML �a�ӂ�
;	CASE 3
;		PRINTFORML �l�ӂ�
;ENDSELECT
;
;IF �{�Ԃ͂ǂ�����
;	PRINTFORML A�Ŗ{��
;ELSE
;	PRINTFORML V�Ŗ{��
;ENDIF
;;-------------------------------------------------
;[SKIPEND]

;
;;-------------------------------------------------
;;�����E�����o�񏈏��ɑ}�����钼�O�̌���
;;RETURN 1����ƃR�}���h���L�����Z�����܂�
;;RETURN 0�Ȃ�ʂ��܂�
;;CFLAG:�j�Z�L�����Z������L���I���ɂȂ��ĂȂ��Ɠǂݍ��܂�Ȃ��̂Œ���
;;-------------------------------------------------
;@M_KOJO_EVENT_K83_LOST_VIRGIN_STOP
;;-------------------------------------------------
;PRINTFORML
;RETURN 1
;
;;-------------------------------------------------
;;CFLAG:����������񂹔���_���񂪃I���ɂȂ��Ă���ꍇ�̂ݗL���B
;;���߂ĉ����|�������A������RETURN -1����Ɖ����|���������I�ɃL�����Z�����܂��B
;;RETURN 0�Ȃ�ʏ�̔�����s���ARETURN 1����Ɩ������ɐ��������܂��B
;;����̃C�x���g�i�f�[�g�A��L�X�Ȃǁj������܂ł��ӂӂł��Ȃ��悤�ɂ������Ƃ��Ȃǂɂǂ����B
;;-------------------------------------------------
;@M_KOJO_EVENT_K83_PERMISSION_1
;;-------------------------------------------------
;PRINTFORML
;;RETURN -1
;RETURN 0
;;RETURN 1
;;-------------------------------------------------
;
;
;;-------------------------------------------------
;;CFLAG:����������񂹔���_�ʏ킪�I���ɂȂ��Ă���ꍇ�̂ݗL���B
;;���ӕt���ŉ����|�������A������RETURN -1����Ɖ����|���������I�ɃL�����Z�����܂��B
;;RETURN 0�Ȃ�ʏ�ʂ萬�������܂��B
;;���ӂ������Ă����炩�̗��R�ł��ӂӂł��Ȃ��悤�ɂ������Ƃ��Ȃǂɂǂ����B
;;-------------------------------------------------
;@M_KOJO_EVENT_K83_PERMISSION_2
;;-------------------------------------------------
;PRINTFORML
;RETURN 0
;;RETURN -1
;;-------------------------------------------------

path: 原版+前人整合等各种readme/パッチ/eraTW4.810用 修正パッチ/ERB/口上・メッセージ関連/個人口上/キスメ/M_KOJO_K83_01_イベント.ERB


repo_name: akadiya/eratw

path: 原版+前人整合等各种readme/パッチ/eraTW4.810用 修正パッチ/ERB/口上・メッセージ関連/個人口上/キスメ/M_KOJO_K83_07_派生コマンド.ERB

license: unknown