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
4.3 KiB
JSON
1 line
4.3 KiB
JSON
{"inkVersion":21,"root":[[["done",{"#n":"g-0"}],null],"done",{"start":["ev",0,"/ev",{"VAR=":"trust_level","re":true},"^Alice: Hey! I'm Alice, the security consultant here. What can I help you with?","\n",{"->":"hub"},null],"hub":[["ev","str","^Ask about security protocols","/str",{"VAR?":"topic_discussed_security"},"!","/ev",{"*":".^.c-0","flg":5},"ev","str","^Ask about the building layout","/str",{"VAR?":"topic_discussed_building"},"!","/ev",{"*":".^.c-1","flg":5},"ev","str","^Make small talk","/str",{"VAR?":"topic_discussed_personal"},"!","/ev",{"*":".^.c-2","flg":5},"ev","str","^Ask if there are any security concerns","/str",{"VAR?":"trust_level"},2,">=",{"VAR?":"knows_about_breach"},"!","&&","/ev",{"*":".^.c-3","flg":5},"ev","str","^Ask for access to the server room","/str",{"VAR?":"knows_about_breach"},{"VAR?":"has_keycard"},"!","&&","/ev",{"*":".^.c-4","flg":5},"ev","str","^Thank her and say goodbye","/str",{"VAR?":"has_keycard"},"/ev",{"*":".^.c-5","flg":5},"ev","str","^Say goodbye","/str","/ev",{"*":".^.c-6","flg":4},{"c-0":["^ ","\n",{"->":"topic_security"},null],"c-1":["\n",{"->":"topic_building"},null],"c-2":["\n",{"->":"topic_personal"},null],"c-3":["\n",{"->":"reveal_breach"},null],"c-4":["\n",{"->":"request_keycard"},null],"c-5":["\n",{"->":"ending_success"},null],"c-6":["\n",{"->":"ending_neutral"},null]}],null],"topic_security":["ev",true,"/ev",{"VAR=":"topic_discussed_security","re":true},"ev",{"VAR?":"trust_level"},1,"+",{"VAR=":"trust_level","re":true},"/ev","^Alice: Our security system uses biometric authentication and keycard access. Pretty standard corporate stuff.","\n","ev",{"VAR?":"trust_level"},2,">=","/ev",[{"->":".^.b","c":true},{"b":["^ Alice: Between you and me, some of the legacy systems worry me a bit...",{"->":".^.^.^.18"},null]}],"nop","\n",{"->":"hub"},null],"topic_building":["ev",true,"/ev",{"VAR=":"topic_discussed_building","re":true},"ev",{"VAR?":"trust_level"},1,"+",{"VAR=":"trust_level","re":true},"/ev","^Alice: The building has three main floors. Server room is on the second floor, but you need clearance for that.","\n","ev",{"VAR?":"trust_level"},3,">=","/ev",[{"->":".^.b","c":true},{"b":["^ Alice: The back stairwell has a blind spot in the camera coverage, just FYI.",{"->":".^.^.^.18"},null]}],"nop","\n",{"->":"hub"},null],"topic_personal":["ev",true,"/ev",{"VAR=":"topic_discussed_personal","re":true},"ev",{"VAR?":"trust_level"},2,"+",{"VAR=":"trust_level","re":true},"/ev","^Alice: Oh, making small talk? *smiles* I appreciate that. Most people here just see me as \"the security lady.\"","\n","^Alice: I actually studied cybersecurity at MIT. Love puzzles and breaking systems... professionally, of course!","\n",{"->":"hub"},null],"reveal_breach":["ev",true,"/ev",{"VAR=":"knows_about_breach","re":true},"ev",{"VAR?":"trust_level"},1,"+",{"VAR=":"trust_level","re":true},"/ev","^Alice: *looks around nervously*","\n","^Alice: Actually... I've been noticing some weird network activity. Someone's been accessing systems they shouldn't.","\n","^Alice: I can't prove it yet, but I think we might have an insider threat situation.","\n",{"->":"hub"},null],"request_keycard":["ev",{"VAR?":"trust_level"},4,">=","/ev",[{"->":".^.b","c":true},{"b":["\n","ev",true,"/ev",{"VAR=":"has_keycard","re":true},"^Alice: You know what? I trust you. Here's a temporary access card for the server room.","\n","^Alice: Just... be careful, okay? And if you find anything suspicious, let me know immediately.","\n",{"->":"hub"},{"->":".^.^.^.7"},null]}],[{"->":".^.b"},{"b":["\n","^Alice: I'd love to help, but I don't know you well enough to give you that kind of access yet.","\n","^Alice: Maybe if we talk more, I'll feel more comfortable...","\n",{"->":"hub"},{"->":".^.^.^.7"},null]}],"nop","\n",null],"ending_success":["^Alice: Good luck in there. And hey... thanks for taking this seriously.","\n","^Alice: Not everyone would help investigate something like this.","\n","end",null],"ending_neutral":["^Alice: Alright, see you around! Let me know if you need anything security-related.","\n","end","end",null],"global decl":["ev",0,{"VAR=":"trust_level"},false,{"VAR=":"knows_about_breach"},false,{"VAR=":"has_keycard"},false,{"VAR=":"topic_discussed_security"},false,{"VAR=":"topic_discussed_building"},false,{"VAR=":"topic_discussed_personal"},"/ev","end",null]}],"listDefs":{}} |