找回密码
 点一下
查看: 2074|回复: 9

请教当玩家回车键输入某字符后如何给该玩家所属的英雄物品?就是如何转化问题?

[复制链接]
发表于 2007-2-10 12:58:25 | 显示全部楼层 |阅读模式
请教当玩家回车键输入某字符后如何给该玩家所属的英雄物品?就是如何转化问题?
我的本意就是:当玩家输入比如“我很丑但我很温柔”后,给该玩家所控制的英雄一个物品。
请高手指教
发表于 2007-2-10 14:15:16 | 显示全部楼层
[trigger]
Chat
    Events
        Player - Player 1 (Red) types a chat message containing 我很丑但很温柔 as An exact match
        Player - Player 2 (Blue) types a chat message containing 我很丑但很温柔 as An exact match
        Player - Player 3 (Teal) types a chat message containing 我很丑但很温柔 as An exact match
        Player - Player 4 (Purple) types a chat message containing 我很丑但很温柔 as An exact match
        Player - Player 5 (Yellow) types a chat message containing 我很丑但很温柔 as An exact match
        Player - Player 6 (Orange) types a chat message containing 我很丑但很温柔 as An exact match
        Player - Player 7 (Green) types a chat message containing 我很丑但很温柔 as An exact match
        Player - Player 8 (Pink) types a chat message containing 我很丑但很温柔 as An exact match
        Player - Player 9 (Gray) types a chat message containing 我很丑但很温柔 as An exact match
        Player - Player 10 (Light Blue) types a chat message containing 我很丑但很温柔 as An exact match
        Player - Player 11 (Dark Green) types a chat message containing 我很丑但很温柔 as An exact match
        Player - Player 12 (Brown) types a chat message containing 我很丑但很温柔 as An exact match
    Conditions
    Actions
        Hero - Create 国王之冠 +5 and give it to Hero[(Player number of (Triggering player))]
[/trigger]
其中Hero素unit型数组,保存每个玩家控制的英雄
回复

使用道具 举报

发表于 2007-2-10 14:17:41 | 显示全部楼层
英雄的话用枚举好了,枚举玩家的英雄单位组。然后取第一个。
回复

使用道具 举报

 楼主| 发表于 2007-2-10 14:18:15 | 显示全部楼层
那请问下,HERO事先不用set hero=...命令吗?
回复

使用道具 举报

发表于 2007-2-10 14:21:46 | 显示全部楼层
这个就是选英雄时的工作料...
某玩家选英雄后把该英雄保存到数组中...
回复

使用道具 举报

发表于 2007-2-10 14:32:23 | 显示全部楼层
[trigger]
新的触发器 001
    事件
        玩家 - 玩家 1  (红色) 当输入以下内容的聊天信息 ga.wowar.com, 匹配方式为 完全匹配
    环境
    动作
        英雄 - 创建 经验之书 并且给 (First unit of group ((触发玩家) 的单位匹配条件 (((匹配的单位) 是 一个英雄) 等于 True (真))))
[/trigger]
回复

使用道具 举报

 楼主| 发表于 2007-2-10 14:48:38 | 显示全部楼层
并且给(first unit....),()内的内容我怎么做到跟你一样呀?只有last created unit,trigger  unit等等,没有first unit?
回复

使用道具 举报

发表于 2007-2-10 15:19:18 | 显示全部楼层
振兴WE
回复

使用道具 举报

 楼主| 发表于 2007-2-10 15:24:39 | 显示全部楼层
您是说用振兴WE修改器才能有first unit吗?还是说我的问题太庸俗了?实在不明白您的意思。。。
回复

使用道具 举报

 楼主| 发表于 2007-2-10 16:22:00 | 显示全部楼层
我用白银式神说的方法已搞定。请问7楼说的枚举是不是用for each integer a命令?我用这命令在初始选英雄设了HERO数组了,搞定。
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-3 03:10 , Processed in 0.049919 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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