ou99孽缘 发表于 2010-12-14 20:18:50

2种方式酒馆选英雄

演示要点:酒馆选择,都需要一个购买单位,触发1里面创建的小精灵已经取消了所有技能和移动速度,所以不需要担心会影响到什么,同时,限定了可选择英雄 数量为1,当购买了英雄以后,酒馆对购买者将不再开放;这里需要提醒一下的是,如果是自定义英雄,需要在“游戏平衡常数”中的”科技树-从属等价物-英雄 “中添加自定义英雄,否则数量限制无效。在触发2中,当玩家购买了一个英雄以后,通过这个触发,其它玩家也将不可以再购得这个英雄。另外,在触发1中还设 定了随机添加英雄到酒馆的动作,有兴趣的可以看一下,不过需要给酒馆添加”出售单位“的技能才可以咯。
https://we.wechn.com/uploads/allimg/100902/1119561L3-0.gif create tavern
https://we.wechn.com/uploads/allimg/100902/1119561L3-0.gif 事件
https://we.wechn.com/uploads/allimg/100902/1119561L3-0.gif 条件
https://we.wechn.com/uploads/allimg/100902/1119561L3-0.gif 动作
https://we.wechn.com/uploads/allimg/100902/11195633M-4.gifhttps://we.wechn.com/uploads/allimg/100902/1119561Q1-5.gif 等待 0.50 秒
https://we.wechn.com/uploads/allimg/100902/11195633M-4.gifhttps://we.wechn.com/uploads/allimg/100902/11195A436-7.gif 玩家组 - 选取 (所有符合 ((((匹配玩家) 的控制者) 等于 用户) and (((匹配玩家) 的游戏状态) 等于 正在游戏)) 的玩家) 内所有玩家做动作
https://we.wechn.com/uploads/allimg/100902/11195AQ1-8.gifhttps://we.wechn.com/uploads/allimg/100902/11195B5F-9.gif Loop - 动作
https://we.wechn.com/uploads/allimg/100902/11195620c-10.gifhttps://we.wechn.com/uploads/allimg/100902/11195633M-4.gifhttps://we.wechn.com/uploads/allimg/100902/11195AT3-12.gif 单位 - 创建 1 个 小精灵 给 (选取玩家) 在 ((选取玩家) 的游戏开始位置) ,面向角度为 默认建筑朝向 度
https://we.wechn.com/uploads/allimg/100902/11195620c-10.gifhttps://we.wechn.com/uploads/allimg/100902/11195633M-4.gifhttps://we.wechn.com/uploads/allimg/100902/1119562430-15.gif 玩家 - 增加 4500 (选取玩家) 的 现有黄金
https://we.wechn.com/uploads/allimg/100902/11195620c-10.gifhttps://we.wechn.com/uploads/allimg/100902/11195633M-4.gifhttps://we.wechn.com/uploads/allimg/100902/1119562430-15.gif 玩家 - 增加 1000 (选取玩家) 的 现有木材
https://we.wechn.com/uploads/allimg/100902/11195620c-10.gifhttps://we.wechn.com/uploads/allimg/100902/11195633M-4.gifhttps://we.wechn.com/uploads/allimg/100902/1119562430-15.gif 玩家 - 设置 (选取玩家) 的 可用人口数 为 80
https://we.wechn.com/uploads/allimg/100902/11195620c-10.gifhttps://we.wechn.com/uploads/allimg/100902/1119564C4-23.gifhttps://we.wechn.com/uploads/allimg/100902/1119562430-15.gif 玩家 - 限制英雄数量为 1 对 (选取玩家)

https://we.wechn.com/uploads/allimg/100902/11195633M-4.gifhttps://we.wechn.com/uploads/allimg/100902/11195AT3-12.gif 单位 - 创建 1 个 小酒馆 给 中立被动 在 ((触发玩家) 的游戏开始位置) ,面向角度为 默认建筑朝向 度
https://we.wechn.com/uploads/allimg/100902/11195633M-4.gifhttps://we.wechn.com/uploads/allimg/100902/1119561Q1-5.gif 设置 tavern = (最后创建的单位)
https://we.wechn.com/uploads/allimg/100902/11195633M-4.gifhttps://we.wechn.com/uploads/allimg/100902/1119561Q1-5.gif 等待 2.00 秒
https://we.wechn.com/uploads/allimg/100902/11195633M-4.gifhttps://we.wechn.com/uploads/allimg/100902/1119561Q1-5.gif 设置 Dialog_Button_n = 24
https://we.wechn.com/uploads/allimg/100902/11195633M-4.gifhttps://we.wechn.com/uploads/allimg/100902/1119561Q1-5.gif -------- 给小酒馆随机放置10个英雄 --------
https://we.wechn.com/uploads/allimg/100902/11195633M-4.gifhttps://we.wechn.com/uploads/allimg/100902/1119561Q1-5.gif For循环整数A从 1 到 10, 做动作
https://we.wechn.com/uploads/allimg/100902/1119562220-37.gifhttps://we.wechn.com/uploads/allimg/100902/11195B5F-9.gif Loop - 动作
https://we.wechn.com/uploads/allimg/100902/1119562223-39.gifhttps://we.wechn.com/uploads/allimg/100902/11195633M-4.gifhttps://we.wechn.com/uploads/allimg/100902/1119561Q1-5.gif 等待 0.02 秒
https://we.wechn.com/uploads/allimg/100902/1119562223-39.gifhttps://we.wechn.com/uploads/allimg/100902/11195633M-4.gifhttps://we.wechn.com/uploads/allimg/100902/1119561Q1-5.gif 设置 Dialog_Button_s = (随机整数,最小值: 1 最大值: Dialog_Button_n)
https://we.wechn.com/uploads/allimg/100902/1119562223-39.gifhttps://we.wechn.com/uploads/allimg/100902/11195633M-4.gifhttps://we.wechn.com/uploads/allimg/100902/1119561Q1-5.gif 中立建筑 - 添加 hero_type 到 tavern 并设置库存量: 1 最大库存量: 1
https://we.wechn.com/uploads/allimg/100902/1119562223-39.gifhttps://we.wechn.com/uploads/allimg/100902/11195633M-4.gifhttps://we.wechn.com/uploads/allimg/100902/1119561Q1-5.gif 设置 hero_type = hero_type
https://we.wechn.com/uploads/allimg/100902/1119562223-39.gifhttps://we.wechn.com/uploads/allimg/100902/11195633M-4.gifhttps://we.wechn.com/uploads/allimg/100902/1119561Q1-5.gif 设置 hero_type = hero_type
https://we.wechn.com/uploads/allimg/100902/1119562223-39.gifhttps://we.wechn.com/uploads/allimg/100902/11195633M-4.gifhttps://we.wechn.com/uploads/allimg/100902/1119561Q1-5.gif 设置 hero_type = hero_type
https://we.wechn.com/uploads/allimg/100902/1119562223-39.gifhttps://we.wechn.com/uploads/allimg/100902/1119564C4-23.gifhttps://we.wechn.com/uploads/allimg/100902/1119561Q1-5.gif 设置 Dialog_Button_n = (Dialog_Button_n - 1)


https://we.wechn.com/uploads/allimg/100902/1119561L3-0.gif tavern choice
https://we.wechn.com/uploads/allimg/100902/1119561L3-0.gif 事件
https://we.wechn.com/uploads/allimg/100902/1119564C4-23.gifhttps://we.wechn.com/uploads/allimg/100902/11195AT3-12.gif 单位 - 任意单位 出售单位

https://we.wechn.com/uploads/allimg/100902/1119561L3-0.gif 条件
https://we.wechn.com/uploads/allimg/100902/11195633M-4.gifhttps://we.wechn.com/uploads/allimg/100902/1119563Y8-66.gif ((被贩卖单位) 是 英雄) 等于 TRUE
https://we.wechn.com/uploads/allimg/100902/1119564C4-23.gifhttps://we.wechn.com/uploads/allimg/100902/1119563Y8-66.gif ((购买者) 的类型) 等于 小精灵

https://we.wechn.com/uploads/allimg/100902/1119561L3-0.gif 动作
https://we.wechn.com/uploads/allimg/100902/11195633M-4.gifhttps://we.wechn.com/uploads/allimg/100902/1119563944-71.gif 任务 - 对 (所有玩家) 发送 提示 信息: ((((购买者) 的所有者) 的名字) + (选择了 + (((被贩卖单位) 的名字) + !)))
https://we.wechn.com/uploads/allimg/100902/11195633M-4.gifhttps://we.wechn.com/uploads/allimg/100902/1119561Q1-5.gif 设置 player_hero[(((购买者) 的所有者) 的玩家索引号)] = (被贩卖单位)
https://we.wechn.com/uploads/allimg/100902/11195633M-4.gifhttps://we.wechn.com/uploads/allimg/100902/1119561Q1-5.gif -------- 禁止所有玩家再次购买同一类型的英雄 --------
https://we.wechn.com/uploads/allimg/100902/11195633M-4.gifhttps://we.wechn.com/uploads/allimg/100902/11195A436-7.gif 玩家组 - 选取 (所有玩家) 内所有玩家做动作
https://we.wechn.com/uploads/allimg/100902/11195AQ1-8.gifhttps://we.wechn.com/uploads/allimg/100902/11195B5F-9.gif Loop - 动作
https://we.wechn.com/uploads/allimg/100902/11195620c-10.gifhttps://we.wechn.com/uploads/allimg/100902/1119564C4-23.gifhttps://we.wechn.com/uploads/allimg/100902/1119562430-15.gif 玩家 - 设置 ((被贩卖单位) 的类型) 不可取得的 对 (选取玩家)

https://we.wechn.com/uploads/allimg/100902/11195633M-4.gifhttps://we.wechn.com/uploads/allimg/100902/1119561Q1-5.gif -------- 确保不再使用的前题下,直接KILL掉购买用的小精灵 --------
https://we.wechn.com/uploads/allimg/100902/1119564C4-23.gifhttps://we.wechn.com/uploads/allimg/100902/11195AT3-12.gif 单位 - 杀死 (购买者)




ou99孽缘 发表于 2010-12-14 20:19:43

钱啊

fengbol 发表于 2010-12-26 00:40:19

菜鸟表示太简单了,需要详细一点

jostu 发表于 2011-1-15 13:45:37

{:6_256:} LS对了!

373413423 发表于 2011-1-24 19:00:25

不顶还是人嘛
{:6_360:}

1224127093 发表于 2011-1-25 13:23:06

支持一下

吾乃.草泥马 发表于 2011-3-5 11:03:39

杀死的话 还不如用删除好点
真三可是用的能量圈

shenmafuyun 发表于 2011-3-23 20:21:03

不会弄还是密码的好点~{:6_276:}

zx5585269 发表于 2012-1-10 16:18:10

飘过飘过飘过飘过飘过飘过飘过飘过

zx5585269 发表于 2012-1-10 16:21:03

飘过飘过飘过飘过飘过飘过飘过飘过
页: [1] 2 3
查看完整版本: 2种方式酒馆选英雄