加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
本帖最后由 金芒芒 于 2024-6-5 16:03 编辑
打开事件后脚本中的@efs_enermy_spawn =[]等于@efs_enermy_spawn =[[27,12],[27,18],[30,15],[33,12],[33,18]]不要用开关
def get_spawn_areas#定义获取出生点区域 #=====临时标记 b = $game_map.mpname.split(";") o0 = [b[1].split(",")[0].to_i,b[1].split(",")[1].to_i] o1 = [b[2].split(",")[0].to_i,b[2].split(",")[1].to_i] e0 = [b[3].split(",")[0].to_i,b[3].split(",")[1].to_i] e1 = [b[4].split(",")[0].to_i,b[4].split(",")[1].to_i] #@团队出生点高= (o0[0]-o1[0]).数值 @team_spawn_height = (o0[0]-o1[0]).abs#绝对值数值 #@团队出生点宽度=(o0[1]-o1[1])。防抱死制动系统 @team_spawn_width = (o0[1]-o1[1]).abs#绝对值数值 @o0 = o0 @o1 = o1 @e0 = e0 @e1 = e1 # a=[25,12],[27,13],[29,12],[31,13],[25,15] @efs_enermy_spawn =[] # @efs_enermy_spawn =[[27,12],[27,18],[30,15],[33,12],[33,18]] # @efs_enermy_spawn = [[39,11],[43, 11],[44, 111, [45,11]]#@efs_敌军_出生点 = [][[42,11],[43, 11],[44, 111, [45,11]] # b = [12,13],[14,12],[16,13],[18,12],[14,15]# @efs_team_spawn = [[12,13],[14,12],[16,13],[18,12],[14,15]]
def get_spawn_areas#定义获取出生点区域
#=====临时标记
b = $game_map.mpname.split(";")
o0 = [b[1].split(",")[0].to_i,b[1].split(",")[1].to_i]
o1 = [b[2].split(",")[0].to_i,b[2].split(",")[1].to_i]
e0 = [b[3].split(",")[0].to_i,b[3].split(",")[1].to_i]
e1 = [b[4].split(",")[0].to_i,b[4].split(",")[1].to_i]
#@团队出生点高= (o0[0]-o1[0]).数值
@team_spawn_height = (o0[0]-o1[0]).abs#绝对值数值
#@团队出生点宽度=(o0[1]-o1[1])。防抱死制动系统
@team_spawn_width = (o0[1]-o1[1]).abs#绝对值数值
@o0 = o0
@o1 = o1
@e0 = e0
@e1 = e1
# a=[25,12],[27,13],[29,12],[31,13],[25,15]
@efs_enermy_spawn =[]
# @efs_enermy_spawn =[[27,12],[27,18],[30,15],[33,12],[33,18]]
# @efs_enermy_spawn = [[39,11],[43, 11],[44, 111, [45,11]]#@efs_敌军_出生点 = [][[42,11],[43, 11],[44, 111, [45,11]]
# b = [12,13],[14,12],[16,13],[18,12],[14,15]#
@efs_team_spawn = [[12,13],[14,12],[16,13],[18,12],[14,15]]
|