Files
ichni_Official/Assets/Resources/Story/Chapter0/Dialogs/Example.txt
SoulliesOfficial b9e6a9ab25 剧情
2025-06-13 14:59:58 -04:00

49 lines
1.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
$[开始]
$Condition{
GetVariable("Branch") == 1 -> [标题1];
GetVariable("Branch") == 2 -> [标题2];
}
#上面是条件判断获取变量Branch的值决定进入哪个标题。
#这是一个注释。
#-----------
$[标题1]
$角色名字1: 说话内容1
#Dialog结束了
#-----------
$[标题2]
$角色名字2: 说话内容2
$Choice(选项名字){
选项内容A -> [选择A];
选项内容B -> [选择B];
}
#上面是选项
#-----------
$[选择A]{
SetVariable("ChooseResult", 1);
GenerateDialogBlock("Departure_P2_A");
}
$角色名字2: 说话内容3-1
$角色名字2: 说话内容3-2
#标题后面的{}内为自定义函数。
#SetVariable("ChooseResult", 1) 设置变量ChooseResult的值为1。
#GenerateTextBlock("Departure_P2_A") 生成名字为Departure_P2_A的文本块。
#-----------
$[选择B]{
SetVariable("ChooseResult", 2);
GenerateDialogBlock("Departure_P2_B");
}
$角色名字2: 说话内容4-1
$角色名字2: 说话内容4-2
$角色名字2: 说话内容4-3
#-----------