mirror of
https://github.com/cliffe/BreakEscape.git
synced 2026-02-20 13:50:46 +00:00
- Created a generic NPC script with conversation handling. - Developed an Alice NPC script demonstrating branching dialogue and state tracking. - Implemented a test NPC script for development purposes. - Added JSON representations for the NPC scripts. - Created an HTML test interface for NPC integration testing. - Included event handling and bark systems for NPC interactions.
1 line
1.3 KiB
JSON
1 line
1.3 KiB
JSON
{"inkVersion":21,"root":[[["done",{"#n":"g-0"}],null],"done",{"start":["ev",{"VAR?":"conversation_count"},1,"+",{"VAR=":"conversation_count","re":true},"/ev","ev",{"VAR?":"npc_name"},"out","/ev","^: Hey there! This is conversation ","#","ev",{"VAR?":"conversation_count"},"out","/ev","^.","/#","\n","ev",{"VAR?":"npc_name"},"out","/ev","^: What can I help you with?","\n",{"->":"hub"},null],"hub":[["ev","str","^Ask a question","/str","/ev",{"*":".^.c-0","flg":4},"ev","str","^Say hello","/str","/ev",{"*":".^.c-1","flg":4},"ev","str","^Say goodbye","/str","/ev",{"*":".^.c-2","flg":4},{"c-0":["\n",{"->":"question"},null],"c-1":["\n",{"->":"greeting"},null],"c-2":["\n",{"->":"goodbye"},null]}],null],"question":["ev",{"VAR?":"npc_name"},"out","/ev","^: That's a good question. Let me think about it...","\n","ev",{"VAR?":"npc_name"},"out","/ev","^: I'm not sure I have all the answers right now.","\n",{"->":"hub"},null],"greeting":["ev",{"VAR?":"npc_name"},"out","/ev","^: Hello to you too! Nice to chat with you.","\n",{"->":"hub"},null],"goodbye":["ev",{"VAR?":"npc_name"},"out","/ev","^: Alright, see you later! Let me know if you need anything else.","\n","end",null],"global decl":["ev","str","^NPC","/str",{"VAR=":"npc_name"},0,{"VAR=":"conversation_count"},"/ev","end",null]}],"listDefs":{}} |