-
Notifications
You must be signed in to change notification settings - Fork 2
/
FactionBaseScripts.py
37 lines (31 loc) · 1.14 KB
/
FactionBaseScripts.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# -*- coding: utf-8 -*-
## 包含一些对阵营常用的操作
from header_operations import *
from header_parties import *
from header_skills import skl_trainer
from module_constants import *
## args
factionBaseScripts={
"name":"FactionBaseScripts",
"enable":True,
"scripts":{
"append":[
## 创建部队通用方法
("get_num_of_enemy_state",[
(store_script_param, ":faction_no", 1),
(assign,":war_num",0),
(try_for_range,":other_faction_no",kingdoms_begin,kingdoms_end),
(neq,":faction_no",":other_faction_no"),
(store_relation,":relation",":faction_no",":other_faction_no"),
# (assign,reg1,":relation"),
# (display_message,"@relation is {reg1}"),
(lt,":relation",0),
(val_add,":war_num",1),
(try_end),
(assign,reg0,":war_num"),
# (str_store_faction_name, s1, ":faction_no"),
# (display_message, "@faction({s1}) enemy state nums is {reg0}"),
]),
],
}
}