2023-04-09 05:35:35 +00:00
|
|
|
.. SPDX-License-Identifier: GFDL-1.3-or-later
|
|
|
|
|
2023-04-01 15:07:15 +00:00
|
|
|
所有的预定义变量
|
|
|
|
================
|
|
|
|
|
|
|
|
下表是所有预定义好了的变量。它们都不能被赋值语句赋值。
|
|
|
|
|
|
|
|
表中的数字类型可能指的是枚举值。请自行判断。
|
|
|
|
|
|
|
|
为了方便而用的变量
|
|
|
|
------------------
|
|
|
|
|
|
|
|
.. container:: center
|
|
|
|
|
|
|
|
============== ================
|
|
|
|
**变量名** **类型**
|
|
|
|
============== ================
|
|
|
|
``你`` 玩家类型
|
|
|
|
``不存在的`` 任意类型
|
|
|
|
``'所有角色'`` 数组(玩家类型)
|
|
|
|
============== ================
|
|
|
|
|
|
|
|
势力
|
|
|
|
----
|
|
|
|
|
|
|
|
.. container:: center
|
|
|
|
|
|
|
|
========== ========
|
|
|
|
**变量名** **类型**
|
|
|
|
========== ========
|
|
|
|
``'魏'`` 数字类型
|
|
|
|
``'蜀'`` 数字类型
|
|
|
|
``'吴'`` 数字类型
|
|
|
|
``'群'`` 数字类型
|
|
|
|
``'神'`` 数字类型
|
|
|
|
========== ========
|
|
|
|
|
|
|
|
花色
|
|
|
|
----
|
|
|
|
|
|
|
|
.. container:: center
|
|
|
|
|
|
|
|
============ ==========
|
|
|
|
**变量名** **类型**
|
|
|
|
============ ==========
|
|
|
|
``'黑桃'`` 字符串类型
|
|
|
|
``'红桃'`` 字符串类型
|
|
|
|
``'梅花'`` 字符串类型
|
|
|
|
``'方块'`` 字符串类型
|
|
|
|
``'无花色'`` 字符串类型
|
|
|
|
============ ==========
|
|
|
|
|
|
|
|
卡牌类型
|
|
|
|
--------
|
|
|
|
|
|
|
|
.. container:: center
|
|
|
|
|
|
|
|
============ ========
|
|
|
|
**变量名** **类型**
|
|
|
|
============ ========
|
|
|
|
``'基本牌'`` 数字类型
|
|
|
|
``'装备牌'`` 数字类型
|
|
|
|
``'锦囊牌'`` 数字类型
|
|
|
|
============ ========
|
|
|
|
|
|
|
|
卡牌区域
|
|
|
|
--------
|
|
|
|
|
|
|
|
.. container:: center
|
|
|
|
|
|
|
|
============== ========
|
|
|
|
**变量名** **类型**
|
|
|
|
============== ========
|
|
|
|
``'手牌区'`` 数字类型
|
|
|
|
``'装备区'`` 数字类型
|
|
|
|
``'判定区'`` 数字类型
|
|
|
|
``'武将牌上'`` 数字类型
|
|
|
|
``'弃牌堆'`` 数字类型
|
|
|
|
``'牌堆'`` 数字类型
|
|
|
|
``'处理区'`` 数字类型
|
|
|
|
============== ========
|
|
|
|
|
|
|
|
伤害属性
|
|
|
|
--------
|
|
|
|
|
|
|
|
.. container:: center
|
|
|
|
|
|
|
|
============ ========
|
|
|
|
**变量名** **类型**
|
|
|
|
============ ========
|
|
|
|
``'无属性'`` 数字类型
|
|
|
|
``'火属性'`` 数字类型
|
|
|
|
``'雷属性'`` 数字类型
|
|
|
|
============ ========
|
|
|
|
|
|
|
|
玩家的当前阶段
|
|
|
|
--------------
|
|
|
|
|
|
|
|
.. container:: center
|
|
|
|
|
|
|
|
============== ========
|
|
|
|
**变量名** **类型**
|
|
|
|
============== ========
|
|
|
|
``'开始阶段'`` 数字类型
|
|
|
|
``'准备阶段'`` 数字类型
|
|
|
|
``'判定阶段'`` 数字类型
|
|
|
|
``'摸牌阶段'`` 数字类型
|
|
|
|
``'出牌阶段'`` 数字类型
|
|
|
|
``'弃牌阶段'`` 数字类型
|
|
|
|
``'结束阶段'`` 数字类型
|
|
|
|
``'回合外'`` 数字类型
|
|
|
|
============== ========
|
|
|
|
|
|
|
|
身份
|
|
|
|
----
|
|
|
|
|
|
|
|
.. container:: center
|
|
|
|
|
|
|
|
========== ========
|
|
|
|
**变量名** **类型**
|
|
|
|
========== ========
|
|
|
|
``'主公'`` 数字类型
|
|
|
|
``'忠臣'`` 数字类型
|
|
|
|
``'反贼'`` 数字类型
|
|
|
|
``'内奸'`` 数字类型
|
|
|
|
========== ========
|
|
|
|
|
|
|
|
预定义牌名
|
|
|
|
----------
|
|
|
|
|
|
|
|
.. container:: center
|
|
|
|
|
|
|
|
================ ==========
|
|
|
|
**变量名** **类型**
|
|
|
|
================ ==========
|
|
|
|
``'杀'`` 字符串类型
|
|
|
|
``'闪'`` 字符串类型
|
|
|
|
``'桃'`` 字符串类型
|
|
|
|
``'酒'`` 字符串类型
|
|
|
|
``'过河拆桥'`` 字符串类型
|
|
|
|
``'顺手牵羊'`` 字符串类型
|
|
|
|
``'决斗'`` 字符串类型
|
|
|
|
``'借刀杀人'`` 字符串类型
|
|
|
|
``'无中生有'`` 字符串类型
|
|
|
|
``'无懈可击'`` 字符串类型
|
|
|
|
``'南蛮入侵'`` 字符串类型
|
|
|
|
``'万箭齐发'`` 字符串类型
|
|
|
|
``'桃园结义'`` 字符串类型
|
|
|
|
``'五谷丰登'`` 字符串类型
|
|
|
|
``'闪电'`` 字符串类型
|
|
|
|
``'乐不思蜀'`` 字符串类型
|
|
|
|
``'诸葛连弩'`` 字符串类型
|
|
|
|
``'青釭剑'`` 字符串类型
|
|
|
|
``'寒冰剑'`` 字符串类型
|
|
|
|
``'雌雄双股剑'`` 字符串类型
|
|
|
|
``'青龙偃月刀'`` 字符串类型
|
|
|
|
``'丈八蛇矛'`` 字符串类型
|
|
|
|
``'贯石斧'`` 字符串类型
|
|
|
|
``'方天画戟'`` 字符串类型
|
|
|
|
``'麒麟弓'`` 字符串类型
|
|
|
|
``'八卦阵'`` 字符串类型
|
|
|
|
``'仁王盾'`` 字符串类型
|
|
|
|
``'的卢'`` 字符串类型
|
|
|
|
``'绝影'`` 字符串类型
|
|
|
|
``'爪黄飞电'`` 字符串类型
|
|
|
|
``'赤兔'`` 字符串类型
|
|
|
|
``'大宛'`` 字符串类型
|
|
|
|
``'紫骍'`` 字符串类型
|
|
|
|
``'雷杀'`` 字符串类型
|
|
|
|
``'火杀'`` 字符串类型
|
|
|
|
``'古锭刀'`` 字符串类型
|
|
|
|
``'藤甲'`` 字符串类型
|
|
|
|
``'兵粮寸断'`` 字符串类型
|
|
|
|
``'铁索连环'`` 字符串类型
|
|
|
|
``'白银狮子'`` 字符串类型
|
|
|
|
``'火攻'`` 字符串类型
|
|
|
|
``'朱雀羽扇'`` 字符串类型
|
|
|
|
``'骅骝'`` 字符串类型
|
|
|
|
================ ==========
|
|
|
|
|
|
|
|
性别
|
|
|
|
----
|
|
|
|
|
|
|
|
.. container:: center
|
|
|
|
|
|
|
|
========== ========
|
|
|
|
**变量名** **类型**
|
|
|
|
========== ========
|
|
|
|
``'男性'`` 数字类型
|
|
|
|
``'女性'`` 数字类型
|
|
|
|
``'中性'`` 数字类型
|
|
|
|
========== ========
|
|
|
|
|
|
|
|
观星用
|
|
|
|
------
|
|
|
|
|
|
|
|
.. container:: center
|
|
|
|
|
|
|
|
==================== ========
|
|
|
|
**变量名** **类型**
|
|
|
|
==================== ========
|
|
|
|
``'只放置顶部'`` 数字类型
|
|
|
|
``'顶部底部均放置'`` 数字类型
|
|
|
|
``'只放置底部'`` 数字类型
|
|
|
|
==================== ========
|
|
|
|
|
|
|
|
移牌原因
|
|
|
|
--------
|
|
|
|
|
|
|
|
.. container:: center
|
|
|
|
|
|
|
|
================== ========
|
|
|
|
**变量名** **类型**
|
|
|
|
================== ========
|
|
|
|
``'因使用而移动'`` 数字类型
|
|
|
|
``'因打出而移动'`` 数字类型
|
|
|
|
``'因弃置而移动'`` 数字类型
|
|
|
|
``'因重铸而移动'`` 数字类型
|
|
|
|
``'因拼点而移动'`` 数字类型
|
|
|
|
``'因摸牌而移动'`` 数字类型
|
|
|
|
``'因置入而移动'`` 数字类型
|
|
|
|
``'因交给而移动'`` 数字类型
|
|
|
|
``'因换牌而移动'`` 数字类型
|
|
|
|
================== ========
|