项目地址:https://github.com/gamemagics/DNS


灵感来自于Yarn Spinner和timothyqiu大佬的视频。
素材也同样是使用的https://bakudas.itch.io/generic-rpg-pack
本来想直接移植的,但是移植出了些奇妙的问题。代码不C++化可能还是很难实现完全体。
如果要C++化不如自己写一个(不是
于是就有了这个项目。
DNS是一个递归缩写,即DNS is Not Silencer,希望自己在写对话的时候不要像沉默术士开大时一样安静(大雾
一段对话大概可以这么编写:
# DialogueJob
[Player]
"Hello!"
[NPC]
"Hello."
>> "I'm new here." goto new
>> "I've done." goto done
new:
[Player]
"I'm new here."
"What should I do?"
[NPC]
@"five_apples"
quit
done:
[Player]
"I've done."
[NPC]
"Let me see."
"..." as 3
goto CheckApples()
enough:
"Well done boy!"
quit
less:
"You only have {{GetApplesCount}}."
"Just do it!"
PrintTest()
quit
尽管如此里面的函数调用还是得写C#/GD Script。
代码是GD Native的所以理论上都可以使用。
目前只在自编译的版本上通过了测试,过两天应该会做代码重构然后和官方版本接一波打个包吧。