设为首页收藏本站

单机游戏

 找回密码
 - 注 - 册 -

QQ登录

只需一步,快速开始

查看: 214|回复: 3
打印 上一主题 下一主题

[欧陆风云EU3] 语法求教

[复制链接]

6

主题

2

听众

472

积分

少尉

UID
703813
阅读权限
70
注册时间
2011-7-1
积分
472 个
金钱
13368 Pb
存款
0 Pb
臭鸡蛋
0 斤
切糕
3 斤
贡献
0
跳转到指定楼层
楼主
发表于 2012-6-27 14:02:45 |只看该作者 |倒序浏览
本帖最后由 jasperjoshua 于 2012-6-27 14:18 编辑

最近在修改任务及决议,神风直接玩的是汉化,有几条查了脚本解释还是不太懂,求助啊。
is_subject
        Scope:                country
        Syntax:        is_subject = yes/no
        Returns true if the country is the subject of another country.
subject 指的是什么呢?不是势力范围、军事同盟、商业同盟、附庸国/宗主国,还能是什么? 难道是联合统治?{:57:}

is_lesser_in_union
        Scope:                country
        Syntax:        is_lesser_in_union = yes/no
        Returns true if the country is the lesser partner in a union.

junior_union_with
        Scope:                country
        Syntax:        junior_union_with = country tag
        Returns true if the country is the junior partner in a union with country tag.

senior_union_with
        Scope:                country
        Syntax:        senior_union_with = country tag
        Returns true if the country is the senior partner in a union with country tag.

union中的senior应该是联盟中比较牛B的,那么junior和lesser有什么区别啊?

求达人详细解释了,先谢过了。
分享到: QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
转播转播0 分享淘帖0 分享分享0 收藏收藏0 顶0 踩0

6

主题

2

听众

472

积分

少尉

UID
703813
阅读权限
70
注册时间
2011-7-1
积分
472 个
金钱
13368 Pb
存款
0 Pb
臭鸡蛋
0 斤
切糕
3 斤
贡献
0
沙发
发表于 2012-6-27 14:16:07 |只看该作者
恩,目前情况是
**控奥斯曼,已联合统治马穆鲁克。想屏蔽掉征服埃及的任务,坐等联统继承。
我想在触发条件里添加条件:{若马穆鲁克已被我联合统治,则不触发该任务},不大会改。

annex_egypt = {
   
    type = country

    allow = {
        tag = TUR
        is_lesser_in_union = no
        is_subject = no
        any_neighbor_country = { tag = MAM }
        #MAM = {
        #    not = { num_of_cities = this }
        #}
    }
    abort = {
        or = {
            not = { any_neighbor_country = { tag = MAM } }
            is_lesser_in_union = yes
            is_subject = yes
        }
    }
    success = {
        not = { exists = MAM }
        owns = 361
    }
    chance = {
        factor = 1000
        modifier = {
            factor = 2
            NOT = { relation = { who = MAM value = 100 } }
        }
        modifier = {
            factor = 2
            NOT = {  relation = { who = MAM value = 0 } }
        }
    }
    immediate = {
        any_province = {
            limit = { is_core = MAM }
            add_temp_claim = THIS
        }
    }
    abort_effect = {
        any_province = {
            limit = { is_core = MAM }
            remove_temp_claim = THIS
        }
      
    }
    effect = {
        prestige = 0.1
        army_tradition = 0.3
    }
}

如哪位达人详细解释一下allow和abort里的条件的话,不胜感激。
其实就是原帖的问题啦,虚心求教。
回复

使用道具 举报

6

主题

2

听众

472

积分

少尉

UID
703813
阅读权限
70
注册时间
2011-7-1
积分
472 个
金钱
13368 Pb
存款
0 Pb
臭鸡蛋
0 斤
切糕
3 斤
贡献
0
藤椅
发表于 2012-6-27 14:17:19 |只看该作者
52也这么敏感的,我{:21:}操{:21:}控都会被和谐?
回复

使用道具 举报

280

主题

2

听众

6942

积分

版主

UID
112276
阅读权限
200
注册时间
2007-12-7
积分
6942 个
金钱
592167 Pb
存款
100403 Pb
臭鸡蛋
6 斤
切糕
243 斤
贡献
9

52MOD勋章

板凳
发表于 2012-6-27 23:53:24 |只看该作者
is_subject:是否是附庸国
is_lesser_in_union:是否被联合统治
junior_union_with:当前国家被tag联合统治
senior_union_with:当前国家联合统治了tag


解释——
    allow = {
        tag = TUR        # 奥斯曼
        is_lesser_in_union = no        # 没被联合统治
        is_subject = no        # 不是附庸国
        any_neighbor_country = { tag = MAM }        # 马穆鲁克是邻国
        #MAM = {
        #    not = { num_of_cities = this }
        #}
    }
    abort = {
        or = {        # 或
            not = { any_neighbor_country = { tag = MAM } }        # 马穆鲁克不是邻国
            is_lesser_in_union = yes        # 被联合统治
            is_subject = yes        # 是附庸国
        }
    }


修改为——
    allow = {
        tag = TUR        # 奥斯曼
        is_lesser_in_union = no        # 没被联合统治
        is_subject = no        # 不是附庸国
        any_neighbor_country = { tag = MAM }        # 马穆鲁克是邻国
        #MAM = {
        #    not = { num_of_cities = this }
        #}
        not = { senior_union_with = MAM }        # 当前国家没有联合统治马穆鲁克
    }
    abort = {
        or = {        # 或
            not = { any_neighbor_country = { tag = MAM } }        # 马穆鲁克不是邻国
            is_lesser_in_union = yes        # 被联合统治
            is_subject = yes        # 是附庸国
            senior_union_with = MAM        # 当前国家联合统治了马穆鲁克
        }
    }
回复

使用道具 举报

您需要登录后才可以回帖 登录 | - 注 - 册 -

Archiver|手机版|单机游戏    

GMT+8, 2025-6-20 04:16 , Processed in 0.082228 second(s), 15 queries , Apc On.

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部