summaryrefslogtreecommitdiff
path: root/doc/script_ref.txt
blob: 63fea4ec6a042f5533aa653129af2dc2f26e7b4b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
AthenaNPCScript

- Table of contents
	0. Introduction
	1. Definition of NPC
	2. Explanation of Script, and Fundamental Rule
	3. Imperative Sentence, Function, and Constant Label
	4. Error Message
	5. Postscript

0. Introduction
	The function and form which are contained in this text refer to npc_sample.txt contained in the newest snapshot, and are described.
	The convenience of the editor which shows this text is considered, <tab> is written and <n> etc. is written. [ a tab character ] [ arbitrary values ].
	Although it is a coordinate system, please make a lower figure reference.
	The increase in ?Y
	(  0,200)--(200,200)
	    |          |
	    |          |
	    |          |
	    |          |
	    |          |
	(  0,  0)--(200,  0)-> the increase in X

1. Definition of NPC
	if it is below an athena directory -- anywhere -- being good (if it being able to do below athena/npc) -- please create txt for the time being
	The NPC describes first what is shown (a way of speaking called NPC depending on the case is unsuitable).
	
	* Warp point : perform movement between MAP.
		<gatname>,<x>,<y><tab>warp<tab><displayname><tab><dx>,<dy>,<destination_gatname>,<destination_x>,<destination_y>
		
		gatname			The MAP file name on which a warp point is put is specified. Please do not forget gat.
		x			The horizontal coordinates on which a warp point is put are specified.
		y			The vertical coordinates on which a warp point is put are specified.
		displayname		It is a warp point discernment child. You may overlap. It uses by debugging.
		dx			It is the horizontal effect range of a warp point.
		dy			It is the vertical effect range of a warp point. Probably I do not write a circle but think that it is a region.
			Example of dx and dy (- is x and y) :
				0,0	1,0		2,2
				*@*�	*�*�*�*�*�	*�*�*�*�*�*�*�
				*�*�*�	*�*�*�*�*�	*�*�*�*�*�*�*�
				*@*�	*�*�*�*�*�	*�*�*�*�*�*�*�
				*@			*�*�*�*�*�*�*�
				*@			*�*�*�*�*�*�*�
				*@			*�*�*�*�*�*�*�
				*@			*�*�*�*�*�*�*�
				*@			
				* I hear that and it will leap if the cell of - is stepped on.
				*@			
		destination_gatname	It is a warp place. . Even if there is gat and there is not, don't care about it.
		destination_x		They are warp place horizontal coordinates.
		destination_y		They are warp place vertical coordinates.
		
		Notes :
		A warp point displays only that plurality is described to be at the end when located on this position.
		When the coordinates of a warp place are move prohibition cells, it leaps to somewhere in the MAP.
		
	* Monster : manage the spawning(aka apperance in japanese.) of a monster.
		<gatname>,<x>,<y>,<xs>,<ys><tab>monster<tab><displayname><tab><npcid>,<number>,<spawn_delay1>,<spawn_delay2>[,<event>]
		
		gatname			The appearing MAP file name is specified.
		x			The appearing horizontal coordinates are specified. Random at 0.
		y			The appearing vertical coordinates are specified. Random at 0.
		xs			The appearing horizontal range is specified.
		ys			The appearing vertical range is specified.
			Example of xs and ys (- is x and y) :
				0,0	2,1
				*@*�	*�*�*�*�*�
				*@	*�*�*�*�*�
				*@	*�*�*�*�*�
				*@	
				* And a monster appears from the cell of -.
				
		displayname		It is the display name of the appearing monster.
		npcid			Please refer to mob_db.txt. id of the monster made to appear is specified.
		number			It is the number of the maximum appearances in the MAP and the appearance range.
		spawn_delay1		After appearing, if specified the amount of time in milliseconds before it re-appears.
		spawn_delay2		After dying, if specified the amount of time in milliseconds before it re-appears.
		event			The specified event is generated. An abbreviation is possible.
		
		Notes:
		spawn_delay1 and spawn_delay2 judge and give priority to whether it re-appears having been based the latest [ direction ] on which as a result.
		
	* Store : sell an item.
		<gatname>,<x>,<y>,<direction><tab>shop<tab><displayname><tab><npcid>,<item_id>:<price>,<item_id>:<price>,<item_id>:<price>
		
		gatname			The MAP file name to arrange is specified.
		x			The horizontal coordinates to arrange are specified.
		y			The vertical coordinates to arrange are specified.
		direction		Direction is specified.
			Details of direction :
				7 0 1
				6    2
				5 4 3
				
		displayname		The display name of the store to arrange is specified.
		npcid			The display sprite ID of the store to arrange is specified.
		item_id			The item ID put on the store to arrange is specified. Please refer to item_db.
		price			The price of the item specified by item_id is set up.
			each <item_id>:<price> is divided by a comma (,), and more than one can be specified.
			example:
			item_id:price,item_id2,price2
			
	* Script : create NPC.
		<gatname>,<x>,<y>,<direction><tab>script<tab><displayname><tab><npcid>,<xs>,<ys>,{ <script> ... }
		
		gatname			The MAP file name to arrange is specified.
		x			The horizontal coordinates to arrange are specified.
		y			The vertical coordinates to arrange are specified.
		direction			Direction is specified.
		displayname		The display name of NPC to arrange is specified. It becomes an event name when npcid is -1.
					When making said display name another operation event, it can be described as a display name::discernment child.
		npcid			The display sprite ID of NPC to arrange is specified. If -1 is specified, it will become an event in map.
		xs			The horizontal range which performs a script automatically is specified.
		ys			The vertical range which performs a script automatically is specified. It is the same as a warp.
		
		Explanation about the inside of {} (inside parenthesis).
		Collecting by the party cannot recommend you. If it can do
		gatname etc,
		{
			//comment
			script;
		label:
			script;
		}
		Let's write by the said touch. Comment out is //and comment area is /* and */.
		The ? which does not leave; (semicolon) in the script ending.
	
		�u<gatname>,<x>,<y>,<direction><tab>�v�̕������A�u-<tab>�v�Ƃ��邱�ƂŁA
		�}�b�v�T�[�o�[���ɂ͑��݂��Ă��Ă��A���ۂ̃}�b�v�ɂ͔z�u����Ȃ�NPC���쐬�ł��܂��B
		����͌�q�̃f���v���P�[�g�X�N���v�g�ŃR�s�[���Ƃ��Ďg�p���܂��B
	
	���f���v���P�[�g�X�N���v�g�F������NPC�i�̃X�N���v�g�j���R�s�[���܂��B
		<gatname>,<x>,<y>,<direction><tab>duplicate(<source>)<tab><displayname><tab><npcid>,<xs><ys>
		
		source�ȊO�̃p�����[�^�͒ʏ�̃X�N���v�g�Ɠ����ł��B
		source�ɂ̓R�s�[���ƂȂ�NPC�̎��ʖ�����͂��܂��B
		
		�R�s�[����NPC���}�b�v��ɔz�u����Ă���ꍇ�A�����}�b�v�ł���K�v������܂��B
		�}�b�v��ɔz�u����Ă��Ȃ��ꍇ�́A�ǂ̃}�b�v�ւ��R�s�[�”\�ł��B
	
	�����[�U�[��`�֐��X�N���v�g�F�X�N���v�g����Ăяo����郆�[�U�[��`�֐����쐬���܂��B
		function<tab>script<tab><name><tab>{ <script> ... }
		
		callfunc���߂ŌĂяo�����Ƃ̏o����֐����쐬���܂��B
		�֐��̍Ō�ɂ͕K��return���߂����Ă��������B
	
	���}�b�v�t���O�FMAP�̃��[�����Ǘ����܂��B
		<gatname><tab>mapflag<tab><const>
		
		gatname			���[����ݒ肷��MAP�t�@�C�������w�肵�܂��B
		const			���[���̓��e���w�肵�܂��B
		
		const�̈ꗗ�B
			nosave<tab><gatname>,<x>,<y>
				�����O�C��������<gatname>�̍��W<x>,<y>�Ɉړ����܂��B
			nomemo<tab>dummy
				��������邱�Ƃ��֎~���܂��B
			notereport<tab>dummy
				SavePoint�܂���Random���w�肵��warp���A���[�v�|�[�^���A�e���|�[�g���֎~���܂��B
			nobranch<tab>dummy
				�Ö؂̎}�̎g�p���֎~���܂��B
			pvp<tab>dummy
				PVP�”\MAP�ɂȂ�܂��B
			nopenalty<tab>dummy
				�f�X�y�i���e�B�����ɂȂ�܂��B
			pvp_noparty<tab>dummy
				PVP�ɂ����āA���p�[�e�B�[�U���s�‚ɂȂ�܂��B
			pvp_noguild<tab>dummy
				PVP�ɂ����āA���M���h�U���s�‚ɂȂ�܂��B
			gvg<tab>dummy
				�V�[�Y���[�h�ɂȂ�܂��B
			gvg_noparty<tab>dummy
				�V�[�Y���[�h�ɂ����āA���p�[�e�B�[�U���s�‚ɂȂ�܂��B
		
�Q�D�X�N���v�g�̐����Ɗ�{�I�ȋK��
	������
		�����t�̐����ƂP�U�i���\�L�������g�p���邱�Ƃ��ł��܂��B
		�����t�����͔��p������123456���ƋL�q���܂��B
		�P�U�i���\�L������0x12��0x��t���ċL�q���܂��B
		
	��������
		"�i�_�u���N�H�[�e�[�V�����j�ň͂񂾕����͕�����Ƃ��ĕ]������܂��B
		"�i�_�u���N�H�[�e�[�V�����j�L�������������ꍇ��\"�ƋL�q���܂��B
		\�L�������������ꍇ��\\�ƋL�q���܂��B
		�Ȃ��\���֌W�̕��Ɋւ��Ă�^000000���̐F�ύX���g�����Ƃ��ł��܂��B
		�ϐ� + "������"�Ƃ����������񌋍����ł��܂��B
	
	���P�����Z�q
		�ȉ��̐��l��p�̒P�����Z�q���p�ӂ���Ă��܂��B
			-	�����t�]�i�Q�̕␔�j
			~	�r�b�g�_���ے�i�P�̕␔�j
			!	�_���ے�
	
	���Q�����Z�q
		�ȉ��Q�����Z�q�͐��l�ƕ�����œ��삪�قȂ�܂��B
			+	���Z/����
			���l�ǂ����̏ꍇ�͉��Z���܂��B
			����ȊO�̏ꍇ�͕�����Ƃ݂Ȃ��Č������܂��B

		�ȉ��̂Q�����Z�q�͐��l��p�ł��B
			-	���Z
			*	��Z
			/	���Z
			%	��]
			&	�r�b�g�_����
			|	�r�b�g�_���a
			^	�r�b�g�r���I�_���a
			&&	�_����
			||	�_���a

		�ȉ��̂Q�����Z�q�͐��l�ǂ����A�܂��͕�����ǂ����̔�r���s���܂��B
		�����̊֌W���Z�q�͊֌W�����藧�‚�1�A���藧���Ȃ���0��Ԃ��܂��B
			==	������
			!=	�������Ȃ�
			>	���傫��
			>=	���傫�����������i�ȏ�j
			<	��菬�����i�����j
			<=	��菬�������������i�ȉ��j

	���ϐ�
		���p�p�������g�p���邱�Ƃ��ł��܂��B
		�ϐ��̃X�R�[�v�ƃ��C�t�^�C���̓v���t�B�b�N�X�ɂ��w�肵�܂��B
		�������̃G���̓v���t�B�b�N�X�Ƃ��Ĉ�����̂Œ��ӂ��Ă��������B
		(�������̃G���͍���̓����ۏႳ��Ȃ��̂Ŏg�p���Ȃ��ʼn�����)

			�v���t�B�b�N�X	�X�R�[�v		���C�t�^�C��
				(�Ȃ�)	�L�����N�^�[		�i���I
				@	�L�����N�^�[		�ꎞ�I
				l	����			����i��������Ȃ��j
				$	�}�b�v�T�[�o�[		�i���I
				$@	�}�b�v�T�[�o�[		�ꎞ�I
				#	�A�J�E���g		�i���I
				##	�A�J�E���g(�S���[���h)	�i���I
		
		�‚܂�A���ʂ̈ꎞ�I�ȕϐ���@, �ۑ�����K�v�̂���ϐ���
		�v���t�B�b�N�X�Ȃ��A�S�ẴL�����N�^�[�ŋ��L���ׂ��ϐ��� $�A
		����A�J�E���g�ŋ��L���ׂ��ϐ��� # �� ## ���g�p���邱�ƂɂȂ�܂��B

		�܂��A�ϐ��̌^�̓|�X�g�t�B�b�N�X�ɂ��w�肵�܂��B
		�������A������^�̓L�����N�^�[�ꎞ�ϐ��A����сA
		�i���I/�ꎞ�I�}�b�v�T�[�o�[�ϐ��ł̂ݎg�p�ł��܂��B
		�i�v���t�B�b�N�X @�A$�A$@ �j
		
			�|�X�g�t�B�b�N�X	�^
				(�Ȃ�)		����
				$		������
		
		<��>	@hoge$	������^�ꎞ�I�L�����N�^�[�ϐ�
			hoge	���l�^�i���I�L�����N�^�[�ϐ�
			$hoge	���l�^�i���I�S�L�����N�^�[���L�ϐ�

		�ꎞ�I�łȂ��ϐ��͑��p���ׂ��ł͂���܂���B
		�ۑ�����K�v�̂Ȃ����̂͋ɗ͈ꎞ�ϐ��ōς܂���ׂ��ł��B
		�ۑ�����K�v������̂��Ȃ��̂��͂悭�l�����Ă��������B
		���ɉi���I�ȃL�����N�^�[/�A�J�E���g�ϐ��́A���ɐ���������܂��B
		�g�p���I����ē�x�Ǝg�p���邱�Ƃ��Ȃ��Ƃ킩���Ă���ϐ���
		�l��0�ɐݒ肷�邱�Ƃō폜���邱�Ƃ��o���܂��B
	
	���z��ϐ�
		�ϐ����̌�Ɋ��� [ ] �Ŋ����������w�肷�邱�ƂŔz��ϐ��ɂȂ�܂��B
		�ϐ�����"["�̊Ԃɋ󔒕��������邱�Ƃ͂ł��܂���B

		<��>	hoge[10]	fuga[ @temp ]

		�z��̗v�f�ԍ���0�`127���w��ł��܂����A�ԍ�0�͓����̕ϐ���
		�l�����L���܂��B���Ƃ��΁Ahoge[0] �� hoge �͓����ϐ��ł��B

		�z��ϐ��͈ꎞ�I�L�����N�^�[�ϐ��A�ꎞ�I/�i���I�}�b�v�T�[�o�[�ϐ��Ŏg�p�ł��܂��B
		�ϐ��̌^�͐��l�A�����񗼕��Ƃ����p�ł��܂��B

	�����x��
		���p�p������уA���_�[�o�[���g�p�ł��܂��B
		�ϐ��▽�߂ȂǂƋ�ʂ��邽�� L_ ��擪�ɂ‚��邱�Ƃ���������܂��B
		L_hoge: �Ƃ��������Ɏg�p���܂��B
		if����menu���̃W�����v��Ɏw�肳��܂��B
		
	���萔
		athena��db/const.txt�ɏ��������萔��񋟂��܂��B
		�X�N���v�g���ł̂ݎg�p�”\�ł��B
		
	�����ߍ��ݕϐ�
		�b�������v���C���[�̃X�e�[�^�X�Ȃǂ��Q�Ƃł��܂��B
		db/const.txt�ɋL�q����Ă��܂��B
		�X�N���v�g���ł̂ݎg�p�”\�ł��B
		�Ȃ��A�ꕔ�������Ēl�̑���͂ł��܂���B
		
	����
		���ߕ��̈��������l�������ꍇ�A�����ŗ��p���邱�Ƃ��ł��܂��B
		�X�y�[�X�͗v��Ȃ��悤�ł����������������Ղ��ł��B
		��r���Z�q�y�ј_�����Z�q�͒l���^�ł������Ƃ����l��1�A�U�ł������Ƃ�0��Ԃ��܂��B
		
	���C�x���g
		�`�������Ȃ��X�N���v�g�ł��B
		�^�C���A�^�b�N�Ȃǂ̍쐬�Ɏg���܂��B
		�C�x���g�����L�q���镔���ł́A�C�x���g��::���x�����Ƃ��邱�Ƃł��̃C�x���g�̎w�肵�����x������
		�X�N���v�g���J�n�����邱�Ƃ��ł��܂��B
		
	�����ߍ\��
		�����͔��p�X�y�[�X���󂯂ċL�q���Ă��������B
		
�R�D���ߕ��y�ъ֐��y�ђ萔���x��
	�����ߕ�
		mes����
			mes <string>;
			
			string		������
			
			<string>�ɋL�q���ꂽ����������b�Z�[�W�E�B���h�E�ɏo�͂��܂��B
			
		next����
			next;
			
			���b�Z�[�W�E�B���h�E��next�{�^����\�����A�ҋ@���܂��B
			
		close����
			close;
			
			���b�Z�[�W�E�B���h�E��close�{�^����\�����A�X�N���v�g���I�����܂��B
			
		menu����
			menu <string1>,<label1>[,<stringN>,<labelN>...];
			
			stringN		������
			labelN		���x��
			
			���j���[��\�����܂��B<stringN>�ɋL�q���ꂽ�������I�������<labelN>����X�N���v�g���J�n���܂��B
			�܂��A�I�΂ꂽ���x���̔ԍ��͕ϐ�@menu�ɑ������܂��B
			(l15�ɂ��������܂����A������͍��㓮�삪�ۏႳ��Ȃ��̂�l15�͎g�p���Ȃ��ʼn������j
			
		goto����
			goto <label>;
			
			label		���x��
			
			<label>����X�N���v�g���J�n���܂��B
			
		cutin����
			cutin <filename>,<position>;
			
			filename	������
			position	���l
			
			�J�v���E���Ȃǂ̃J�b�g�C����\�����܂��B<filename>�͕\���������t�@�C�����A<position>�͕\���ʒu���w�肵�܂��B
			position�F0,�����A1,�������A2,�E���A255,�J�b�g�C������
			
		jobchange����
			jobchange <job>[, <upper>];
			
			job		���l
			upper		���l
			
			�E�Ƃ�ύX���܂��B<job>��db/const.txt���Q�Ƃ��Ă��������B
			<upper>��0=�ʏ�,1=�]��,2=�{�q,-1 or ����=���݂�<upper>�ɂȂ�܂��B
			jobLv�͎����łP�ɂȂ�܂��B
			�o�[�h�ƃ_���T�[�ɂ͒��ӂ��Ă��������B
			
		input����
			input [<variable>];
			
			variable	�ϐ��A�ȗ���
			
			���̓E�B���h�E���J���A���̓f�[�^��<variable>�ɑ�����܂��B
			�ϐ��̌^��������^�̂Ƃ��͕�������̓E�B���h�E�A�����^�̂Ƃ��͐��l���̓E�B���h�E�ɂȂ�܂��B
			<variable>���ȗ������ꍇ�ɂ͐��l���̓E�B���h�E���o���A�f�[�^�͕ϐ�l14 (�������̃G��+14)�ɑ������܂��B
			�il14�͍���̓��삪�ۏႳ��Ȃ��̂ŁA�����͏ȗ����Ȃ��ʼn������j

		warp����
			warp <gatname>,<x>,<y>;
			
			gatname		������
			x,y		���l
			
			<gatname>�Ɏw�肳�ꂽMAP�̍��W<x>,<y>�Ƀ��[�v���܂��B
			<gatname>��SavePoint�ɂ����ꍇ�A�Z�[�u�|�C���g�Ɉړ����܂��B
			Random�ɂ����ꍇ�A����MAP���̂ǂ����Ɉړ����܂��B����<x><y>�͖����B
			
		setlook����
			setlook <n1>,<n2>;
			
			n1,n2		���l
			
			�O����ύX���܂��B<n1>�͕��i���A<n2>�͎�ނ��w�肵�܂��B
			n1�F1,���^�A2,����A3,����i�A4,�����i�A5,�����i�A6,���F�A7,���F�A8,��
			�����i�͕ύX����܂���B�A�T�V���j�ƃ��[�O�j�Ɋւ��Ă͕��̐F������܂���B
			
		
		set����
			set <variable>,<n>;
			
			variable	�ϐ�
			n		���l/������
			
			<variable>��<n>�������܂��B
			������^���g�p����Ƃ��͕ϐ����Ƀ|�X�g�t�B�b�N�X��Y��Ȃ��ʼn������B
			
		setarray����
			setarray <variable>[,<n0>[,<n1>�c]];
		
			variable	�ϐ�
			nx		���l/������
		
			�z��<variable>�ɒl<n0>,<n1>,�c�̃��X�g�������܂��B
			<variable>�͔z�񖼂��w�肷��ƍŏ�����A�v�f�ԍ����w�肷��Γr���������ł��܂��B
			<��> setarray @hoge[2],16,24,32;  @hoge�̗v�f2����4�܂ł�16,24,32�ɂ���B

		cleararray����
			cleararray <variable>,<n>,<count>;
			
			variable	�ϐ�
			n		���l/������
			count		���l
			
			�z��<variable>�ɒl<n>��<count>�•�������܂��B
			<variable>�͔z�񖼂��w�肷��ƍŏ�����A�v�f�ԍ����w�肷��Γr���������ł��܂��B
			<��> cleararray @hoge[3],0,6;  @hoge�̗v�f3����8�܂ł�0�ɃZ�b�g����
		
		copyarray����
			copyarray <var1>,<var2>,<n>;
			
			<var1>,<var2>	�ϐ�
			n		��
			
			�z��<var1>�ɔz��<var2>�̗v�f<n>�‚��R�s�[���܂��B
			<var1>,<var2>�͔z�񖼂��w�肷��ƍŏ�����A�v�f�ԍ����w�肷��Γr������R�s�[�ł��܂��B

		deletearray����
			
			deletearray <variable>,<n>;
			
			variable	�ϐ�
			n		���l
			
			�z��<variable>����<n>�‚̗v�f���폜���A���̗v�f��O�ɋl�߂�
			<variable>�͔z�񖼂��w�肷��ƍŏ�����A�v�f�ԍ����w�肷��Γr������폜�ł��܂��B
		
		if����
			if (<cond>) goto <label>;
			
			cond		���l
			label		���x��
			
			<cond>��0�ȊO�̏ꍇ�A<label>����X�N���v�g���J�n���܂��B
			
		getitem����
			getitem <itemid>,<num>;
			
			itemid		���l�܂��͕�����
			num		���l
			
			<itemid>�Ɏw�肳�ꂽ�A�C�e��ID�����ƒA�C�e����<num>�•����肵�܂��B
			<itemid>��������̏ꍇ�A���̖��O(name,jname)�����ƒA�C�e����ID���g�p���܂��B
			�������A�A�C�e������item_db.txt�ȂǂɈˑ����邽�߁A�e�X�g�ړI�ȊO�ł͎g�p���ׂ��ł͂���܂���B

		getitem2����
			getitem <itemid>,<num>,<identify>,<refine>,<attribute>,<card1>,
			<card2>,<card3>,<card4>
			
			itemid		���l�܂��͕�����
			num,identify,refine,attribute,card1,card2,card3,card4	���l
			
			<itemid>�Ɏw�肳�ꂽ�A�C�e��ID�����ƒA�C�e����<num>�•����肵�܂��B
			<identify> �Ӓ���(0�Ŗ��Ӓ�A1�ŊӒ�)
			<refine> ���B�l
			<attribute> �A�C�e���̏��
			<card1> �����Ă���J�[�h�A��������Ȃ�255�ő����ȊO�̃A�C�e���ŃL�����̖��O����ꂽ������254
			<card2> �����Ă���J�[�h�A��������Ȃ瑮���Ɛ��̂�����̐���ݒ�B���̂�����̐�(�͈�:0~3)*5*256 + ����(��:0�A��:3�A��:1�A��:4�A�y:2)
			<card3> �����Ă���J�[�h�A���������L�����̖��O������A�C�e���̓L����ID�̉���2�o�C�g
			<card4> �����Ă���J�[�h�A���������L�����̖��O������A�C�e���̓L����ID�̏��2�o�C�g

			<itemid>��������̏ꍇ�A���̖��O(name,jname)�����ƒA�C�e����ID���g�p���܂��B
			�������A�A�C�e������item_db.txt�ȂǂɈˑ����邽�߁A�e�X�g�ړI�ȊO�ł͎g�p���ׂ��ł͂���܂���B
			
		delitem����
			delitem <itemid>,<num>;
			
			itemid_num	���l
			
			<itemid>�Ɏw�肳�ꂽ�A�C�e��ID�����ƒA�C�e����<num>�•������܂��B
			
		getexp����
			getexp <base_exp>,<job_exp>;
			
			base_exp	���l
			job_exp		���l
			
			<base_exp>�Ɏw�肳�ꂽ������Base�Ɍo���l������܂��B
			<job_exp>�Ɏw�肳�ꂽ������Job�Ɍo���l������܂��B
			�}�C�i�X�̐����͓K������܂���B

		makepet����
			makepet <petid>;
			
			petid	���l
			
			<petid>�Ɏw�肳�ꂽ�A�C�e��ID�����ƒy�b�g�̗����쐬���܂��B
			
		viewpoint����
			viewpoint <type>,<x>,<y>,<id>,<color>;
			
			type,x,y,id	���l
			color		�s��
			
			�����s���Ȃ̂ŏڂ��������͂ł��܂��񂪁A�~�jMAP�ɓ_�ł���_��\���A�폜���܂��B
			type:1,�\���A2,�폜
			
		heal����
			heal <hp>,<sp>;
			
			hp,sp		���l
			
			<hp>��HP���A<sp>��SP���񕜂��܂��B

		itemheal����
			itemheal <hp>,<sp>;
			
			hp,sp		���l
			
			<hp>��HP���A<sp>��SP���񕜂��܂��Bheal�Ƃ͈Ⴂ�񕜂���HP��SP�̗ʂ�VIT(SP�̏ꍇINT)�ƃX�L���ɂ��␳���t���܂��B
			
		end����
			end;
			
			�X�N���v�g�̎��s���I�����܂��B
			
		setoption����
			setoption <string>;
			
			string		������
			
			���p�F
			PC�Ɉȉ��Ŏ����t���i(?)��t���܂��B
			0x0000	- �t���i�폜
			0x0001	- ?
			0x0002	- �n�C�h(�e�t��)
			0x0004	- ??
			0x0008	- �J�[�g
			0x0010	- ��
			0x0020	- �y�R�y�R(�i�C�g,�N���Z�C�_�[�̎��̂ݗL��)
			0x0040	- �n�C�h(�e����)
			0x0080	- �J�[�g2
			0x0100	- �J�[�g3
			0x0200	- �J�[�g4
			0x0400	- �J�[�g5
			0x0800	- �����I�[�N(Sage�̃X�L���A���o�[�X�I�[�L�b�V��������������ԂɂȂ�)
			
			��[���ׂď�����Ă���t�������̂ŁA�����w�肵�����ꍇ�ɂ͍��v���w�肵�Ă��������B
			
		savepoint����
			savepoint <gatname>,<x>,<y>;
			
			gatname		������
			x,y		���l
			
			<gatname>�̍��W<x>,<y>���Z�[�u�|�C���g�ɐݒ肵�܂��B
			
		openstorage����
			openstorage;
			
			�q�ɂ��J���܂��B
			
		setcart����
			setcart;
			
			�J�[�g��t���܂��B
			
		successrefitem����
			successrefitem <n>;
			
			n		���l
			
			���B�����G�t�F�N�g��\�����܂��B
			n:1,�������A2,�Z�A3,����A4,�E��A5,��������́A6,�C�A7,�A�N�Z�P�A8,�A�N�Z�Q�A9,�����i�A10,�����i
			
		failedrefitem����
			failedrefitem <n>;
			
			n		���l
			
			���B���s�G�t�F�N�g��\�����܂��B
			n:1,�������A2,�Z�A3,����A4,�E��A5,��������́A6,�C�A7,�A�N�Z�P�A8,�A�N�Z�Q�A9,�����i�A10,�����i
			
		setfalcon����
			setfalcon;
			
			���t���܂��B
			
		setriding����
			setriding;
			
			�y�R�y�R�ɏ��܂��B
			
		monster����
			monster <gatname>,<x>,<y>,<mobname>,<mobid>,<num>[,<event>];
			
			gatname,mobname	������
			x,y,mobid,num	���l
			event		������A�ȗ���
			
			<gatname>�̍��W<x>,<y>��<mobname>������<mobid>�Ɏw�肳�ꂽID�����ƒ����X�^�[��<num>�̏o�������܂��B
			<gatname>��this�̏ꍇ�X�N���v�g�����s�����v���C���[������MAP�A
			<x><y>��-1�̏ꍇ�A�X�N���v�g�����s�����v���C���[�̍��W�A
			<mobname>��--en--�̏ꍇ�p�ꖼ�A--ja--�̏ꍇ���{�ꖼ�A<mobid>��-1�̏ꍇ�����_���B
			���̃����X�^�[��|�����Ƃ�<event>���J�n���܂��B
			
		announce����
			announce <string>,<flag>;
			
			string		������
			flag		���l
			
			<string>���f�l�A�i�E���X�ŕ\�����܂��B
			<flag>�͈ȉ��Ɏ����ʂ�ł��B
			�G���A�t���O
			0x00 ���ׂĂ̂l�`�o�ɑ��M
			0x01 �����l�`�o
			0x02 ��ʓ�
			0x03 �����̂�
			0x04 �����l�`�o�I
			�F�t���O
			0x00 ���F
			0x10 �F
			����t���O
			0x00 ���ɖ���
			0x08 �C�x���g�p
			
			�G���A�t���O�ƐF�t���O�Ɠ���t���O�̍��v���w�肵�Ă��������B
			
		killmonster����
			killmonster <gatname>[,<event>];
			
			gatname		������
			event		������A�ȗ���
			
			<gatname>�ɑ��݂��郂���X�^�[�����ׂĎE���܂��B
			<event>�ɂ���ČĂяo���ꂽ�����X�^�[�̂ݎE�����Ƃ��”\�ł��B<event>��All�ɂ���Ƃ��̃}�b�v�ɂ���ꎞ�I�ɏ������ꂽ�����X�^�[��S�ĎE���܂��B

		killmonsterall����
			killmonsterall <gatname>
			
			gatname		������
			
			<gatname>�ɑ��݂��郂���X�^�[�����ׂĎE���܂��Bkillmonster�Ƃ͈���Ă��̃}�b�v�Ɏn�߂���z�u����Ă��������X�^�[�܂őS�ĎE�����Ƃ��ł��܂��B

			
		addtimer����
			addtimer <ms>,<event>;
			
			ms		���l
			event		������
			
			���݂̃v���C���[�ɁA<ms>�~���b�o�߂�����<event>���J�n����^�C�}�[���쐬���܂��B
			���̃^�C�}�[�ɂ���Ď��s�����C�x���g�́A���̃v���C���[�̏��ɃA�N�Z�X�ł��܂��B
			�v���C���[�����O�A�E�g����ƃ^�C�}�[�͖����ɂȂ邽�ߒ��ӂ��Ă��������B
			�A���[�i�}�b�v�ȂǂŎg�p����ꍇ�͂���ł͂Ȃ�NPC�^�C�}�[���g�p���Ă��������B
			
		deltimer����
			deltimer <event>;
			
			event		������
			
			���݂̃v���C���[��<event>���J�n����^�C�}�[���������܂��B
			
		addtimercount����
			addtimercount <event>,<ms>;
			
			event		������
			ms		���l
			
			���݂̃v���C���[��<event>���J�n����^�C�}�[�̊J�n�܂ł̎��Ԃ�<ms>�~���b�lj����܂��B
		
		initnpctimer����
			initnpctimer [<name>];
			
			<name>�Ŏw�肳�ꂽNPC������NPC�^�C�}�[�̒l���O�ɂ��A�J�E���g���J�n���܂��B
			name���ȗ�����ƁA���߂����s����NPC���ΏۂɂȂ�܂��B
			
			����NPC�^�C�}�[�̓~���b�P�ʂ�OnTimerXXXX�Ƃ������x���C�x���g�����s���܂��B
			<��> OnTimer1000: <= 1�b��, OnTimer30000: <= 30�b��

		stopnpctimer����
			stopnpctimer [<name>];
			
			<name>�Ŏw�肳�ꂽNPC������NPC�^�C�}�[�̃J�E���g���~���܂��B
			name���ȗ�����ƁA���߂����s����NPC���ΏۂɂȂ�܂��B
		
		startnpctimer����
			stopnpctimer [<name>];
			
			<name>�Ŏw�肳�ꂽNPC������NPC�^�C�}�[�̃J�E���g���ĊJ���܂��B
			name���ȗ�����ƁA���߂����s����NPC���ΏۂɂȂ�܂��B
			�������initnpctimer�ƈႢ�A�J�E���g��0�Ƀ��Z�b�g���܂���B
			stopnpctimer�ƃZ�b�g�Ŏg�p���܂��B
		
		setnpctimer����
			setnpctimer <tick>[,<name>]
			
			<name>�Ŏw�肳�ꂽNPC������NPC�^�C�}�[�̃J�E���g��ύX���܂��B
			name���ȗ�����ƁA���߂����s����NPC���ΏۂɂȂ�܂��B
			getnpctimer�𗘗p����΁A�J�E���g�𑝌��ł��܂��B
		
		disablenpc����
			disablenpc <npcname>;
			
			npcname		������
			
			<npcname>�𖳌��ɂ��܂��B
			
		enablenpc����
			enablenpc <npcname>;
			
			npcname		������
			
			<npcname>��L���ɂ��܂��B
		
		mapannounce����
			mapannounce <gatname>,<string>,<flag>;
			
			gatname,string	������
			flag		���l
			
			<gatname>�S�̂�<string>���f�l�A�i�E���X�ŕ\�����܂��B
			flag:0,���F�����A16,�•���
			
		areaannounce����
			areannounce <gatname>,<x0>,<y0>,<x1>,<y1>,<string>,<flag>;
			
			gatname,string		������
			x0,y0,x1,y1,flag	���l
			
			<gatname>��<x0>,<y0>����<x1>,<y1>�͈͓̔��ɑ΂�<string>���f�l�A�i�E���X�ŕ\�����܂��B
			flag:0,���F�����A16,�•���
			
		areawarp����
			areawarp <gatname>,<x0>,<y0>,<x1>,<y1>,<gatname2>,<x>,<y>;
			
			gatname,gatname2	������
			x0,y0,x1,y1,x,y		���l
			
			<gatname>��<x0>,<y0>����<x1>,<y1>�͈͓̔��ɂ���PC��<gatname2>�̍��W<x>,<y>�Ɉړ������܂��B
			
		areamonster����
			areamonster <gatname>,<x0>,<y0>,<x1>,<y1>,<mobname>,<mobid>,<num>[,<event>];
			
			gatname,mobname		������
			x0,y0,x1,y1,mobid,num	���l
			event			������A�ȗ���
			
			<gatname>��<x0>,<y0>����<x1>,<y1>�͈͓̔���<mobname>������<mobid>�Ɏw�肳�ꂽID�����ƒ����X�^�[��<num>�̏o�������܂��B
			<gatname>��this�̏ꍇ�X�N���v�g���sMAP�A<x><y>��-1�̏ꍇ�����_�����W�A
			<mobname>��--en--�̏ꍇ�p�ꖼ�A--ja--�̏ꍇ���{�ꖼ�A<mobid>��-1�̏ꍇ�����_���B
			���̃����X�^�[��|�����Ƃ�<event>���J�n���܂��B
			
		percentheal����
			percentheal <hp>,<sp>;
			
			hp,sp		���l
			
			HP��SP��<hp>%�A<sp>%���񕜂��܂��B
			
		resetstatus����
			resetstatus;
			
			�X�e�[�^�X�|�C���g�����Z�b�g���܂��B
			
		resetskill����
			resetskill;
			
			�X�L���|�C���g�����Z�b�g���܂��B
		
		statusup����
			statusup <st>;
			
			st	���l
			
			<st>�Ŏw�肳�ꂽ��{�X�e�[�^�X�l���A�X�e�[�^�X�|�C���g�������1�グ��B
			<st>�� bStr, bVit, bInt, bAgi, bDex, bLuk �Ŏw�肷��B
		
		statusup2����
			statusup2 <st>,<n>;
			
			st,n	���l
			
			<st>�Ŏw�肳�ꂽ��{�X�e�[�^�X�l���A�X�e�[�^�X�|�C���g���������<n>�グ��B
			<st>�� bStr, bVit, bInt, bAgi, bDex, bLuk �Ŏw�肷��B
		
		skill����
			skill <skillid>,<skilllv>,<flag>;
			
			skillid,skilllv,flag	���l
			
			<skillid>�Ɏw�肳�ꂽID������LV<skilllv>�X�L�����K�����܂��B
			flag:0,�P�v�I�ȃX�L���擾(�X�L���c���[�ɂȂ����͖���)�A1,�ꎞ�I(�͈͕͂s��)�Ȏ擾�A
			<skilllv>��0�ɂ���Ƃ��ł��̃X�L����Y�ꂳ���邱�Ƃ��”\�ł��B
			
		waitingroom����
			waitingroom <title>,<limit>[,<event>[,<trigger>]];
			
			title		������
			limit		���l
			event		������A�ȗ���
			trigger		���l�A�ȗ���
			
			<title>���^�C�g���Ƃ��ă`���b�g���[����\�������܂��B
			<trigger>�𖞂������Ƃ��A<event>�𓮍삳���邱�Ƃ��”\�ł��B
			<trigger>���ȗ������<limit>�̐��l���g�p����܂��B
		
		delwaitingroom����
			delewaitingroom [<name>]
			
			name	������A�ȗ���
			
			�w�肵��NPC�̃`���b�g���[����‚��܂��B
			<name>���ȗ�����ƁA���߂����s����NPC���ΏۂɂȂ�܂��B
		
		disablewaitingroomevent����
			disablewaitingroomevent [<name>]
			
			name	������A�ȗ���
			
			<name>�Ŏw�肵��NPC�̃`���b�g���[���̃C�x���g�𖳌��ɂ��܂��B
			<name>���ȗ�����ƁA���߂����s����NPC���ΏۂɂȂ�܂��B
		
		enablewaitingroomevent����
			enablewaitingroomevent [<name>]
			
			name	������A�ȗ���
			
			<name>�Ŏw�肵��NPC�̃`���b�g���[���̃C�x���g��L���ɂ��܂��B
			<name>���ȗ�����ƁA���߂����s����NPC���ΏۂɂȂ�܂��B
			�܂��A���ɃC�x���g���N����l���ɒB���Ă���ꍇ�A
			�����ɃC�x���g�����s���܂��B
			
		warpwaitingnpc����
			warpwaitingnpc <gatname>,<x>,<y>[,<num>];
			
			gatname		������
			x,y,num		���l
			
			���߂����s����NPC�̃`���b�g���[���ɓ����Ă���PC�̂����A
			<num>�Ŏw�肵���l�����A<gatname>�̍��W<x>,<y>�Ɉړ������܂��B
			<num>���ȗ������ waitingroom��<trigger>�Ŏw�肵���l�����g�p���܂��B

			���[�v�������l���� $@warpwaitingpcnum �ɁA���[�v�������l�̃A�J�E���gID��
			�z�� $@warpwaitingpc �ɃZ�b�g���܂�(�擪����l����)�B
			
			
		emotion����
			emotion <n>;
			
			n		���l
			
			<n>�G���[�V�������o���܂��B
			
		setmapflag����
			setmapflag <gatname>,<flag>;
			
			gatname		������
			flag		���l
			
			<gatname>��mapflag��lj����܂��B
			<flag>��db/const.txt���Q�Ƃ��Ă��������B
			
		removemapflag����
			removemapflag <gatname>,<flag>;
			
			gatname		������
			flag		���l
			
			<gatname>��mapflag���������܂��B
			<flag>��db/const.txt���Q�Ƃ��Ă��������B
			
		pvpon����
			pvpon <gatname>;
			
			gatname		������
			
			<gatname>��PVP�”\MAP�ɂ��܂��B
			
		pvpoff����
			pvpoff <gatname>;
			
			gatname		������
			
			<gatname>��PVP�s��MAP�ɂ��܂��B
			
		gvgon����
			gvgon <gatname>;
			
			gatname		������
			
			<gatname>���V�[�Y���[�h�ɂ��܂��B
			
		gvgoff����
			gvgoff <gatname>;
			
			gatname		������
			
			<gatname>���V�[�Y���[�h�ɂ��܂��B
			
		setmapflagnosave����
			setmapflagnosave <gatname>,<savegatname>,<x>,<y>;
			
			gatname,nosavegat	������
			x,y			���l
			
			<gatname>��mapflag��nosave�A�����Ƃ���<savegatname>,<x>,<y>��ݒ肵�܂��B
		
		detachrid����
			detachrid;
			
			NPC�ɃA�^�b�`����Ă���ID���N���A���܂��B
			�Ȍ�A�L�����N�^�[����K�v�Ƃ��閽�߂����s�ł��Ȃ��Ȃ�܂��B
		
		doevent����
			doevent <name>;
			
			name	������
			
			�v���C���[��̂̃C�x���g���N�����܂��B<name>�ɂ̓C�x���g�����w�肵�܂��B
			�v���C���[������NPC�Ɖ�b���ȂǂŎ��s�ł��Ȃ��ꍇ�A�L���[�ɓ���A���s�”\�ɂȂ�܂ő҂��Ď��s����܂��B
			�L���[�̃T�C�Y�͂ƂĂ��������̂ŁA�A���ŋN����ƃC�x���g����������邩������܂���B
			���x���t���C�x���g���w��ł��܂����ANPC�����ȗ��ł��Ȃ��̂Œ��ӂ��Ă��������B
		
		donpcevent����
			donpcevent <name>;
			
			name	������
			
			�v���C���[���A�^�b�`����Ă��Ȃ�(NPC��̂�)�C�x���g���N�����܂��B
			<name>�ɂ̓C�x���g�����w�肵�܂��B�C�x���g�͑����Ɏ��s����܂��B
			���x���t���C�x���g���w��ł��ANPC�����ȗ����邱�ƂŁA�C�x���g���u���[�h�L���X�g�ł��܂��B
			�i������NPC�̓������O�̃��x�������s�ł���B �၄"::OnEvent"�j
	
		callsub����
			callsub <label>
		
			label		���x��
		
			����X�N���v�g���̃��x��<label>���T�u���[�e�B���Ƃ��Ď��s���܂��B
			�T�u���[�e�B�����畜�A����Ƃ���return���߂��g�p���Ă��������B
			���̖��߂�return���߂̎��s�󋵂ɂ���Ă͊֐��Ƃ��Ďg�p���邱�Ƃ��o���܂��B

		callfunc����
			callfunc <func>
		
			func		������
		
			<func>�Œ�`���ꂽ���[�U�[��`�֐������s���܂��B
			���[�U�[��`�֐����畜�A����Ƃ���return���߂��g�p���Ă��������B
			���̖��߂�return���߂̎��s�󋵂ɂ���Ă͊֐��Ƃ��Ďg�p���邱�Ƃ��o���܂��B
			
		return����
			return <retval>
			
			retval	���l�܂��͕�����A�ȗ���
		
			�����ɃT�u���[�e�B���������̓��[�U�[��`�֐��𔲂��A�Ăяo�����ɖ߂�܂��B
			<retval>�͖߂�l�ŁAcallsub�܂���callfunc���֐��Ƃ��ČĂяo����Ă���Ƃ��A���̖߂�l���g�p����܂��B
			callsub�܂���func�����߂Ƃ��ČĂ΂�Ă���Ƃ��́A<retval>�͏ȗ����Ă��������B

	���֐�
		rand�֐�
			rand(<n1>[,<n2>])
			
			n1		���l
			n2		���l�A�ȗ���
			
			<n1>�̂ݎw�肳��Ă����ꍇ�A0����<n1>-1�܂ł̐��l�������_���ɑI��ŕԂ��܂��B
			<n2>���w�肵���ꍇ�A<n1>����<n2>�܂ł̐��`�������_���ɑI��ŕԂ��܂��B
			
		getitemname�֐�
			getitemname(<itemid>)

			itemid		���l

			<itemid>�Ɏw�肳�ꂽID�����ƒA�C�e����jname�𕶎���ŕԂ��܂��B
			�Ȃ��A�A�C�e������item_db.txt���Q�Ƃ��܂�

		countitem�֐�
			countitem(<itemid>)
			
			itemid		���l�܂��͕�����
			
			<itemid>�Ɏw�肳�ꂽID�����ƒA�C�e���̏�������Ԃ��܂��B
			<itemid>��������̏ꍇ�A���̖��O(name,jname)�����ƒA�C�e����ID���g�p���܂��B
			�������A�A�C�e������item_db.txt�ȂǂɈˑ����邽�߁A�e�X�g�ړI�ȊO�ł͎g�p���ׂ��ł͂���܂���B
			
		checkweight�֐�
			checkweight(<itemid>,<num>)
			
			itemid		���l�܂��͕�����
			num		���l
			
			<itemid>�Ɏw�肳�ꂽID�����ƒA�C�e����<num>�Ž��‚��Ƃ��ł���̂Ȃ��1���A
			�ł��Ȃ����0��Ԃ��܂��B
			<itemid>��������̏ꍇ�A���̖��O(name,jname)�����ƒA�C�e����ID���g�p���܂��B
			�������A�A�C�e������item_db.txt�ȂǂɈˑ����邽�߁A�e�X�g�ړI�ȊO�ł͎g�p���ׂ��ł͂���܂���B
			
		strcharinfo�֐�
			strcharinfo(<n>)
			
			n		���l
			
			�L��������Ԃ��܂��B
			n:0,�L�������A1,�p�[�e�B�[���A2,�M���h��
			
		getequipname�֐�
			strcharinfo(<n>)
			
			n		���l
			
			�����i����Ԃ��܂��B
			n:1,�������A2,�Z�A3,����A4,�E��A5,��������́A6,�C�A7,�A�N�Z�P�A8,�A�N�Z�Q�A9,�����i�A10,�����i
			
		getequipisequiped�֐�
			getequipisequiped(<n>)
			
			n		���l
			
			�������Ă�����1�A���Ă��Ȃ�������0��Ԃ��܂��B
			n:1,�������A2,�Z�A3,����A4,�E��A5,��������́A6,�C�A7,�A�N�Z�P�A8,�A�N�Z�Q�A9,�����i�A10,�����i
			
		getequipisenableref�֐�
			getequipisenableref(<n>)
			
			n		���l
			
			���B�ł���ꍇ��1�A�ł��Ȃ��ꍇ��0��Ԃ��܂��B
			n:1,�������A2,�Z�A3,����A4,�E��A5,��������́A6,�C�A7,�A�N�Z�P�A8,�A�N�Z�Q�A9,�����i�A10,�����i
			
		getequipisidentify�֐�
			getequipisidentify(<n>)
			
			n		���l
			
			�Ӓ�ς݂̏ꍇ1�A���Ӓ�̏ꍇ0��Ԃ��܂��B
			n:1,�������A2,�Z�A3,����A4,�E��A5,��������́A6,�C�A7,�A�N�Z�P�A8,�A�N�Z�Q�A9,�����i�A10,�����i
			
		getequiprefinerycnt�֐�
			getequiprefinerycnt(<n>)
			
			n		���l
			
			���B�̓x������Ԃ��܂��B
			n:1,�������A2,�Z�A3,����A4,�E��A5,��������́A6,�C�A7,�A�N�Z�P�A8,�A�N�Z�Q�A9,�����i�A10,�����i
			
		getequipweaponlv�֐�
			getequipweaponlv(<n>)
			
			n		���l
			
			����LV��Ԃ��܂��B�h��̏ꍇ�ɂ�0�A���Ƃ͕���LV�ɑΉ����܂��B
			n:1,�������A2,�Z�A3,����A4,�E��A5,��������́A6,�C�A7,�A�N�Z�P�A8,�A�N�Z�Q�A9,�����i�A10,�����i
			
		getequippercentrefinery�֐�
			getequippercentrefinery(<n>)
			
			n		���l
			
			���B��������Ԃ��܂��B
			n:1,�������A2,�Z�A3,����A4,�E��A5,��������́A6,�C�A7,�A�N�Z�P�A8,�A�N�Z�Q�A9,�����i�A10,�����i
			
		getusers�֐�
			getusers(<n>)
			
			n		���l
			
			�l����Ԃ��܂��B
			n:0,PC�̂���MAP�̑��l���A1,�SMAP�̑��l���i�������O�C���l���j�A8,NPC�̑��݂���MAP�̑��l��
			
		getmapusers�֐�
			getmapusers(<gatname>)
			
			gatname		������
			
			<gatname>�ɑ��݂��鑍�l����Ԃ��܂��B
			
		getareausers�֐�
			getareausers(<gatname>,<x0>,<y0>,<x1>,<y1>)
			
			gatname		������
			x0,y0,x1,y1	���l
			
			<gatname>��<x0>,<y0>����<x1>,<y1>�͈͓̔��ɂ���l����Ԃ��܂��B
			
		getskilllv�֐�
			getskilllv(<skillid>)
			
			skillid		���l
			
			<skillid>�Ŏw�肵��ID�����ƒX�L����LV��Ԃ��܂��B�K�����Ă��Ȃ��ꍇ��0��Ԃ��܂��B
			
		getcharid�֐�
			getcharid(<n>)
			
			n		���l
			
			�L��������ID�ŕԂ��܂��B
			n=0	�L����ID
			n=1	�p�[�e�B�[
			n=2	�M���h
			n=3	�A�J�E���gID
			
		getpartyname�֐�
			getpartyname(<n>)
			
			n		���l
			
			<n>�Ŏw�肵��ID�����ƒp�[�e�B�[����Ԃ��܂��B
			
		getguildname�֐�
			getguildname(<n>)
			
			n		���l
			
			<n>�Ŏw�肵��ID�����ƒM���h����Ԃ��܂��B
		
		getguildmaster�֐�
			getguildname(<n>)
			
			n		���l
			
			<n>�Ŏw�肵��ID�����ƒM���h�̃}�X�^�[�̖��O��Ԃ��܂��B
		
		getguildmasterid�֐�
			getguildmasterid(<n>)
			
			n		���l
			
			<n>�Ŏw�肵��ID�����ƒM���h�̃}�X�^�[�̃L�����N�^�[ID��Ԃ��܂��B
		
		basicskillcheck�֐�
			basicskillcheck(0);
			
			battle_athena.conf��basic_skill_check�̐ݒ�l��Ԃ��܂��B0�͈Ӗ��͂���܂��񂪉�������Ȃ������ꍇ�G���[�ɂȂ�܂��B
			basic_skill_check�ƃJ�v���̑q�ɗ��p�����킹��ׂɍ�������ł���ȊO�̋@�\�͂���܂���B�߂������l��0�Ȃ�basic_skill_check��no�A1�Ȃ�yes�ł��B

		getgmlevel�֐�
			getgmlevel(0);
			
			�v���C���[��GM���x����Ԃ��܂��B

		guildopenstorage�֐�
			guildopenstorage(0);

			�M���h�q�ɂ��J���܂��B
			�Ԃ����l��2�Ȃ�M���h�ɏ������ĂȂ��L�����ƌ����Ӗ���
			1�Ȃ瑼�̃M���h�����o�[���q�ɂ��g�p���̈Ӗ��ł��B
			0�Ȃ琬���I�ɃM���h�q�ɂ��J�����Ƃ̂��Ƃł��B

		getwaitingroomstate�֐�
			getwaitingroomstate(<num>,[<name>])
			
			num	���l
			name	������A�ȗ���
			
			<name>�Ŏw�肵��NPC�̃`���b�g���[���̏�Ԃ�Ԃ��܂��B
			<name>���ȗ�����ƁA���߂����s����NPC���ΏۂɂȂ�܂��B
			<num>�œ����������w�肵�܂��B
			
			num=0	���݃`���b�g���[���ɓ����Ă���l���i���l�j
			num=1	�`���b�g���[���̌��E�l���i���l�j
			num=2	�`���b�g���[���̃C�x���g���N�����l���i���l�j
			num=3	�`���b�g���[���̃C�x���g���L�����ǂ����i���l�j
			num=4	�`���b�g���[���̃^�C�g���i������j
			num=5	�`���b�g���[���̃p�X���[�h�i������j
			num=16	�`���b�g���[���̃C�x���g���i������j
			num=32	�`���b�g���[�����������ǂ����i���l�j
			num=33	�`���b�g���[���ŃC�x���g���N����l�����ǂ����i���l�j

		getnpctimer�֐�
			getnpctimer(<num>[,<name>])
			
			num	���l

			<name>�Ŏw�肳�ꂽNPC������NPC�^�C�}�[�̏��𓾂܂��B
			name���ȗ�����ƁA���߂����s����NPC���ΏۂɂȂ�܂��B
			<num>�œ����������w�肵�܂��B
		
			num=0	���݂�NPC�^�C�}�[�̃J�E���g�l
			num=1	����NPC�^�C�}�[�����삵�Ă��邩�ǂ���
			num=2	�w��NPC�̃^�C�}�[�C�x���g���x���̑���
		
		attachrid�֐�
			attachrid(<num>)
			
			num	���l

			<num>�Ŏw�肳�ꂽID�̃L�����N�^�[�����s�����X�N���v�g�ɃA�^�b�`���܂��B
			�Ȍ�A�L�����N�^�[�Ɋւ��閽�߂�֐�/�ϐ��Ȃǂ͑S�ĐV�����L�����N�^�[���ΏۂɂȂ�܂��B
			����̓X�N���v�g���I��/���f����(close,end,menu,next,input�Ȃǂ̎��s)�܂ŗL���ł��B
			��ɃC�x���g�ŋN�����ꂽ�X�N���v�g���Ń}�b�v�ϐ����g���ĕʃL�����N�^�[��
			�A�^�b�`����̂Ɏg�p���܂��Bgetcharid(3)�ŏ��������A�J�E���gID���g���Ă��������B
			�Ȃ��A�f�^�b�`�ɂ�detachrid���߂��g���܂��B

			���ӂ��ׂ��_�Ƃ��ẮA���̖��߂�PC���A�^�b�`�����ꍇ�Ames,menu,next�Ȃǂ�
			�E�B���h�E(��{�^��)���o�閽�߂����s���Ă͂����܂���B
			���肪����NPC�Ɖ�b���̏ꍇ�A�����̖��߂͐��������삵�܂���B
			��񏊓����߂Ȃǂ����ōς܂���ׂ��ł��B

			���̊֐��̓A�^�b�`�ɐ����������ǂ�����Ԃ��܂��B
			�U(0)���Ԃ��ė����ꍇ�́A�Y���L�����N�^�[�����݂��Ă��܂���B
		
		isloggedin�֐�
			isloggedin(<num>)
			
			num	���l

			<num>�Ŏw�肳�ꂽID�̃L�����N�^�[�����̃}�b�v�T�[�o�[��
			���O�C�����Ă��邩�ǂ������ׂ܂��B
		
		getarraysize�֐�
			getarraysize(<variable>)
			
			variable	�ϐ�
			
			�z��<variable>�̗L���ȃT�C�Y�𒲂ׂ܂��B
			�����ł̃T�C�Y�͗v�f��0�i������ϐ��ł�"")�łȂ��A
			�ő�̗v�f�ԍ�+1 �ɂȂ�܂��B
			�z�񖼂ł͂Ȃ��v�f�ԍ��t���Ŏw�肷��ƁA
			���Ȃ��Ƃ����̗v�f�܂ł͑S�ėL���ł���Ɖ��肵�܂��B
			<��> �z��@hoge�� 1,2,3,4,5 ���Ƃ���ƁA
			     getarraysize(@hoge)=5, getarraysize(@hoge[10])=10;
		
		callsub�֐�
			callsub <label>
			
			callsub���߂��֐��Ƃ��Ď��s���܂��B�ڂ�����callsub���߂����Ă��������B

		callfunc�֐�
			callfunc <func>
			
			callfunc���߂��֐��Ƃ��Ď��s���܂��B�ڂ�����callfunc���߂����Ă��������B
		
	���萔���x��
		-���x��
			if����menu���Ŏg�p���܂��B���̍s����X�N���v�g���J�n���܂��B
			
		OnInit���x��
			MAP�����[�h���ꂽ�Ƃ��X�N���v�g���J�n���܂��B
		
		OnInterIfInit���x��
			MAP�T�[�o�[��Inter�T�[�o�[�ɐڑ������Ƃ��Ɏ��s���܂��B
		
		OnCharIfInit���x��
			MAP�T�[�o�[��Char�T�[�o�[�ɐڑ������Ƃ��Ɏ��s���܂��B
		
		OnMinuteXX���x��
			����XX���Ɏ��s���܂��B���l�͏\�i���Q���ł��B

		OnClockXXXX���x��
			����XX��XX���Ɏ��s���܂��B���l�͏\�i���S���ł��B
		
		OnHourXX���x��
			����XX��00���Ɏ��s���܂��B���l�͏\�i���Q���ł��B
			
		OnDayXX���x��
			����XX��00��00���Ɏ��s���܂��B���l�͏\�i���Q���ł��B
		
		OnTimerX���x��
			NPC�^�C�}�[�̃J�E���g��X�ɂȂ����Ƃ��Ɏ��s����܂��B
			����X�̓~���b�P�ʂł��B�����͊֌W����܂���B
		
		OnAgitInit���x��
			�M���h��f�[�^�Ɛ苒�M���h��񂪃}�b�v�T�[�o�[����
			�������ꂽ�Ƃ��Ɏ��s����܂��B
			�M���h��֌W��NPC�̏������Ɏg�p���܂��B
		
		OnAgitStart���x��
			�M���h�U��킪�n�܂����Ƃ��Ɏ��s����܂��B
		
		OnAgitEnd���x��
			�M���h�U��킪�I������Ƃ��Ɏ��s����܂��B
		
		OnAgitBreak���x��
			�G���y���E����j�󂵂��Ƃ��Ɏ��s����܂��B
			���̃��x���͔j�󂵂��v���C���[����̂ɂ��Ď��s����܂��B
		
		OnAgitEliminate���x��
			�G���y���E���j���A�M���h�̏��L�҂����������Ƃ���
			�Ă΂�܂��B
		
	�����ӎ���
		������Ɛ�������Ă��������""�ň͂��Ă��������B

4. Error Message

	* Make an error at the time of compile (it is a thing at the time of map server starting).
		A place is displayed for the line number of an error.

		unexpected expr end
			It is the end of an unexpected formula.
			', ', and';' are in the beginning of a formula.
		
		unmatch ')'
			')' does not match.
			Correspondence of parenthesis'('')' is amusing.
		
		unexpected newline @ string
			It is the new-line which is not expected in a character sequence.
			There is a new-line in the middle of a character sequence (surrounded by '"').
			Probably it is a failure of '"' to close.
		
		unexpected eof @ string
			It is the file terminus which is not expected in a character sequence.
			The file finished in the middle of the character sequence.
			Probably it is a failure of '"' to close.
		
		unexpected character
		unexpected char
			It is an unexpected character.
			It is thought that the variable etc. is not following a naming rule.
		
		l14 and l15 is DEPRECATED. use @menu instead of l15.
			l14 and l15 are not recommended. Please use @menu instead of l15.
			
		prefix 'l' is DEPRECATED. use prefix '@' instead.
			Prefix'l' is not recommended. Please use '@' instead.

		unmatch ']'
			']' does not carry out an interval.
			Correspondence of parenthesis']' is missing.
		
		expect function
			�֐������҂��Ă��܂���
			�֐��Ăяo�����Z�q'('�̑O�Ɋ֐��ȊO�̃V���{��������܂��B
			�����炭�֐������ԈႦ�Ă��܂��B
		
		expect ',' or ')' at func params
			�֐��̈����ɂ�����','��')'�����҂��Ă��܂���
			�����炭������؂��','��')'��Y��Ă��܂��B
		
		func request '(' ')'
			�֐��Ăяo���̊��ʑΉ����
			�����炭�����̐���128�𒴂��܂����B
		
		illeagal number of parameters
			�p�����[�^�̐����s���ł�
			�֐�/���߃p�����[�^�̌����قȂ�܂��B
			�����̌����m�F���Ă��������B
			�G���[�ʒu�͑S�Ă̈����̌�ɂȂ�܂��B
		
		expect command
			���߂����҂��Ă��܂���
			���߈ȊO�̃V���{�����ˑR�o�����Ă��܂��B
			�����炭���ߖ����ԈႦ�Ă��܂��B
		
		expect ',' or ';' at cmd params
			���߂̈����ɂ�����','��';'�����҂��Ă��܂���
			�����炭������؂��','��';'��Y��Ă��܂��B
		
		need ';'
			';'���K�v�ł�
			�����炭�����̐���128�𒴂��܂����B

	���s���̃G���[
		fatal error ! player not attached!
			�v���I�G���[�I�v���C���[���A�^�b�`����Ă��܂���I
			
			�L�����N�^�[�����ł��Ȃ��C�x���g�Ŏ��s����Ă���
			�X�N���v�g�̒��ŃL�����N�^�[��񂪕K�v�Ȗ��߂�֐��A
			�ϐ��փA�N�Z�X���܂����Battachrid�֐����g�����A
			�L�����N�^�[��񂪕s�v�Ȗ��߂��g�p���Ă��������B
			�������́Aattachrid�֐��Őݒ肳�ꂽ��񂪕s���ł��B
			�Ȃ��A���̃G���[���N����ƒ���ɃR�A��f���Ǝv���܂��B
			
			NPC��̃C�x���g��announce�����Ƃ��Ƀt���O0x08���w�肵�Ă��Ȃ�
			�ꍇ�����̃G���[���ł܂��B
			
		
		illeagal scope string variable.
			������ϐ��̃X�R�[�v���s���ł��B
			���Ή��̃v���t�B�b�N�X�ŕ�����ϐ����g�p����܂����B
			�v���t�B�b�N�X���m�F�����������B
		
		illeagal scope
			�X�R�[�v���s���ł��B�z��ϐ����Ή��̃v���t�B�b�N�X��
			���•ϐ��ɔz��ϐ��n�̖��߂����s�����ꍇ�ȂǁB
		
		not label !
			goto/menu���߂Ń��x�����w�肳���ׂ��Ƃ����
			���x���ȊO�̃V���{�����w�肳��Ă��܂��B
			�������́A���x�����ƕϐ������o�b�e�B���O���Ă��܂��B
	
		buildin_set: not name
			set���߂ő��������ϐ����ł͂���܂���B
		
		getelementofarray (operator[]): param2 illeagal number
			�z��ϐ���[]���̒l���s���ł�
			[]���̒l��0������128�ȏ�ɂȂ�܂���

		getelementofarray (operator[]): param1 not name
			�z��ϐ���[]�̑O�̃V���{�����ϐ����ł͂���܂���B
		
		op_2: int&str, str&int not allow.
			�֌W���Z�q�i��r���Z�q�j�ŁA���l�ƕ�����A��������
			������Ɛ��l���w�肳��܂����B
		
		infinity loop !
			�X�N���v�g�̎��s���ߐ����Agoto/menu���ߎ��s�񐔂�
			��������̂ŁA�������[�v�Ɣ��f���܂����B
			�X�N���v�g�̎��s�͋����I�ɒ��f����܂����B
		
		not function and command !
			�֐����s/���ߎ��s�����ŁA�֐��ł����߂ł��Ȃ�
			�V���{��������܂����B
			if���̂Ȃ��ł���”\���������ł��B

		return without callfunc or callsub !
			callfunc��callsub����Ă��Ȃ��̂�return���߂����s���܂����B
			
		stack.sp(?) != default(?)
			�X�^�b�N�|�C���^����X�^�b�N�|�C���^�ƈقȂ��Ă��܂��B
			���߂����s�������ʁA�X�^�b�N�|�C���^�������܂����B
			�֐��𖽗߂Ƃ��Ď��s�����”\��������܂��B
		

5. Postscript
	NPC contained in snapshot was made reference in creating this text.
	I appreciate people which created NPC.
	
It corrects based on text by asong (2004/3/1).