骑马与砍杀中文站论坛

 找回密码
 注册(Register!)

QQ登录

只需一步,快速开始

搜索
购买CDKEY 小黑盒加速器
查看: 2700|回复: 2

[求助] 请问一个城镇或者城堡下辖的村庄上限是多少

[复制链接]

13

主题

299

回帖

124

积分

见习骑士

Rank: 3

UID
3087038
第纳尔
1126
精华
0
互助
4
荣誉
1
贡献
0
魅力
10
注册时间
2019-7-10
QQ
鲜花(47) 鸡蛋(0)
发表于 2020-2-25 23:05:11 | 显示全部楼层 |阅读模式
如题,是拥有上限还是没有(判定是根据距离,就怕有上限被其他party抢过去)
编年史制作组总策划
战争的目的必须是为了和平。
The purpose of war must be for the sake of peace.

18

主题

1446

回帖

509

积分

皇家侍卫长[官方战队队长]

光辉骑士团[UTD]
战团ID:UTD_awe23

Rank: 6Rank: 6

UID
2102975
第纳尔
7289
精华
0
互助
10
荣誉
2
贡献
0
魅力
73
注册时间
2014-8-1

2024国庆青训杯季军勋章第二届梦幻联赛奉献勋章第十一届战团中国联赛征战勋章第十一届战团中国联赛铁骨勋章第一届梦幻联赛参与勋章第十届战团中国联赛征战勋章战团正版勋章骑士美德之英勇勋章[杰出会员活跃勋章]元老骑士勋章霸主正版勋章

鲜花(77) 鸡蛋(2)
发表于 2020-2-25 23:46:37 | 显示全部楼层
script_game_start里面:

#pass 1: Give one village to each castle
      (try_for_range, ":cur_center", castles_begin, castles_end),
        (assign, ":min_dist", 999999),
        (assign, ":min_dist_village", -1),
        (try_for_range, ":cur_village", villages_begin, villages_end),
          (neg|party_slot_ge, ":cur_village", slot_village_bound_center, 1), #skip villages which are already bound.
          (store_distance_to_party_from_party, ":cur_dist", ":cur_village", ":cur_center"),
          (lt, ":cur_dist", ":min_dist"),
          (assign, ":min_dist", ":cur_dist"),
          (assign, ":min_dist_village", ":cur_village"),
        (try_end),
        (party_set_slot, ":min_dist_village", slot_village_bound_center, ":cur_center"),
        (store_faction_of_party, ":town_faction", ":cur_center"),
        (call_script, "script_give_center_to_faction_aux", ":min_dist_village", ":town_faction"),
      (try_end),

      
    #pass 2: Give other villages to closest town.
      (try_for_range, ":cur_village", villages_begin, villages_end),
        (neg|party_slot_ge, ":cur_village", slot_village_bound_center, 1), #skip villages which are already bound.
        (assign, ":min_dist", 999999),
        (assign, ":min_dist_town", -1),
        (try_for_range, ":cur_town", towns_begin, towns_end),
          (store_distance_to_party_from_party, ":cur_dist", ":cur_village", ":cur_town"),
          (lt, ":cur_dist", ":min_dist"),
          (assign, ":min_dist", ":cur_dist"),
          (assign, ":min_dist_town", ":cur_town"),
        (try_end),
        (party_set_slot, ":cur_village", slot_village_bound_center, ":min_dist_town"),
        (store_faction_of_party, ":town_faction", ":min_dist_town"),
        (call_script, "script_give_center_to_faction_aux", ":cur_village", ":town_faction"),
      (try_end),

评分

参与人数 1第纳尔 +10 互助 +1 收起 理由
幼稚园殺手 + 10 + 1 乐于助人!

查看全部评分

鲜花鸡蛋

咖啡路德维希  在2020-2-26 13:57  送朵鲜花  并说:我非常同意你的观点,送朵鲜花鼓励一下

13

主题

299

回帖

124

积分

见习骑士

Rank: 3

UID
3087038
第纳尔
1126
精华
0
互助
4
荣誉
1
贡献
0
魅力
10
注册时间
2019-7-10
QQ
鲜花(47) 鸡蛋(0)
 楼主| 发表于 2020-2-26 13:57:39 | 显示全部楼层
BattleField 发表于 2020-2-25 23:46
script_game_start里面:

#pass 1: Give one village to each castle

好的谢谢
编年史制作组总策划
战争的目的必须是为了和平。
The purpose of war must be for the sake of peace.
您需要登录后才可以回帖 登录 | 注册(Register!)

本版积分规则

Archiver|手机版|小黑屋|骑马与砍杀中文站

GMT+8, 2024-11-19 11:44 , Processed in 0.126645 second(s), 22 queries , Gzip On, MemCached On.

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表