翔鹰帝国网|帝国时代论坛|帝国时代系列|神话时代
 找回密码
 注册翔鹰会员(昵称)
搜索
查看: 1560|回复: 5

[求助] 能不能让圣物优先产生在玩家附近?

[复制链接]

18

主题

0

精华

71

积分

骑士

耕战
-1
鹰币
500
天龙币
0
回帖
56
附庸关系0
发表于 2018-4-25 14:37:54 | 显示全部楼层 |阅读模式
能不能让圣物优先产生在玩家附近?
永远抢不赢电脑系列~~~
TOT
回复

使用道具 举报

38

主题

4

精华

2万

积分

宗主教

耕战
3831
鹰币
74466
天龙币
0
回帖
762

小评论家翔鹰建站十周年纪念章

附庸关系15
发表于 2018-4-25 15:10:54 | 显示全部楼层
可以使用assign_to_player这个语句,在随机地图中设置对每个玩家不公平的因素。比如可以设置玩家1的圣物距离TC10格以内,而玩家2的圣物距离TC30格以外。
具体可以看https://www.hawkaoe.net/bbs/thread-139741-1-1.html 这个帖子中的实例6:非平衡地图。
回复

使用道具 举报

18

主题

0

精华

71

积分

骑士

耕战
-1
鹰币
500
天龙币
0
回帖
56
附庸关系0
 楼主| 发表于 2018-4-26 15:36:01 | 显示全部楼层
誰慢慢懂 发表于 2018-4-25 15:10
可以使用assign_to_player这个语句,在随机地图中设置对每个玩家不公平的因素。比如可以设置玩家1的圣物距 ...

具体用法呢?
回复

使用道具 举报

38

主题

4

精华

2万

积分

宗主教

耕战
3831
鹰币
74466
天龙币
0
回帖
762

小评论家翔鹰建站十周年纪念章

附庸关系15
发表于 2018-4-26 16:26:02 | 显示全部楼层
本帖最后由 誰慢慢懂 于 2018-4-26 16:28 编辑

举一个简单的例子:
/* ****************************************************** */
<PLAYER_SETUP>
  random_placement

/* ****************************************************** */
<LAND_GENERATION>

base_terrain                     GRASS3

create_land
{
  terrain_type                     GRASS2
  land_percent                       10
  base_size                           20
  border_fuzziness                   100
  assign_to_player  1
  other_zone_avoidance_distance  20
  clumping_factor 15
}

create_land
{
  base_terrain  GRASS3
  land_percent  3
  assign_to_player  2
  base_size  10
  other_zone_avoidance_distance  20
}

create_land
{
  base_terrain  GRASS3
  land_percent  3
  assign_to_player  3
  base_size  10
  other_zone_avoidance_distance  20
}

create_land
{
  base_terrain  GRASS3
  land_percent  3
  assign_to_player  4
  base_size  10
  other_zone_avoidance_distance  20
}

create_land
{
  base_terrain  GRASS3
  land_percent  3
  assign_to_player  5
  base_size  10
  other_zone_avoidance_distance  20
}

create_land
{
  base_terrain  GRASS3
  land_percent  3
  assign_to_player  6
  base_size  10
  other_zone_avoidance_distance  20
}

create_land
{
  base_terrain  GRASS3
  land_percent  3
  assign_to_player  7
  base_size  10
  other_zone_avoidance_distance  20
}

create_land
{
  base_terrain  GRASS3
  land_percent  3
  assign_to_player  8
  base_size  10
  other_zone_avoidance_distance  20
}

/* ****************************************************** */
<TERRAIN_GENERATION>
create_terrain  GRASS
{
  base_terrain  GRASS2
  land_percent  100
  spacing_to_other_terrain_types  1
}

/* ****************************************************** */
<OBJECTS_GENERATION>

create_object TOWN_CENTER
{
  set_place_for_every_player
  group_placement_radius     18
  min_distance_to_players    0
  max_distance_to_players    0
}

create_object VILLAGER
{
  set_place_for_every_player
  min_distance_to_players       6
  max_distance_to_players       6
}

create_object SCOUT
{
  number_of_objects             1
  set_place_for_every_player
  min_distance_to_players       7
  max_distance_to_players       9
}

create_object RELIC
{
   number_of_objects            3
   min_distance_to_players     25
   temp_min_distance_group_placement 20
}

create_object RELIC
{
   number_of_objects            2
   min_distance_to_players     5
   max_distance_to_players     15
   temp_min_distance_group_placement 20
   terrain_to_place_on  GRASS
}

思路就是用create_land语句和assign_to_player语句给每个玩家设置不同的地形,再用 terrain_to_place_on将物品摆放到特定的地形上,这样特定物品就会靠近特定的玩家,造成不公平的情况。


如图所示,我将3个圣物设置成距离玩家1 5格到15格之间,2个圣物设置成距离所有玩家25格以外。这样圣物就会更多的产生在玩家1的周围。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册翔鹰会员(昵称)

x

评分

参与人数 1鹰币 +100 收起 理由
cxt + 100 分享交流

查看全部评分

回复

使用道具 举报

18

主题

0

精华

71

积分

骑士

耕战
-1
鹰币
500
天龙币
0
回帖
56
附庸关系0
 楼主| 发表于 2018-4-29 09:17:15 | 显示全部楼层
誰慢慢懂 发表于 2018-4-26 16:26
举一个简单的例子:
/* ****************************************************** */

非常感谢,明白了。
回复

使用道具 举报

3

主题

0

精华

18

积分

骑士

耕战
0
鹰币
10
天龙币
0
回帖
7
附庸关系0
发表于 2018-10-7 21:28:25 | 显示全部楼层
看晕了。好复杂,还是不明白。
回复

使用道具 举报

本版积分规则

排行榜|小黑屋|翔鹰帝国

GMT+8, 2024-3-29 05:36 , Processed in 0.158485 second(s), 80 queries , File On.

Powered by Hawk Studio  QS Security Corp.® Licensed

Copyright © 2001-2023, Hawkaoe.net All Rights Reserved

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