mirror of
https://github.com/Hibiya615/TetoraKAScript.git
synced 2025-12-17 15:24:41 +08:00
提交保镖初版绘制
This commit is contained in:
@@ -19,9 +19,128 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace Kugane_Ohashi;
|
||||
|
||||
[ScriptType(guid: "fc6a6125-4a1d-4669-be4c-9b375dc70ae0", name: "保镖歼灭战", territorys: [806],
|
||||
version: "0.0.0.1", author: "Tetora", note: noteStr)]
|
||||
public class Yojimbo
|
||||
{
|
||||
const string noteStr =
|
||||
"""
|
||||
v0.0.0.1:
|
||||
LV70 保镖歼灭战 初版绘制
|
||||
""";
|
||||
|
||||
[UserSetting("TTS开关(TTS请二选一开启)")]
|
||||
public bool isTTS { get; set; } = false;
|
||||
|
||||
[UserSetting("EdgeTTS开关(TTS请二选一开启)")]
|
||||
public bool isEdgeTTS { get; set; } = true;
|
||||
|
||||
[UserSetting("弹窗文本提示开关")]
|
||||
public bool isText { get; set; } = true;
|
||||
|
||||
[ScriptMethod(name: "猪鹿蝶_人生短暂(钢铁)", eventType: EventTypeEnum.AddCombatant, eventCondition: ["DataId:9726"])]
|
||||
public void 人生短暂(Event @event, ScriptAccessory accessory)
|
||||
{
|
||||
var dp = accessory.Data.GetDefaultDrawProperties();
|
||||
dp.Name = "人生短暂";
|
||||
dp.Color = accessory.Data.DefaultDangerColor.WithW(0.8f);
|
||||
dp.Owner = @event.SourceId();
|
||||
dp.Scale = new Vector2(8f);
|
||||
dp.DestoryAt = 7500;
|
||||
accessory.Method.SendDraw(DrawModeEnum.Default, DrawTypeEnum.Circle, dp);
|
||||
}
|
||||
|
||||
[ScriptMethod(name: "居合多段斩(AOE)", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:14376"])]
|
||||
public void 居合多段斩(Event @event, ScriptAccessory accessory)
|
||||
{
|
||||
if (isText)accessory.Method.TextInfo("AOE", duration: 2000, false);
|
||||
if (isTTS)accessory.Method.TTS("AOE");
|
||||
if (isEdgeTTS)accessory.Method.EdgeTTS("AOE");
|
||||
}
|
||||
|
||||
[ScriptMethod(name: "月光(钢铁描边)", eventType: EventTypeEnum.TargetIcon, eventCondition: ["Id:0090"])]
|
||||
public void 月光(Event @event, ScriptAccessory accessory)
|
||||
{
|
||||
var dp = accessory.Data.GetDefaultDrawProperties();
|
||||
dp.Name = "月光";
|
||||
dp.Color = accessory.Data.DefaultDangerColor;
|
||||
dp.Owner = @event.TargetId();
|
||||
dp.Scale = new Vector2(5.05f);
|
||||
dp.InnerScale = new Vector2(5f);
|
||||
dp.Radian = float.Pi * 2;
|
||||
dp.DestoryAt = 4200;
|
||||
accessory.Method.SendDraw(DrawModeEnum.Imgui, DrawTypeEnum.Donut, dp);
|
||||
}
|
||||
|
||||
/* 太瞎了 废弃
|
||||
[ScriptMethod(name: "花车(月环)", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:14388"])]
|
||||
public void 花车(Event @event, ScriptAccessory accessory)
|
||||
{
|
||||
var dp = accessory.Data.GetDefaultDrawProperties();
|
||||
dp.Name = "花车";
|
||||
dp.Color = accessory.Data.DefaultDangerColor;
|
||||
dp.Position = @event.EffectPosition();
|
||||
dp.Scale = new Vector2(10f);
|
||||
dp.InnerScale = new Vector2(3f);
|
||||
dp.Radian = float.Pi * 2;
|
||||
dp.DestoryAt = 3700;
|
||||
accessory.Method.SendDraw(DrawModeEnum.Default, DrawTypeEnum.Donut, dp);
|
||||
}
|
||||
*/
|
||||
|
||||
[ScriptMethod(name: "缩小旋律(点名集合)", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:14389"])]
|
||||
public void 缩小旋律(Event @event, ScriptAccessory accessory)
|
||||
{
|
||||
if (isText)accessory.Method.TextInfo("点名集合", duration: 4000, true);
|
||||
// if (isTTS)accessory.Method.TTS("点名集合");
|
||||
// if (isEdgeTTS)accessory.Method.EdgeTTS("点名集合");
|
||||
}
|
||||
|
||||
[ScriptMethod(name: "龙头", eventType: EventTypeEnum.AddCombatant, eventCondition: ["DataId:9729"])]
|
||||
public void 龙头(Event @event, ScriptAccessory accessory)
|
||||
{
|
||||
var dp = accessory.Data.GetDefaultDrawProperties();
|
||||
dp.Name = "龙头";
|
||||
dp.Owner = @event.SourceId();
|
||||
dp.Color = accessory.Data.DefaultDangerColor;
|
||||
dp.Scale = new(6f, 10f);
|
||||
dp.DestoryAt = 15000;
|
||||
accessory.Method.SendDraw(DrawModeEnum.Default, DrawTypeEnum.Straight, dp);
|
||||
}
|
||||
|
||||
[ScriptMethod(name: "龙头销毁", eventType: EventTypeEnum.RemoveCombatant, eventCondition: ["DataId:9729"],userControl: false)]
|
||||
public void 龙头销毁(Event @event, ScriptAccessory accessory)
|
||||
{
|
||||
accessory.Method.RemoveDraw("龙头");
|
||||
}
|
||||
|
||||
[ScriptMethod(name: "天之丛云(AOE)", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:14397"])]
|
||||
public void 天之丛云(Event @event, ScriptAccessory accessory)
|
||||
{
|
||||
if (isText)accessory.Method.TextInfo("AOE", duration: 3000, false);
|
||||
if (isTTS)accessory.Method.TTS("AOE");
|
||||
if (isEdgeTTS)accessory.Method.EdgeTTS("AOE");
|
||||
}
|
||||
|
||||
[ScriptMethod(name: "电击_雷击(钢铁)", eventType: EventTypeEnum.AddCombatant, eventCondition: ["DataId:9731"])]
|
||||
public void 雷击(Event @event, ScriptAccessory accessory)
|
||||
{
|
||||
var dp = accessory.Data.GetDefaultDrawProperties();
|
||||
dp.Name = "雷击";
|
||||
dp.Color = accessory.Data.DefaultDangerColor.WithW(0.8f);
|
||||
dp.Owner = @event.SourceId();
|
||||
dp.Scale = new Vector2(8f);
|
||||
dp.DestoryAt = 6800;
|
||||
accessory.Method.SendDraw(DrawModeEnum.Default, DrawTypeEnum.Circle, dp);
|
||||
}
|
||||
|
||||
[ScriptMethod(name: "捕获 锁链点名", eventType: EventTypeEnum.TargetIcon, eventCondition: ["Id:0005"])]
|
||||
public void 捕获(Event @event, ScriptAccessory accessory)
|
||||
{
|
||||
if (isText)accessory.Method.TextInfo("锁链点名,远离扯线", duration: 4000, true);
|
||||
// if (isTTS)accessory.Method.TTS("锁链点名");
|
||||
// if (isEdgeTTS)accessory.Method.EdgeTTS("锁链点名");
|
||||
}
|
||||
}
|
||||
|
||||
public static class EventExtensions
|
||||
|
||||
Reference in New Issue
Block a user