Delete Data File (+1)

这个提交包含在:
2020-07-07 16:45:47 +08:00
父节点 8df03f60ae
当前提交 bdfa633d30
共有 46 个文件被更改,包括 0 次插入 和 3338 次删除

4
UD/.gitignore vendored
查看文件

@ -1,4 +0,0 @@
#GIT NOT UPDATE
node_modules
log
log2

查看文件

查看文件

@ -1,11 +0,0 @@
@echo off
title Building
start cmd /c "tsc --build 2>log >log2"
ping 127.0.0.1 > nul
ping 127.0.0.1 > nul
ping 127.0.0.1 > nul
ping 127.0.0.1 > nul
type log
type log2
del D:\APPS\JSAICore\UnderDeny.js
copy .\UnderDeny.js D:\APPS\JSAICore\UnderDeny.js

56
UD/Core.d.ts vendored
查看文件

@ -1,56 +0,0 @@
import * as net from "net";
import * as Core from "./Core";
/**QQ用户类:一个QQ号对应的人*/export class QQUser{
/**岁数*/age:Number|number;
/**昵称*/nickname:String|string;
/**性别*/sex:"male"|"unkonw"|""|String|string|undefined;
/**QQ号*/user_id:number|Number;
/**地区*/area:String|null|undefined;
/**群名片*/card:String|string|undefined;
/**发言等级*/level:String|string|undefined;
/**群内角色*/role:"owner"|"user";
/**群头衔*/title:string|String;
}
/**消息类:一个消息对应的东西*/export class InfoType{
/**匿名信息*/anonymous:Object|null|undefined;
/**字体*/font:number|Number;
/**群号*/group_id:number|Number|undefined;
/**消息内容*/message:String|string;
/**消息号*/message_id:number|Number;
/**消息类型*/message_type:"group"|"privace";
/**未知*/post_type:String|string;
/**消息*/raw_message:String|string;
/**AiQQ*/self_id:number|Number|2142562417;
/**发送者*/sender:QQUser;
/**类型2*/sub_type:String|string;
/**时间戳*/time:number|Number;
/**发送者QQ*/user_id:number|Number;
}
/**原定于获取名称对应的QQ号,不过已经废弃了
* @param user_id 用户名称*/export function GetUser(user_id:String|string|Number|number):number;
/**HOOK:是否发送过消息*/export var HOOK:Boolean|boolean;
/**添加事件监听器
* @param callback 回调函数
*/export function AddListener(/**回调函数*/callback:((Connect:net.Socket,Info:InfoType)=>void)):void;
/**部分公开功能*/export namespace frame{
/**禁言某人
* @param connect 会话
* @param info 消息
* @param time 时长(单位:s)*/function Ban(connect:net.Socket,info:InfoType,time:number):void;
/**设置HOOK的内容
* @param value TURE|FALSE;*/function SetHOOK(value:Boolean|boolean):void;
/**发送消息
* @param connect 会话
* @param info 消息
* @param msg 发送内容*/function SendMsg(connect:net.Socket,info:InfoType,msg:String|string):void;
/** \@某人
* @param UserId QQ号
*/function At(UserId:number|Number):string;
/** 读取某个配置项目
* @param ConfigName 配置项名称
*/function ReadSystemConfig(ConfigName:String|string):any;
/**写入某个配置项目
* @param ConfigName 配置名称
* @param ConfigValue 配置内容
*/function WriteSystemConfig(ConfigName:String|string,ConfigValue:any):Boolean|boolean;
}

查看文件

@ -1 +0,0 @@
"use strict";

查看文件

1
UD/OnlineAi.d.ts vendored
查看文件

@ -1 +0,0 @@
import * as Core from "./Core";

查看文件

@ -1,206 +0,0 @@
"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
//《UnderDeny》 For OnlineAi Version!!!
//Author:Lanshuye
//Version (OnlineAi) <ALL>
//Version (MoudelCE) <ALL>
//Version (This Mod) <1.0>
const Core = __importStar(require("./Core"));
const fs = __importStar(require("fs"));
class GameAction {
Execute(c, i, Temp_this) {
if (Temp_this.Type == "对话") {
Core.frame.SendMsg(c, i, `${Temp_this.Settings.对话_内容}`);
}
if (Temp_this.Type == "跳转") {
var data = fs.readFileSync("./UnderDenyData/Player.json");
var data_obj = JSON.parse(data.toString());
data_obj[i.user_id.toString()].Schedule = Temp_this.Settings.跳转_目标.valueOf();
fs.writeFile("./UnderDenyData/Player.json", JSON.stringify(data_obj), (err2) => { });
}
if (Temp_this.Type == "判断") {
fs.readFile("./UnderDenyData/Player.json", (err, data) => {
var data_obj = JSON.parse(data.toString());
if (data_obj[i.user_id.toString()].Vars[Temp_this.Settings.判断_变量.valueOf()] == Temp_this.Settings.判断_依据.valueOf()) {
var temp = new GameAction();
var s = Temp_this.Settings.判断_执行;
for (var j = 0; j < s.length; j++) {
temp.Create(s[j]).Execute(c, i, temp.Create(s[j]));
}
}
});
}
if (Temp_this.Type == "变量") {
fs.readFile("./UnderDenyData/Player.json", (err, data) => {
var data_obj = JSON.parse(data.toString());
data_obj[i.user_id.toString()].Vars[Temp_this.Settings.变量_设置.valueOf()] = Temp_this.Settings.变量_内容.valueOf();
fs.writeFile("./UnderDenyData/Player.json", JSON.stringify(data_obj), (err2) => { });
});
}
if (Temp_this.Type == "随机") {
var rom = Math.floor(Math.random() * 100);
if (rom < Temp_this.Settings.触发_几率.valueOf()) {
var temp = new GameAction();
var s = Temp_this.Settings.触发_回调;
for (var j = 0; j < s.length; j++) {
temp.Create(s[j]).Execute(c, i, temp.Create(s[j]));
}
}
else {
if (Temp_this.Settings.触发_否则 != undefined || Temp_this.Settings.触发_否则 != null) {
var temp = new GameAction();
var s = Temp_this.Settings.触发_否则;
for (var j = 0; j < s.length; j++) {
temp.Create(s[j]).Execute(c, i, temp.Create(s[j]));
}
}
}
}
if (Temp_this.Type == "战斗=>扣血") {
var data_obj = JSON.parse(fs.readFileSync("./UnderDenyData/Player.json").toString());
var Player = new PlayerData(data_obj[i.user_id.toString()].Info);
console.log(Temp_this.Settings);
Player.HP = Player.HP.valueOf() - Temp_this.Settings.战斗_扣血.valueOf();
Core.frame.SendMsg(c, i, `${Temp_this.Settings.战斗_目标}对你使用了${Temp_this.Settings.战斗_弹幕},造成${Temp_this.Settings.战斗_扣血}点伤害,你剩余${Player.HP}点血量。`);
data_obj[i.user_id.toString()].Info = Player;
if (Player.HP < 0) {
data_obj[i.user_id.toString()] = undefined;
Core.frame.SendMsg(c, i, `你失败了\r\n${Core.frame.At(i.user_id)}保持你的决心。`);
}
fs.writeFile("./UnderDenyData/Player.json", JSON.stringify(data_obj), (err2) => { });
}
}
;
Create(that) {
if (that != undefined) {
this.Type = that.Type;
this.Settings = that.Settings;
}
return this;
}
constructor() {
this.Type = "";
this.Settings = {};
}
}
class Item {
}
class PlayerData {
constructor(PlayerData) {
this.LOVE = PlayerData.LOVE;
this.EXP = PlayerData.EXP;
this.HP = PlayerData.HP;
this.Item = PlayerData.Item;
}
}
class UDPlayer {
constructor(PlayerS) {
this.Schedule = PlayerS.Schedule;
this.Vars = PlayerS.Vars;
this.Info = new PlayerData(PlayerS.Info);
}
}
console.log(`[${new Date().toString()}][UnderDeny OA定制版]正在载入数据...`);
Core.AddListener((connect, info) => {
if (info.message.substr(0, 2) != "UD") {
return;
}
var msg = new String(info.message.replace("UD", ""));
if (msg == "开始游戏") {
fs.readFile("./UnderDenyData/Player.json", (err, data) => {
var PlayerData = JSON.parse(data.toString());
if (PlayerData[info.user_id.toString()] != undefined) {
Core.frame.SendMsg(connect, info, `${Core.frame.At(info.user_id)},你还在进行游戏,发送\"UD重置\"才可以重新开始`);
return;
}
PlayerData[info.user_id.toString()] = { Schedule: "Start", Vars: {}, Info: { LOVE: 0, EXP: 0, HP: 21, Item: [] } };
fs.readFile("./UnderDenyData/Script.json", (err2, data2) => {
var data_obj = JSON.parse(data2.toString());
PlayerData[info.user_id.toString()].Vars = data_obj["Settings"]["init"];
fs.writeFile("./UnderDenyData/Player.json", JSON.stringify(PlayerData), (err2) => {
Core.frame.SendMsg(connect, info, `${Core.frame.At(info.user_id)},UD初始化完成。发送\"UD查看剧情\"来开始游戏吧`);
});
});
});
}
if (msg == "重置") {
fs.readFile("./UnderDenyData/Player.json", (err, data) => {
var PlayerData = JSON.parse(data.toString());
PlayerData[info.user_id.toString()] = undefined;
fs.writeFile("./UnderDenyData/Player.json", JSON.stringify(PlayerData), (err2) => {
Core.frame.SendMsg(connect, info, `${Core.frame.At(info.user_id)},重置成功!`);
});
});
}
if (msg == "查看剧情") {
fs.readFile("./UnderDenyData/Player.json", (err, data) => {
var PlayerData = JSON.parse(data.toString());
if (PlayerData[info.user_id.toString()] == undefined) {
Core.frame.SendMsg(connect, info, `${Core.frame.At(info.user_id)},你没有进行游戏,发送\"UD开始游戏\"来开始游戏。`);
return;
}
var ThisPlayer = new UDPlayer(PlayerData[info.user_id.toString()]);
fs.readFile("./UnderDenyData/Script.json", (err2, data2) => {
var Data = JSON.parse(data2.toString());
var GameInfo = Data["Game"][ThisPlayer.Schedule.valueOf()].Info;
var GameAct = Data["Game"][ThisPlayer.Schedule.valueOf()].Actions;
var YouCanDo = "<你可以选择的行动>\\r\\n";
Object.keys(GameAct).forEach(element => {
YouCanDo = `${YouCanDo}UD行动${element}\\r\\n`;
});
Core.frame.SendMsg(connect, info, `${Core.frame.At(info.user_id)}\\r\\n${GameInfo}\\r\\n${YouCanDo}<UNDERDENY>`);
});
});
}
if (msg == "进行存档") {
fs.readFile("./UnderDenyData/Player.json", (err, data) => {
var PlayerData = JSON.parse(data.toString());
if (PlayerData[info.user_id.toString()] == undefined) {
Core.frame.SendMsg(connect, info, `${Core.frame.At(info.user_id)},你没有进行游戏,发送\"UD开始游戏\"来开始游戏。`);
return;
}
fs.readFile("./UnderDenyData/Script.json", (err2, data2) => {
var data2_obj = JSON.parse(data2.toString());
if (data2_obj["Game"][PlayerData[info.user_id.toString()].Schedule].SaveAble != true) {
Core.frame.SendMsg(connect, info, "此时你无法存档。");
}
else {
PlayerData[`${info.user_id}_SAVE`] = PlayerData[info.user_id.toString()];
fs.writeFile("./UnderDenyData/Player.json", JSON.stringify(PlayerData), (err3) => { });
Core.frame.SendMsg(connect, info, data2_obj["Game"][PlayerData[info.user_id.toString()].Schedule].SaveInfo);
}
});
});
}
if (msg.substr(0, 2) == "行动") {
var action = msg.replace("行动", "");
fs.readFile("./UnderDenyData/Player.json", (err, data) => {
var PlayerData = JSON.parse(data.toString());
if (PlayerData[info.user_id.toString()] == undefined) {
Core.frame.SendMsg(connect, info, `${Core.frame.At(info.user_id)},你没有进行游戏,发送\"UD开始游戏\"来开始游戏。`);
return;
}
var ThisPlayer = new UDPlayer(PlayerData[info.user_id.toString()]);
fs.readFile("./UnderDenyData/Script.json", (err2, data2) => {
var Data = JSON.parse(data2.toString());
var GameAct = Data["Game"][ThisPlayer.Schedule.valueOf()].Actions;
if (GameAct[action] == undefined) {
Core.frame.SendMsg(connect, info, `${Core.frame.At(info.user_id)},没有这个行动,请检查后再发送。`);
return;
}
var ActionGroup = GameAct[action];
var Act = new GameAction();
for (var i = 0; i < ActionGroup.length; i++) {
Act.Create(ActionGroup[i]).Execute(connect, info, Act.Create(ActionGroup[i]));
}
});
});
}
});

查看文件

@ -1,223 +0,0 @@
//《UnderDeny》 For OnlineAi Version!!!
//Author:Lanshuye
//Version (OnlineAi) <ALL>
//Version (MoudelCE) <ALL>
//Version (This Mod) <1.0>
import * as Core from "./Core";
import * as fs from "fs";
import { Socket } from "net";
class GameAction{
Type:String;
Settings:{
对话_内容?:String;
对话_人物?:String;
跳转_目标?:String;
变量_设置?:String;
变量_内容?:String;
常量_设置?:String;
判断_变量?:String;
判断_依据?:String;
判断_执行?:GameAction[];
触发_几率?:Number;
触发_回调?:GameAction[];
触发_否则?:GameAction[];
战斗_目标?:String;
战斗_弹幕?:String;
战斗_扣血?:Number;
};
Execute(c:Socket,i:Core.InfoType,Temp_this:GameAction){
if(Temp_this.Type=="对话"){
Core.frame.SendMsg(c,i,`${Temp_this.Settings.对话_内容}`);
}
if(Temp_this.Type=="跳转"){
var data = fs.readFileSync("./UnderDenyData/Player.json");
var data_obj = JSON.parse(data.toString());
data_obj[i.user_id.toString()].Schedule = (Temp_this.Settings.跳转_目标 as String).valueOf();
fs.writeFile("./UnderDenyData/Player.json",JSON.stringify(data_obj),(err2)=>{});
}
if(Temp_this.Type=="判断"){
fs.readFile("./UnderDenyData/Player.json",(err,data)=>{
var data_obj = JSON.parse(data.toString());
if(data_obj[i.user_id.toString()].Vars[(Temp_this.Settings.判断_变量 as String).valueOf()] == (Temp_this.Settings.判断_依据 as String).valueOf()){
var temp = new GameAction();
var s = (Temp_this.Settings.判断_执行 as GameAction[]);
for(var j=0;j<s.length;j++){
temp.Create(s[j]).Execute(c,i,temp.Create(s[j]));
}
}
});
}
if(Temp_this.Type=="变量"){
fs.readFile("./UnderDenyData/Player.json",(err,data)=>{
var data_obj = JSON.parse(data.toString());
data_obj[i.user_id.toString()].Vars[(Temp_this.Settings.变量_设置 as String).valueOf()] = (Temp_this.Settings.变量_内容 as String).valueOf();
fs.writeFile("./UnderDenyData/Player.json",JSON.stringify(data_obj),(err2)=>{});
})
}
if(Temp_this.Type=="随机"){
var rom = Math.floor(Math.random() * 100);
if(rom<(Temp_this.Settings.触发_几率 as Number).valueOf()){
var temp = new GameAction();
var s = (Temp_this.Settings.触发_回调 as GameAction[]);
for(var j=0;j<s.length;j++){
temp.Create(s[j]).Execute(c,i,temp.Create(s[j]));
}
}else{
if(Temp_this.Settings.触发_否则!=undefined||Temp_this.Settings.触发_否则!=null){
var temp = new GameAction();
var s = (Temp_this.Settings.触发_否则 as GameAction[]);
for(var j=0;j<s.length;j++){
temp.Create(s[j]).Execute(c,i,temp.Create(s[j]));
}
}
}
}
if(Temp_this.Type=="战斗=>扣血"){
var data_obj = JSON.parse(fs.readFileSync("./UnderDenyData/Player.json").toString());
var Player = new PlayerData(data_obj[i.user_id.toString()].Info as PlayerData);
console.log(Temp_this.Settings);
Player.HP = Player.HP.valueOf() - (Temp_this.Settings.战斗_扣血 as Number).valueOf();
Core.frame.SendMsg(c,i,`${Temp_this.Settings.战斗_目标 as String}对你使用了${Temp_this.Settings.战斗_弹幕 as String},造成${(Temp_this.Settings.战斗_扣血 as Number)}点伤害,你剩余${Player.HP}点血量。`)
data_obj[i.user_id.toString()].Info = Player;
if(Player.HP<0){
data_obj[i.user_id.toString()] = undefined;
Core.frame.SendMsg(c,i,`你失败了\r\n${Core.frame.At(i.user_id)}保持你的决心。`);
}
fs.writeFile("./UnderDenyData/Player.json",JSON.stringify(data_obj),(err2)=>{});
}
};
Create(that:GameAction):GameAction{
if(that!=undefined){
this.Type = that.Type;
this.Settings = that.Settings;
}
return this;
}
constructor(){
this.Type = "";
this.Settings = {}
}
}
class Item{
}
class PlayerData{
LOVE:Number;
EXP:Number;
HP:Number;
Item:Item[];
constructor(PlayerData:PlayerData){
this.LOVE = PlayerData.LOVE;
this.EXP = PlayerData.EXP;
this.HP = PlayerData.HP;
this.Item = PlayerData.Item;
}
}
class UDPlayer{
Schedule:String;
Vars:Object;
Info:PlayerData;
constructor(PlayerS:UDPlayer){
this.Schedule = PlayerS.Schedule;
this.Vars = PlayerS.Vars;
this.Info = new PlayerData(PlayerS.Info as PlayerData);
}
}
console.log(`[${new Date().toString()}][UnderDeny OA定制版]正在载入数据...`)
Core.AddListener((connect,info)=>{
if(info.message.substr(0,2)!="UD"){
return;
}
var msg:String = new String(info.message.replace("UD",""));
if(msg=="开始游戏"){
fs.readFile("./UnderDenyData/Player.json",(err,data)=>{
var PlayerData = JSON.parse(data.toString());
if(PlayerData[info.user_id.toString()]!=undefined){
Core.frame.SendMsg(connect,info,`${Core.frame.At(info.user_id)},你还在进行游戏,发送\"UD重置\"才可以重新开始`);
return;
}
PlayerData[info.user_id.toString()] = {Schedule:"Start",Vars:{},Info:{LOVE:0,EXP:0,HP:21,Item:[]}}
fs.readFile("./UnderDenyData/Script.json",(err2,data2)=>{
var data_obj = JSON.parse(data2.toString());
PlayerData[info.user_id.toString()].Vars = data_obj["Settings"]["init"];
fs.writeFile("./UnderDenyData/Player.json",JSON.stringify(PlayerData),(err2)=>{
Core.frame.SendMsg(connect,info,`${Core.frame.At(info.user_id)},UD初始化完成。发送\"UD查看剧情\"来开始游戏吧`);
});
});
});
}
if(msg=="重置"){
fs.readFile("./UnderDenyData/Player.json",(err,data)=>{
var PlayerData = JSON.parse(data.toString());
PlayerData[info.user_id.toString()] = undefined;
fs.writeFile("./UnderDenyData/Player.json",JSON.stringify(PlayerData),(err2)=>{
Core.frame.SendMsg(connect,info,`${Core.frame.At(info.user_id)},重置成功!`);
});
});
}
if(msg=="查看剧情"){
fs.readFile("./UnderDenyData/Player.json",(err,data)=>{
var PlayerData = JSON.parse(data.toString());
if(PlayerData[info.user_id.toString()]==undefined){
Core.frame.SendMsg(connect,info,`${Core.frame.At(info.user_id)},你没有进行游戏,发送\"UD开始游戏\"来开始游戏。`);
return;
}
var ThisPlayer =new UDPlayer(PlayerData[info.user_id.toString()] as UDPlayer);
fs.readFile("./UnderDenyData/Script.json",(err2,data2)=>{
var Data = JSON.parse(data2.toString());
var GameInfo = Data["Game"][ThisPlayer.Schedule.valueOf()].Info as String;
var GameAct = Data["Game"][ThisPlayer.Schedule.valueOf()].Actions as Object;
var YouCanDo = "<你可以选择的行动>\\r\\n";
Object.keys(GameAct).forEach(element=>{
YouCanDo = `${YouCanDo}UD行动${element}\\r\\n`;
});
Core.frame.SendMsg(connect,info,`${Core.frame.At(info.user_id)}\\r\\n${GameInfo}\\r\\n${YouCanDo}<UNDERDENY>`);
});
});
}
if(msg == "进行存档"){
fs.readFile("./UnderDenyData/Player.json",(err,data)=>{
var PlayerData = JSON.parse(data.toString());
if(PlayerData[info.user_id.toString()]==undefined){
Core.frame.SendMsg(connect,info,`${Core.frame.At(info.user_id)},你没有进行游戏,发送\"UD开始游戏\"来开始游戏。`);
return;
}
fs.readFile("./UnderDenyData/Script.json",(err2,data2)=>{
var data2_obj = JSON.parse(data2.toString());
if(data2_obj["Game"][PlayerData[info.user_id.toString()].Schedule].SaveAble!=true){
Core.frame.SendMsg(connect,info,"此时你无法存档。");
}else{
PlayerData[`${info.user_id}_SAVE`] = PlayerData[info.user_id.toString()];
fs.writeFile("./UnderDenyData/Player.json",JSON.stringify(PlayerData),(err3)=>{});
Core.frame.SendMsg(connect,info,data2_obj["Game"][PlayerData[info.user_id.toString()].Schedule].SaveInfo);
}
});
});
}
if(msg.substr(0,2)=="行动"){
var action = msg.replace("行动","");
fs.readFile("./UnderDenyData/Player.json",(err,data)=>{
var PlayerData = JSON.parse(data.toString());
if(PlayerData[info.user_id.toString()]==undefined){
Core.frame.SendMsg(connect,info,`${Core.frame.At(info.user_id)},你没有进行游戏,发送\"UD开始游戏\"来开始游戏。`);
return;
}
var ThisPlayer =new UDPlayer(PlayerData[info.user_id.toString()] as UDPlayer);
fs.readFile("./UnderDenyData/Script.json",(err2,data2)=>{
var Data = JSON.parse(data2.toString());
var GameAct = Data["Game"][ThisPlayer.Schedule.valueOf()].Actions;
if((GameAct[action] as any)==undefined){
Core.frame.SendMsg(connect,info,`${Core.frame.At(info.user_id)},没有这个行动,请检查后再发送。`);
return;
}
var ActionGroup = GameAct[action] as Array<GameAction>;
var Act:GameAction|undefined = new GameAction();
for(var i=0;i<ActionGroup.length;i++){
Act.Create(ActionGroup[i]).Execute(connect,info,Act.Create(ActionGroup[i]));
}
});
});
}
});

查看文件

@ -1,3 +0,0 @@
{
}

查看文件

@ -1,428 +0,0 @@
{
"Name":"UnderDeny",
"Author":["UnderDeny制作组","Computer Internet Studio"],
"Settings":{
"StartAt":"Start",
"JSTextGameCoreVersion":"[UnderDeny定制版]",
"init":{
"Skip":"false"
}
},
"AddonsSettings":{
"UD[Items]":{
"说明书":{
"ItemType":"物品",
"DeleteAble":false,
"Info":"*这是一本说明书。||*This is a book that can help you.",
"Use":[{
"Type":"对话",
"Settings":{
"对话_内容":"*这是本说明书,可以教你如何游玩UD。\\r\\n要使用吗?||*This is a book that can help you.Would you like to use it?"
}
},{
"Type":"选择",
"Settings":{
"选择_选项":["是","否"],
"选项_回调":[[{
"Type":"对话",
"Settings":{
"对话_内容":"使用“UD查看剧情”获取剧情信息。"
}
},{
"Type":"对话",
"Settings":{
"对话_内容":"使用“UD行动[XX]”来进行游戏。"
}
}],[]]
}
}]
}
},
"UD[Attack]":{
}
},
"Game":{
"Start":{
"Info":"从前有两个种族,人类与怪物,他们和平地相处着。||Long long ago,there were two races,humans and monsters.They lived peacefully.",
"Actions":{
"继续":[{
"Type":"对话",
"Settings":{
"对话_内容":"但有一天,因为怪物对于人类和自己共享资源而不满,于是发起了战争。||But one day,Because monsters didn't agree to humans' idea about sharing resources.They started a war."
}
},{
"Type":"跳转",
"Settings":{
"跳转_目标":"P1"
}
}],
"跳过":[{
"Type":"判断",
"Settings":{
"判断_变量":"Skip",
"判断_依据":"false",
"判断_执行":[{
"Type":"对话",
"Settings":{
"对话_内容":"给我好好听着.||Listen it!"
}
},{
"Type":"变量",
"Settings":{
"变量_名称":"Skip",
"变量_内容":"true"
}
}]
}
}]
}
},
"P1":{
"Info":"但有一天,因为怪物对于人类和自己共享资源而不满,于是发起了战争。||But one day,Because monsters didn't agree to humans' idea about sharing resources.They started a war.",
"Actions":{
"继续":[{
"Type":"对话",
"Settings":{
"对话_内容":"战争的最后人类打败了怪物,并将他们赶入了地底。||The end of the war was that monsters was failed by humans' attacking.They had to go to the place that under ground."
}
},{
"Type":"跳转",
"Settings":{
"跳转_目标":"P2"
}
}]
}
},
"P2":{
"Info":"战争的最后人类打败了怪物,并将他们赶入了地底。||The end of the war was that monsters was failed by humans' attacking.They had to go to the place that under ground.",
"Actions":{
"继续":[{
"Type":"对话",
"Settings":{
"对话_内容":"人类派遣两位最为强大的魔法师,设置了封印,将怪物永远困在了地底。||Humans let the most powerful magician make seal that could keep monsters inseparable."
}
},{
"Type":"跳转",
"Settings":{
"跳转_目标":"P3"
}
}]
}
},
"P3":{
"Info":"人类派遣两位最为强大的魔法师,设置了封印,将怪物永远困在了地底。||Humans let the most powerful magician make seal that could keep monsters inseparable.",
"Actions":{
"继续":[{
"Type":"对话",
"Settings":{
"对话_内容":"20XX年,一位人类不小心掉入了地底。||In the 20XX year,A human fell into the ground."
}
},{
"Type":"跳转",
"Settings":{
"跳转_目标":"P4"
}
}]
}
},
"P4":{
"Info":"20XX年,一位人类不小心掉入了地底。||In the 20XX year,A human fell into the underground.",
"Actions":{
"继续":[{
"Type":"对话",
"Settings":{
"对话_内容":"你的旅途从此开始。||Your trip is begining now!"
}
},{
"Type":"跳转",
"Settings":{
"跳转_目标":"GUI"
}
}]
}
},
"GUI":{
"Info":"Your trip is begining now!",
"Actions":{
"开始":[{
"Type":"对话",
"Settings":{
"对话_内容":"#你掉入了地底,还好一堆金色的花接住了你。(你获得了0exp,你的lv上升了)||#You fell into the underground,thanks to the flowers that were glod keep caught you.(You got 0 exp,Your Love is being high.)"
}
},{
"Type":"跳转",
"Settings":{
"跳转_目标":"ROOM1"
}
}],
"帮助":[{
"Type":"对话",
"Settings":{
"对话_内容":"你正在使用《OnlineAi》的一个官方定制插件——《UnderDeny文字版 For OnlineAi》。\\r\\n本游戏的操作方式为\"UD行动[指令名称]\""
}
}]
}
},
"ROOM1":{
"Info":"#你掉入了地底,还好一堆金色的花接住了你。(你获得了0exp,你的lv上升了)||#You fell into the underground,thanks to the flowers that were glod caught you.(You got 0 exp,Your Love is being high.)",
"Actions":{
"向上观望":[{
"Type":"对话",
"Settings":{
"对话_内容":"想要重新爬上去是没有指望了。||It is not useful to climb up."
}
}],
"调查花堆":[{
"Type":"对话",
"Settings":{
"对话_内容":"这堆金色的花接住了你,你可要好好感谢它。||The glod flowers caught you,You must thank them."
}
}],
"调查墙壁":[{
"Type":"对话",
"Settings":{
"对话_内容":"黑黝黝的墙壁,没有什么特别的。||The black wall,nothing is special."
}
}],
"继续向前":[{
"Type":"对话",
"Settings":{
"对话_内容":"你继续向前走。||You keep moving forward."
}
},{
"Type":"对话",
"Settings":{
"对话_内容":"#你穿过一扇紫色大门,到达了第二个房间。\\r\\n#你看到了一朵金色的小花,你要干什么呢?||You go throught a big door that is purple,reach the second room.\\r\\nNow you see a flower that is glod.What will you do?"
}
},{
"Type":"跳转",
"Settings":{
"跳转_目标":"ROOM2.Before"
}
}]
}
},
"ROOM2.Before":{
"Info":"#你穿过一扇紫色大门,到达了第二个房间。\\r\\n#你看到了一朵金色的小花,你要干什么呢?||You go throught a big door that is purple,reach the second room.\\r\\nNow you see a flower that is glod.What will you do?",
"Actions":{
"调查墙壁":[{
"Type":"对话",
"Settings":{
"对话_内容":"小花向你叫唤,你走了过去。||The flower is calling you,you walk over to it."
}
},{
"Type":"跳转",
"Settings":{
"跳转_目标":"小花_对话1<ROOM2.Before>"
}
},{
"Type":"对话",
"Settings":{
"对话_内容":"小花:“哦,看看这里,又一个可怜的人类掉入了地底。你还好吗?孩子。哦,谢天谢地,要是你受了伤的话那就难弄了。”||The flower says oh,look at this.A poor human fell into the underground,too. Are you ok,kid?Oh,thanks!It will be diffclut If you hurt."
}
}],
"调查小花":[{
"Type":"对话",
"Settings":{
"对话_内容":"小花:“哦,看看这里,又一个可怜的人类掉入了地底。你还好吗?孩子。哦,谢天谢地,要是你受了伤的话那就难弄了。”"
}
},{
"Type":"跳转",
"Settings":{
"跳转_目标":"小花_对话1<ROOM2.Before>"
}
}],
"和小花说话":[{
"Type":"对话",
"Settings":{
"对话_内容":"小花:“哦,看看这里,又一个可怜的人类掉入了地底。你还好吗?孩子。哦,谢天谢地,要是你受了伤的话那就难弄了。”||The flower says oh,look at this.A poor human fell into the underground,too. Are you ok,kid?Oh,thanks!It will be diffclut If you hurt."
}
},{
"Type":"跳转",
"Settings":{
"跳转_目标":"小花_对话1<ROOM2.Before>"
}
}],
"径直走开":[{
"Type":"对话",
"Settings":{
"对话_内容":"小花非常生气的向你叫唤,是否走过去?||The flower is calling you angry.Do you want to go and see?"
}
},{
"Type":"跳转",
"Settings":{
"跳转_目标":"未调查小花的事件"
}
}],
"愣住不动":[{
"Type":"对话",
"Settings":{
"对话_内容":"小花向你叫唤,你走了过去。||The flower is calling you,you walk over to it."
}
},{
"Type":"跳转",
"Settings":{
"跳转_目标":"小花_对话1<ROOM2.Before>"
}
},{
"Type":"对话",
"Settings":{
"对话_内容":"小花:“哦,看看这里,又一个可怜的人类掉入了地底。你还好吗?孩子。哦,谢天谢地,要是你受了伤的话那就难弄了。”"
}
}]
}
},
"小花_对话1<ROOM2.Before>":{
"Info":"小花:“哦,看看这里,又一个可怜的人类掉入了地底。你还好吗?孩子。哦,谢天谢地,要是你受了伤的话那就难弄了。”||The flower says oh,look at this.A poor human fell into the underground,too. Are you ok,kid?Oh,thanks!It will be diffclut If you hurt.",
"Actions":{
"继续":[{
"Type":"对话",
"Settings":{
"对话_内容":"*你告诉这朵小花自己没有事情。||*You tell this flower you are fine."
}
},{
"Type":"对话",
"Settings":{
"对话_内容":"“哦,真是失理。我都忘记自我介绍了。你好,我叫小花,一朵名叫小花的小花。”||Oh,I am flower, a flower named flower"
}
},{
"Type":"对话",
"Settings":{
"对话_内容":"“很不幸,你掉入了地底,但幸运的是,地底的怪物都很善良。”||it is not lucky to fell into the underground,luckly the monsters are kind."
}
},{
"Type":"对话",
"Settings":{
"对话_内容":"“虽然话说如此,但也不乏有一些讨厌的家伙,对于这种家伙,你只要教训他们一下就可以,但千万记住,千万不要杀了他们。”"
}
},{
"Type":"对话",
"Settings":{
"对话_内容":"“当他们得到应有的教训的时候,他们就不会惹事了,这个时候,就需要你饶恕他们。”"
}
},{
"Type":"对话",
"Settings":{
"对话_内容":"“要是他们用魔法攻击你,你只要躲开就可以了。就像这样。”"
}
},{
"Type":"对话",
"Settings":{
"对话_内容":"#小花对你发起攻击。"
}
},{
"Type":"对话",
"Settings":{
"对话_内容":"“看见了吗?这是你的灵魂,而我会用这些魔法颗粒来攻击你(小花的身边出现了3颗白色颗粒。)准备好了么?我要开始咯”"
}
},{
"Type":"对话",
"Settings":{
"对话_内容":"#魔法颗粒慢悠悠地飞了过来"
}
},{
"Type":"跳转",
"Settings":{
"跳转_目标":"小花_对话1_Part2"
}
}]
}
},
"小花_对话1_Part2":{
"Info":"#魔法颗粒慢悠悠地飞了过来",
"SaveAble":true,
"SaveInfo":"看到小花,你充满了决心。",
"Actions":{
"尝试躲开":[{
"Type":"随机",
"Settings":{
"触发_几率":5,
"触发_回调":[{
"Type":"战斗=>扣血",
"Settings":{
"战斗_目标":"小花",
"战斗_弹幕":"魔法颗粒",
"战斗_扣血":1
}
},{
"Type":"对话",
"Settings":{
"对话_内容":"小花:“我很抱歉不小心伤到了你,但是时间快到了,很抱歉我不能治疗你,我们下次见了,孩子。”"
}
}],
"触发_否则":[{
"Type":"对话",
"Settings":{
"对话_内容":"小花:“哦,你做的很棒,孩子。但是时间快到了,很抱歉我要走了,我们下次见了,孩子。”"
}
}]
}
},{
"Type":"对话",
"Settings":{
"对话_内容":"#小花饶恕了你"
}
},{
"Type":"对话",
"Settings":{
"对话_内容":"#小花隐入地底。"
}
}],
"不为所动":[{
"Type":"战斗=>扣血",
"Settings":{
"战斗_目标":"小花",
"战斗_弹幕":"魔法颗粒",
"战斗_扣血":"3"
}
},{
"Type":"对话",
"Settings":{
"对话_内容":"小花:“你刚才为什么没有躲避我的魔法呢,时间快到了,很抱歉我不能治疗你,我们下次见了,孩子。”"
}
},{
"Type":"对话",
"Settings":{
"对话_内容":"#小花饶恕了你"
}
},{
"Type":"对话",
"Settings":{
"对话_内容":"#小花隐入地底。"
}
}]
}
},
"未调查小花的事件":{
"Info":"小花非常生气的向你叫唤,是否走过去?",
"Actions":{
"是":[{
"Type":"对话",
"Settings":{
"对话_内容":"你向这朵会说话的金色小花走了过去。"
}
},{
"Type":"跳转",
"Settings":{
"跳转_目标":"小花_对话1<ROOM2.Before>"
}
}],
"否":[{
"Type":"对话",
"Settings":{
"对话_内容":"你还是向这朵会说话的金色小花走了过去。"
}
},{
"Type":"跳转",
"Settings":{
"跳转_目标":"小花_对话1<ROOM2.Before>"
}
}]
}
},
"小花离开后事件":{
"Info":""
}
}
}

0
UD/log
查看文件

查看文件

查看文件

@ -1,63 +0,0 @@
{
"compilerOptions": {
/* Basic Options */
// "incremental": true, /* Enable incremental compilation */
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
// "lib": [], /* Specify library files to be included in the compilation. */
// "allowJs": true, /* Allow javascript files to be compiled. */
// "checkJs": true, /* Report errors in .js files. */
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
// "declaration": true, /* Generates corresponding '.d.ts' file. */
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
// "sourceMap": true, /* Generates corresponding '.map' file. */
// "outFile": "./", /* Concatenate and emit output to single file. */
// "outDir": "./", /* Redirect output structure to the directory. */
// "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
// "composite": true, /* Enable project compilation */
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
// "removeComments": true, /* Do not emit comments to output. */
// "noEmit": true, /* Do not emit outputs. */
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
/* Strict Type-Checking Options */
"strict": true, /* Enable all strict type-checking options. */
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
// "strictNullChecks": true, /* Enable strict null checks. */
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
/* Additional Checks */
// "noUnusedLocals": true, /* Report errors on unused locals. */
// "noUnusedParameters": true, /* Report errors on unused parameters. */
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
/* Module Resolution Options */
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
// "typeRoots": [], /* List of folders to include type definitions from. */
// "types": [], /* Type declaration files to be included in compilation. */
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
/* Source Map Options */
// "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
/* Experimental Options */
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
}
}

查看文件

@ -1,4 +0,0 @@
UD文字版内核不同于JSTextGameCore。
UDTC和JTGC都使用CIS编写的TWS作为参数库(Type With Settings:类型和设置),所以在语法上内容相似,但实现机制完全不一致。
UDTC针对OnlineAi Core做了特别的优化适配,而JTGC只是一般插件。
UDTC针对JTGC的Items库和Attack库做了特别修改,