summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/sample/npc_test_func.txt25
-rw-r--r--doc/sample/npc_test_skill.txt27
2 files changed, 29 insertions, 23 deletions
diff --git a/doc/sample/npc_test_func.txt b/doc/sample/npc_test_func.txt
index 2e613404f..1f50afb46 100644
--- a/doc/sample/npc_test_func.txt
+++ b/doc/sample/npc_test_func.txt
@@ -1,26 +1,27 @@
-// �l��Ԃ��Ȃ��֐�
+// Define the function func001
function script func001 {
- mes "���[�U�[��`�֐�";
+ mes "Hello there!";
next;
- return; // �ȗ��ł��Ȃ�
+ return; // continue script
}
-// �l��Ԃ��֐�
+// Define the function func002
function script func002 {
- return "���[�U�[��`�֐��Q";
+ return "I'm a function";
}
-// �֐��̌Ăяo���ƃT�u���[�e�B���̃e�X�g
-prontera,168,189,1 script �֐��e�X�g 112,{
- callfunc "func001"; // ���[�U�[��`�֐��͕�����Ŏw��
- mes callfunc("func002");
+// An NPC using 3 different methods of displaying npc dialog from both internal
+// and external sources.
+prontera,168,189,1 script Functions 112,{
+ callfunc "func001"; // Calls func001 and displays "Hello there!"
+ mes callfunc("func002"); // Calls func002 and displays "I'm a function"
next;
- callsub L_SUB001; // �T�u���[�e�B���̓��x���𒼐ڎw��
+ callsub L_SUB001; // Calls the label L_SUB001 and displays "I'm a label"
close;
end;
L_SUB001:
- mes "�T�u���[�e�B��";
- return; // �ȗ��ł��Ȃ�
+ mes "I'm a label";
+ return; // continue script
}
diff --git a/doc/sample/npc_test_skill.txt b/doc/sample/npc_test_skill.txt
index 55864a117..8d7d88dfe 100644
--- a/doc/sample/npc_test_skill.txt
+++ b/doc/sample/npc_test_skill.txt
@@ -1,19 +1,24 @@
-// �X�L�������e�X�g
+// Giving skills to characters via an NPC
-// skill �X�L��ID ,�X�L��LV [,�t���O];
-// �t���O�͏ȗ��”\�A�ȗ����͂P�B
-// �t���O=1�ŃJ�[�h�Ȃǂ̈ꎞ�I�ȏ����A
-// �t���O=2�ŃN�G�X�g�Ȃǂɂ��P�v�I�ȏ���(skill_tree.txt�Ɉˑ�)
+// skill <skill id>,<level>{,<flag>};
+// flag=0 Grants the skill permanently
+// flag=1 Grants the skill temporarily
+// flag=2 Level bonus, stackable
+// If flag is undefined, it defaults to 1
+// View db/(pre-)re/skill_db.txt for skill IDs
-prontera,157,182,0 script �X�L�������e�X�g 116,{
- mes "�X�L�������e�X�g";
- menu "���}���u����",L_GETSKILL142,"���񂾐U�菊��",L_GETSKILL143,"��߂�",L_YAME;
+prontera,157,182,0 script Skills 116,{
+ mes "What skill would you like?";
+ menu "First Aid",L_GETSKILL142,"Play Dead",L_GETSKILL143,"Heal",L_GETSKILL28,"None",L_YAME;
L_GETSKILL142:
- skill 142,1,0;
+ skill 142,1,0; // Permanently gives player level 1 First Aid
close;
L_GETSKILL143:
- skill 143,1,0;
+ skill 143,1,0; // Permanently gives player level 1 Play Dead
+ close;
+L_GETSKILL28:
+ skill 28,3,1; // Temporarily gives player level 3 Heal
close;
L_YAME:
close;
-} \ No newline at end of file
+}