佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

楼主: 麦丝天堂

【WarEditor】War3的WorldEditor研究所

[复制链接]
发表于 6-4-2006 02:31 PM | 显示全部楼层
原帖由 399288 于 6-4-2006 12:49 PM 发表
Creating Heroes with Triggers

The last thing we need to do is add a trigger to create the heroes. If you are more advanced in trigger code, you can store your hero types and regions inside an ar ...

那么就要问你,你要做怎样的选hero方式,DDay那样,Dota Allstars那样呢?

我认为他讲的是类似dday那样的选hero方式。

The last thing we need to do is add a trigger to create the heroes. If you are more advanced in trigger code, you can store your hero types and regions inside an array. This example will keep it rather simple. We will have one trigger for every available hero. It is a little more work, but once you finish the first trigger, you can copy it and alter it for the next hero.

我们要做的呢是建立一个array variable来存放hero的类型和regions,这样就只需一个trigger来弄全部英雄。如果不是用array呢,你就要每个hero一个trigger,不过你可以copy了paste那个trigger给别的hero,然后修改特定的actions


When the wisp steps inside a circle, we will first check to see if that hero is taken. If not, we will create the hero, mark that hero as taken, and remove the wisp from the game. For visual purposes, we will hide that hero on the map so that players know it is unavailable.

假设那个wisp是选hero的units,当它进入一个circle,我们要先检查看那个hero是否被选了,如果没有就create那个hero给player,把那个hero标记起来被选了,然后把wisp remove掉,为了视觉效果我们用hide的action把hero隐藏起来,令那些玩家知道hero已被选掉了。

My trigger will create the hero in the center of the map. If you want to create them somewhere else, you could make a new region somewhere in your map. Typically, players and teams have different starting places, and you will either one or two regions to place the heroes. Lastly, if you wanted to add a -repick system later, all you would have to do is unhide that type of hero on the map, and set our variable back to zero for that hero.

    * Create a trigger for every hero available in your map.
    * Hide the hero on the map.
    * Create a hero for the owner of the wisp.
    * Remove the wisp or chooser unit from the game.

My variable corresponds with my regions. Hero one is region one, and hero two is region two.

trigger会在map的中央放hero,一个region放一个hero。
检查regions就知道玩家要选什么hero了
如regions[1] = hero[1]那样
回复

使用道具 举报


ADVERTISEMENT

发表于 6-4-2006 05:42 PM | 显示全部楼层
你的-repick是一次性的还是多次性的?????如果多次性的就要考虑考虑
回复

使用道具 举报

发表于 6-4-2006 07:16 PM | 显示全部楼层
我是照他那里说的来做。

Repick Hero
    Events
        Player - Player 1 (Red) types a chat message containing -repick as An exact match
        Player - Player 2 (Blue) types a chat message containing -repick as An exact match
        Player - Player 3 (Teal) types a chat message containing -repick as An exact match
    Conditions
    Actions
        Unit Group - Pick every unit in (Random 1 units from (Units owned by (Triggering player) matching (((Matching unit) is A Hero) Equal to True))) and do (Actions)
            Loop - Actions
                Unit - Remove (Picked unit) from the game
        Camera - Pan camera for (Triggering player) to ((Picked player) start location) over 0.00 seconds
        Unit - Create 1 Choose A Hero for (Triggering player) at (Center of WispRegions[(Player number of (Triggering player))]) facing (Center of Start Region )


上面的我都做得一摸一样,除了最后一句。

Unit - Create 1 Choose A Hero for (Triggering player) at (Center of WispRegions[(Player number of (Triggering player))]) facing (Center of Start Region )


这边不知这么弄。。。

If you want, you can make the hero available again, by unhiding the unit and setting Pick_Taken[] to 0.

接着这句话不知道要放在哪里。。。

放了又好象不对,因为在repick时,unit是hide的,picktakenset去0的话,就只可以实行在hero1的身上。。。

不管这么去set,只要你选的不是、hero1,其他的都没办法重选。

回复

使用道具 举报

发表于 6-4-2006 07:41 PM | 显示全部楼层
是不是每一个hero都需要一个variable呢??

hero1就放1

hero2就放2。

Integer

Array set成1。

是这样的吗??

回复

使用道具 举报

发表于 7-4-2006 07:18 PM | 显示全部楼层
LIFE SETTING大概已经完成了..
现在去试试....
回复

使用道具 举报

evil90 该用户已被删除
发表于 7-4-2006 10:54 PM | 显示全部楼层
利害利害ohohoh!!!!
回复

使用道具 举报

Follow Us
Urahara-Kisuke 该用户已被删除
发表于 7-4-2006 11:14 PM | 显示全部楼层
*My computer don't have chinese programme for now, cause it just been formated*

My suggestion,

DotA's map its not very easy to been edited, it got some weird protection, last time i tried to edit it too, but i failed at last and it used me a lot of time.

But, hope you can sucess your work, fully support here~

*Off Topic* I thinking of joining Cari's BN server, where can i DL it? I finding around here but haven't get it yet
回复

使用道具 举报

发表于 8-4-2006 06:42 AM | 显示全部楼层
昨天去试了一下.....
结果没有CREEPS出来.....
以为我放对了的说.....
回复

使用道具 举报


ADVERTISEMENT

发表于 8-4-2006 06:52 AM | 显示全部楼层
原帖由 麦丝天堂 于 15-3-2006 07:50 PM 发表
War3的WarEditor研究所


第一次看到有精华的贴,又有TUMBDOWN的...好强
回复

使用道具 举报

发表于 8-4-2006 12:16 PM | 显示全部楼层
有谁能教我这么做买item的shop。?


我用做herotavern的方法来做itemshop,结果itemshop里没有item。


或许是trigger做错了吧。。。

回复

使用道具 举报

发表于 8-4-2006 01:28 PM | 显示全部楼层
原帖由 399288 于 8-4-2006 12:16 PM 发表
有谁能教我这么做买item的shop。?


我用做herotavern的方法来做itemshop,结果itemshop里没有item。


或许是trigger做错了吧。。。


做item shop是不用trigger的。

1. 先在Units那边选一个作为Sell Item的units。
2. 在那个units那边的Abilities - Normal加入
    a. Invulnerable (Neutral)
    b. Sell Items
    c. Select Unit
    d. Shop Purchase Item
   的能力。
3. 在那个units那边的Techtree - Items Sold内加入你要买的items
4. 把在其他Techtree 内的所有东西remove掉。
回复

使用道具 举报

发表于 8-4-2006 07:47 PM | 显示全部楼层
原帖由 Urahara-Kisuke 于 7-4-2006 11:14 PM 发表
*My computer don't have chinese programme for now, cause it just been formated*

My suggestion,

DotA's map its not very easy to been edited, it got some weird protection, last time i tried to  ...


My suggestion,
請看版規
謝謝~
回复

使用道具 举报

发表于 8-4-2006 07:49 PM | 显示全部楼层
原帖由 399288 于 8-4-2006 12:16 PM 发表
有谁能教我这么做买item的shop。?


我用做herotavern的方法来做itemshop,结果itemshop里没有item。


或许是trigger做错了吧。。。



複製你每次買scoll的那閒
然後paste and edit買東西的list
懶惰詳細下去。。。
回复

使用道具 举报

发表于 9-4-2006 07:39 AM | 显示全部楼层
最新发现...=.=
我试的时候按ISEEDEADPEOPLE.....
结果发现到CREEPS直接出现在终点...=.=
回复

使用道具 举报

Urahara-Kisuke 该用户已被删除
发表于 9-4-2006 09:53 AM | 显示全部楼层
原帖由 deagle-lim 于 8-4-2006 07:47 PM 发表


My suggestion,
請看版規
謝謝~


对不起啦大哥,我当时真的没华语Programme嘛。
回复

使用道具 举报

发表于 9-4-2006 01:20 PM | 显示全部楼层
原帖由 deagle-lim 于 8-4-2006 07:47 PM 发表


My suggestion,
請看版規
謝謝~

這個分數每次被你賺掉。下次我也要勒。你看分數那麽少,分一點給我拉
回复

使用道具 举报


ADVERTISEMENT

Urahara-Kisuke 该用户已被删除
发表于 9-4-2006 01:22 PM | 显示全部楼层
原帖由 爱新觉罗。JJ 于 9-4-2006 01:20 PM 发表

這個分數每次被你賺掉。下次我也要勒。你看分數那麽少,分一點給我拉


什么意识?叫别人看版规会加分?
回复

使用道具 举报

发表于 9-4-2006 01:44 PM | 显示全部楼层
原帖由 Urahara-Kisuke 于 9-4-2006 01:22 PM 发表


什么意识?叫别人看版规会加分?


不是啦,他的意思是发帖会加分,不过给别人发了!!
回复

使用道具 举报

Urahara-Kisuke 该用户已被删除
发表于 9-4-2006 01:59 PM | 显示全部楼层
原帖由 monster5105 于 9-4-2006 01:44 PM 发表


不是啦,他的意思是发帖会加分,不过给别人发了!!


那我以后要抢先一步了。
回复

使用道具 举报

发表于 10-4-2006 12:04 PM | 显示全部楼层
谢谢wing_s给予的指点迷精。

原来做itemshop是那么的简单。




如果杀了个enemy unit,enemy 身上的掉落的钱这么弄??


这个internet并没有指示,wing_s能再次指点吗??

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 15-6-2024 02:56 PM , Processed in 0.107595 second(s), 22 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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