summaryrefslogtreecommitdiff
path: root/doc/sample/npc_test_func.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/sample/npc_test_func.txt')
-rw-r--r--doc/sample/npc_test_func.txt26
1 files changed, 26 insertions, 0 deletions
diff --git a/doc/sample/npc_test_func.txt b/doc/sample/npc_test_func.txt
new file mode 100644
index 000000000..2e613404f
--- /dev/null
+++ b/doc/sample/npc_test_func.txt
@@ -0,0 +1,26 @@
+
+// �l��Ԃ��Ȃ��֐�
+function script func001 {
+ mes "���[�U�[��`�֐�";
+ next;
+ return; // �ȗ��ł��Ȃ�
+}
+
+// �l��Ԃ��֐�
+function script func002 {
+ return "���[�U�[��`�֐��Q";
+}
+
+// �֐��̌Ăяo���ƃT�u���[�e�B���̃e�X�g
+prontera,168,189,1 script �֐��e�X�g 112,{
+ callfunc "func001"; // ���[�U�[��`�֐��͕�����Ŏw��
+ mes callfunc("func002");
+ next;
+ callsub L_SUB001; // �T�u���[�e�B���̓��x���𒼐ڎw��
+ close;
+ end;
+
+L_SUB001:
+ mes "�T�u���[�e�B��";
+ return; // �ȗ��ł��Ȃ�
+}