From 4455355f388b9c52e54384e0b14952d42055a4c6 Mon Sep 17 00:00:00 2001 From: Amture Date: Wed, 9 Sep 2026 04:39:24 +0800 Subject: [PATCH] Add usage examples for HasFlag function Added usage examples for HasFlag in Actions and Missions sections. --- docs/extension-tutorial/Flag.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/docs/extension-tutorial/Flag.md b/docs/extension-tutorial/Flag.md index 9933108..52a87e5 100644 --- a/docs/extension-tutorial/Flag.md +++ b/docs/extension-tutorial/Flag.md @@ -19,3 +19,26 @@ def RemoveFlags(*flags: str): def HasFlag(flag: str) -> bool: return flag in player_flags ``` +以下是通常见到的用法 +# Actions +```xml + + + + ... + + ... + +``` +# Missions +```xml + + + + + ... + + ... + +``` +以上两种均为关于flag的检测判定