找回密码
 点一下
查看: 754|回复: 8

发信息创建随机物品给英雄。

[复制链接]
发表于 2012-7-29 14:46:19 | 显示全部楼层 |阅读模式
输入XX,随机创建一个物品给英雄
这个怎么写?
不知道怎么捕捉玩家的英雄。
发表于 2012-7-29 16:36:38 | 显示全部楼层
1:选英雄的时候用变量存放

2:单位组中的第一个单位(玩家拥有的单位(匹配单位是英雄 匹配单位不是镜像))
回复

使用道具 举报

 楼主| 发表于 2012-7-29 20:31:07 | 显示全部楼层
1年没有作图了,现在很吃力。
能不能给个演示我参考参考~
回复

使用道具 举报

发表于 2012-7-30 05:43:51 | 显示全部楼层
“捕捉玩家的英雄”这句话的语义本来就需要你自己说明清楚才行。因为每个玩家可以拥有多于一个的英雄

什么才算“玩家的英雄”?事先记录好的单位?玩家当前选中的单位?还是只要是玩家拥有的英雄,随便挑一个就好?
回复

使用道具 举报

发表于 2012-7-30 13:21:03 | 显示全部楼层
例如:
[trigger]Pick
    事件
        玩家 - 玩家 1 (红色) types a chat message containing Hello World! as 完全匹配
    环境
    动作
        Set Group = (Units in (Playable map area) matching (((Owner of (Matching unit)) 等于 (Triggering player)) and (((Matching unit) is an illusion) 等于 FALSE)))
        Set Unit = (Random unit from Group)
        英雄 - Create (Random level -1 item-type) and give it to Unit
        游戏 - Display to (All players) the text: Input "Hello World!...
[/trigger]
Item.w3m (17 KB, 下载次数: 10)
回复

使用道具 举报

发表于 2012-7-30 19:43:46 | 显示全部楼层
居然用“HellowWorld!”该怎么吐槽呢……
回复

使用道具 举报

 楼主| 发表于 2012-7-31 22:35:10 | 显示全部楼层
还是不会啊。豆沙的怎么是英文?
回复

使用道具 举报

发表于 2012-7-31 23:24:38 | 显示全部楼层
晕,楼主同学没看到下面的地图下载吗
回复

使用道具 举报

发表于 2012-8-1 01:31:17 | 显示全部楼层
另:我是沙包,不是豆沙,5L是触手
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 点一下

本版积分规则

Archiver|移动端|小黑屋|地精研究院

GMT+8, 2024-5-21 01:53 , Processed in 0.207768 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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