[2.6] 群星MOD制作 自定义特定领袖 样例 |
您所在的位置:网站首页 › 我呼吸都变强小说免费阅读 › [2.6] 群星MOD制作 自定义特定领袖 样例 |
https://jeremywithlove.deviantart.com/art/Rarity-Rarity-Rarity-729843674 写在前面: 扒P社文件看到的。 在别的地方没见过有人发,在这分享一下。 只是样例,不是模板,不是教程,讲得不清不楚,仅供参考。 此MLP的mod不是创意工坊里面的,是自制的。因为图像未得原作者使用许可(反正是自己玩),不发布。 目的: 建立一个自定义的领袖,其拥有指定的种族、领袖类型、头像、性别、年龄、特性、经验值 原理: 先新建种族,然后新建领袖,然后补充设定新建的领袖 样例: ①*mod文件夹*\events\*文件* namespace = ponyevt country_event = { id = ponyevt.1 hide_window = yes is_triggered_only = yes trigger = { } immediate = { create_species = { name = "Image Leader" class = M.L.P. #自制的,见③ portrait = "rr" #自制的,见③ traits = { trait = "trait_cutiemark" "trait_charismatic" "trait_talented" "trait_talented" } #cutiemark自制的 } create_leader = { class = imageleader #自制的,见② species = last_created name = "Rarity" skill = 5 gender = female traits = { trait = leader_trait_engineer trait = leader_trait_gale_speed trait = leader_trait_cautious trait = leader_trait_scout } event_leader = yes # prevents this leader from leading factions and winning elections immortal = yes # can't be killed (not even in battle, unless fleet is destroyed) } last_created_leader = { set_age = 32 add_experience = 271 } } } ②*mod文件夹*\common\leader_classes\00_base_classes (这个简单)复制粘贴更改即可 ③*mod文件夹*\common\species_classes\*文件* M.L.P. = { archetype = BIOLOGICAL randomized = no possible = { authority = { NOT = { value = auth_machine_intelligence text = SPECIES_CLASS_MUST_NOT_USE_MACHINE_INTELLIGENCE } } } portraits = { "changeling" "pony" "rr" } non_randomized_portraits = { "changeling" "pony" "rr" } graphical_culture = mammalian_01 move_pop_sound_effect = "moving_pop_confirmation" resources = {} } 实机效果: 按下~,输入“event ponyevt.1” 实机效果(Image Leader是在LeaderClasses里面自己写的,维护费为0,不过UI排布有点丑,不建议搞成0) P社的(土味)编译器对于命名比较严格,请仿照游戏文件夹下的文件命名。 祝大家一发过大样例! (话说这是啥语言?Pa语言?) 附件(警告:图像的使用未征得原作同意): 来源:https://jeremywithlove.deviantart.com/art/Rarity-Rarity-Rarity-729843674 12(不清楚B 站会不会把图像alpha压崩掉) (没了) (再见~) |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |