找回密码
 立即注册
查看: 3308|回复: 4

便捷实用的WE小技巧-Handy WE Tips

[复制链接]
发表于 2006-6-1 18:39:48 | 显示全部楼层 |阅读模式
转自http://www.wc3campaigns.net/showthread.php?t=56334
翻译在2楼.P.S.:不是我翻译的...[em03]

〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓

This thread is composed of information compiled from a similar thread started by Whitehorn in the Triggers and Scripts forum, focusing on information specific to the General Development forum. I will attempt to keep this stickied thread current by incorporating suggestions on regular basis and cleaning up the posts. Please make all suggestions in this thread; don't post other threads about it and please don't PM me with the suggestions. If a topic is sufficiently large, I'll give it its own post in this thread and link to it from the first post. Note that this is not a source of tips for triggering.

Navigating in the World Editor
To manipulate the camera in the main World Editor window:
To rotate the camera, hold CTRL and the right mouse button and move the mouse. Move right to rotate clockwise and left to rotate counter-clockwise. Move up to rotate the camera up, and down to rotate down.
The mousewheel zooms in and out.
Contributed by Whitehorn.

In the distance in the world editor, there is a "blackness". This is because it does not show the map after a certain distance to conserve memory. If you need to view a certain distance away, you can hold down CTRL and move the mousewheel to change the distance at which the "blackness" starts. Moving the mousewheel forward brings the "blackness" closer, while moving backward pushes it away.
If you don't have a mousewheel, hold CTRL and SHIFT and then press the up or down arrows to change this in the same way.
Contributed by Milkman and Gitlich.

To use game fog and see it in the WE, go to Scenario>Map Options and select "Use Terrain Fog", and then go to View>Fog Effects.
Contributed by Milkman.

To view the entire map as from an eagle's eye, go to Advanced>View Entire Map. Be warned, doing this puts a large amount of strain on your computer, since it's showing every element of the map at the same time. If you try this on a slow computer, it may lag too badly or freeze. Doing this is only recommended if you want to get a screenshot of your complete map.
Contributed by Aznwhore and nathanmx.

To view a camera's motion while in the editor, select it in the Camera Palette. This lets you avoid having to play the map for a simple test.
Contributed by nathanmx.

Object Editor Tips
To copy objects (units, abilities, doodads, etc.) between maps, you can simply copy-and-paste. Open both maps in the World Editor, open the Object Editor, and select the object that you wish to copy. Right-click on the unit on the left (in the "tree") and select "Copy Unit" (or "Copy Doodad", etc.).
Switch to the other map using the Window menu. Right-click in the tree and select "aste Unit".
If you're pasting a unit with custom abilities, you'll want to have copied the abilities over first, because if you don't, the new map won't be able to find them when you copy over the unit, and then you'll have to set them manually later.
Contributed by Whitehorn.

To make new hero units, create a new custom unit using an existing hero as the base. Change the unit Stats, Art, Pathing, etc., to match the unit that you want to be a hero. Possibly the most critical field to change is "Art - Model File", which defines the model that the hero unit uses.
Contributed by Whitehorn.

To use a specific variant of a doodad model that has multiple variations, use the file path of the doodad, but add the variation number followed by .mdl at the end. The WE automatically adds these variations to the path when the doodad is set for multiple variations, but many other objects, like units, don't have support for multiple variations.
Contributed by |LMM|Duff_Man.

If you need to see the object id's for whatever reason, you can make them appear in the Object Editor by hitting CTRL+D or going to View>Display Values As Raw Data. This allows you to use the object id for things like spell tooltips, as well as for other possible uses.
Contributed by BANE.

If you're selecting a model for an object or spell effect, you can preview the model by using a combination of the Object Editor and the main WE window. In the Object Editor, under the object that you want to change, go to the model selection and change it to a model that you wish to preview. Switch back to the main WE window, and the model will appear in the window on the middle of the left side. This allows you to rotate and position the model to see it in any fashion, and lets you select the different animations that the model has.
Contributed by nathanmx.

When editing a field in the object editor, you can make it ignore its hardcoded boundaries by holding SHIFT while double-clicking on it. This will allow you to enter negative values as well as values above any upper limit set by the game designers. Bear in mind, however, that lots of abilities won't know how to use values outside their set limits properly. Feel free to experiment.
Contributed by AFB-DieHard.

In order to properly set an icon in the command card for any kind of object, it's necessary to understand the button matrix. The command card in the lower-righthand corner of the screen has four buttons across and three buttons down. However, the numbers of these buttons start with 0 instead of 1. Therefore, the x-axis (left to right) buttons are 0, 1, 2, 3 and the y-axis (top to bottom) buttons are 0, 1, 2. By way of explanation, the smashed orc in the following diagram is in position 1,2 (x=1, y=2).
   
   
    :)
Contributed by Panto.

Map-Making Tips
To raise and lower doodads in the map, hold CTRL and press Page Up or Page Down.
Contributed by Milkman.

If you want to change the location of a doodad which has had its height changed manually, uncheck Advanced>Reset Fixed Object Heights, or else it will snap back to the level of the terrain.
Contributed by LegolasArcher.

To make rivers and bodies of water with smooth edges, make sure that Advanced>Enforce Water Height Limits is unchecked, and then paint deep water over the area where the river will be. Then, paint over the water using the "Increase One" terrain tool. Now you have plain ground with water underneath it (crazy!), so you can use the "Lower" tool to slope the ground into the water, making a nice river.
Contributed by Milkman.

You can make a river that appears to be flowing rapidly by placing Waterfall doodads over it and stretching them so that the water rushes quickly sideways.
Contributed by BananaTwist.

You can place doodads on top of each other by making them ignore collision. This can be accomplished by holding SHIFT while placing the doodad. However, two doodads cannot have the same center point.
Contributed by Dark Illidan and Milkman.

You can change the rotation of any object on the map by selecting the object, holding down CTRL and the left mouse button, and moving the mouse. However, some objects are only allowed to face in a few directions.
Contributed by Wyvern_8, SoulReaver, and Panto.

Destructible doodads can be set as dead by selecting the doodad and hitting DELETE. These doodads can be resurrected with triggers.
Contributed by Voi.

You can deselect anything that you have selected by pressing SPACE. Pressing SPACE again will re-select what you have just deselected.
Contributed by Milkman and Panto.

To quickly move an object or region, select it, hold ALT, and then left-click wherever you want it to be moved to.
Contributed by Mighty3k.

Good Mapping Practices
Save and rename your map, or make a backup copy in a different directory, often. If anything goes wrong (like your program crashes or computer freezes), this allows you to start working again without much data lost. Since the World Editor can crash while you're saving your map and make the map file unreadable, it's wise not to just save over the same map file all the time.
Contributed by BANE and Panto.

Always right click on things! There's tons of useful stuff that you'll never see, just waiting to make life easier. For example, when editing skills, you can use the right-click menu option "Auto Fill Levels" to increment information automatically.
Contributed by BANE.

If you've got a slow computer and are experiencing lag problems in the WE, sometimes deleting the player start locations will clear this up for you. Just be sure to add them back in before you're done.
Contributed by Wyvern_8.

Try out new maps and new tools all the time. Seeing how other mappers and programmers do things can open your mind to new ideas for spells and systems. Even if you can't access a map, just seeing how something happens in-game can give you good ideas.
Contributed by BBDino.

Don't try to make a map based on what you think will be popular. There's no gaurantee that it will, even if you do a good job. Make maps that you think are fun to yourself, and do things that you enjoy doing. This may be the key to having fun with the map-making process.
Contributed by BBDino.

Make sure that your World Editor does not auto-save every 5 minutes.
Contributed by Whitehorn.

If your map becomes corrupted for any reason, remember that using the File>Test Map feature saves the map to a separate file, and you can get your map back from that.
Contributed by zotax.

While using the File>Test Map feature, the map will use the same random "seed" every time that you play it, which means it won't really be random at all. You can set it to use a truly random "seed" by going to File > Preferences > Test Map and unchecking "Use Fixed Random Seed".
Contributed by BBDino.

Don't work on one map for too long at a time; take breaks.
Contributed by TheGameFreak.

Hotkeys
Look up hotkeys for yourself in the File>Configure Controls menu. You can also change them and define things that don't have default hotkeys here. However, this menu is only available for Windows 2000 and XP.
Contributed by nathanmx and Gitlich.

Ctrl+d turns on the object ID for everything in the Object Editor.
Contributed by BANE.

x, in the main WE window, changes to Letterbox view.
Contributed by nathanmx.

v, in the main WE window, changes to Game view.
Contributed by Aznwhore.

c, in the main WE window, changes to the Camera view.
Contributed by Aznwhore.

CTRL+SHIFT+c, in the main WE window, snaps to the Camera angle, without changing to Camera view.
Contributed by Skwee.

Print Screen takes a screenshot either in the main WE screen or in-game. Screenshots can be pasted into an image program or accessed as files from the Warcraft 3\Screenshots\ directory.
Contributed by Panto.

CTRL+a selects every object on the map of the type of the palette which you're using.
Contributed by johnfn and Panto.
 楼主| 发表于 2006-6-1 18:40:54 | 显示全部楼层
http://www.infor.org/~n1048/WESelfStudy/GoodArticles/WE_Tips.htm

WE常用小技巧
By Danny

一般
先大致決定好座標再畫圖,這樣畫出的圖會比較準。尤其要畫一張對稱的地圖時,定座標的動作更是不可少
善用剪下(Ctrl+X)、複製(Ctrl+C)、貼上(Ctrl+V)、刪除(Delete):這幾個Windows常用指令在WE也是處處行得通,可以省下很多時間
Ctrl+↑↓可拉遠拉近鏡頭(如果你的滑鼠有滾輪,旋轉滾輪也可);Ctrl+←→可左右旋轉鏡頭
撰寫更新歷史和注意事項:WE可用的空間有限,建議在觸發編輯器下開一個資料夾名為「資料」,裡面加入一條名為「更新歷史」的觸發,將它轉成JASS並且停用之(Disable;快速鍵Ctrl+I),然後就可以隨便寫了;「注意事項」同理
在WE中複製-貼上中文時,要先轉成中文輸入法再複製,要貼上時也要先轉成中文輸入法再貼上。否則可能會出現亂碼。
WE可以同時打開多個地圖,進行地圖間的資料轉移。可以從功能表的Window選擇地圖,然後選定要複製的東西並複製,再從Window選擇要貼上的地圖貼上東西,非常方便!!
WE常會有為數不少的功能要測試,建議大家自己設計一張小型的、測試功能專用的地圖來測試。不要每次想測什麼都直接加到自己寫的一張很大的地圖裡測,這樣速度是差很多的。

物件擺設
選取單位按住Ctrl再用滑鼠點擊一個地方,可以直接改變單位的面對方向
選取飾物按PageUp或PageDown可垂直上下移動
選取飾物並按下數字區的12346789可微調飾物位置,甚至放到滑鼠不容易放到的地方
善用編輯器的取代單位和取代飾物功能
不同種類的區域可以設成不同的顏色以利辨識
可以用物件管理器(F11)找尋物件,並且做檢視和刪除
物件編輯
利用種族、戰役(Campaign)、特殊(Special)為單位分類;物品或其它同理
選取一個物件,按下複製再按下貼上,就可以快速地以它為底創造出一個新物件
觸發
沒人規定一定要用英文,能寫中文的地方可以盡量使用中文
暫時不用的觸發或觸發中的一行指令可以先停用(Ctrl+I、Ctrl+F)而不必急於刪除
可以用物件管理器(F11)找尋你要的觸發或變數,以及檢視它們相互調用的情形,尤其可以輕易看出是否有變數未被觸發使用。這在研究他人的地圖時尤其有用 !
可以設計一些作弊碼以利測試;作弊碼建議限制單機使用以免你忘了停用而讓別人發現和濫用:
 Init
 Events
  Map initialization
 Conditions
 Actions
  Custom script: set udg_IsSingleGame = bj_isSinglePlayer

這是判斷是否為單人遊戲的設定,其中IsSingleGame是自己定的變數。這裡是直接撿現成,用b社已判斷好的變數值,如果你要自己計算玩家數也可以。
  Debug Level Up
 Events
  Player - Player 1 (Red) types a chat message containing -level as An exact match
 Conditions
  IsSingleGame Equal to True
 Actions
  Unit Group - Pick every unit in (Units currently selected by (Triggering player)) and do (Hero - Set (Picked unit) Hero-level to 99, Show level-up graphics)

這是典型的作弊碼寫法,應該不用多作解釋吧?
 
多利用註解,或者用註解功能畫分隔線,日後修改會較方便,不會自己看了都一頭霧水。註解的原則基本上就是「把自己當作是讀者」來寫,越詳細越好。除非日後不會再修改這個地圖、很快就能做好、或者沒有保護程式怕被盜改等特殊原因,否則筆者建議大家養成加上註解的習慣。
暫存變數是一個相當實用的技巧,用得好可以簡化複雜的動作,通常像實數型的用x、y、z;整數用a、b、c;點用P1、P2、P3;單位用TempUnit;玩者用TempPlayer;物品用TempItem
利用副程式:不同觸發可以用Trigger - Run <Trigger> (checking(ignoring) conditions)互相調用。利用這點,可以把常用的一連串動作設計成沒有Events的觸發當作副程式。然後在主要的觸發用Trigger - Run <Trigger>進行呼叫,以增加便利性,也較方便修改。
善用Add Event:如果你要把一些特定的單位加入日後的事件,可以考慮用Add Event。最典型的範例如樹木復活。
使用單行JASS設定區域變數,以解決一般變數在等待中被修改的問題。要這麼做只要學三個函數就夠了:
local [變數名稱]................................必須寫在最前面
local [變數名稱] = [變數初始值]........必須寫在最前面
set [變數名稱] = [變數值]

技巧上來說:
Custom script: set 區域變數 = udg_全域變數
Wait
Custom script: set udg_全域變數 = 區域變數
使用單行JASS設定「本機玩者」以便對特定玩者播放音效或者執行類似動作
在暫時不用的JASS語句前加上//以達到停用單行JASS的目的。
對於一些想在GUI觸發中直接使用,但是必須用JASS取得的函數值,可以用在初始化時記錄在變數中,例如:
 Init
 Events
  Map initialization
 Conditions
 Actions
  Custom script: set udg_IsSingleGame = bj_IsSinglePlayer
  Custom script: set udg_LocalPlayer = GetLocalPlayer()
  Custom script: set udg_Locust = 'Aloc'

如此要用的時候就輕鬆很多:
Unit - Add Locust to (Triggering unit)
If (LocalPlayer Equal to Player 1 (Red)) then do (Sound - Play BlizzardTarget1 <gen>) else do (Do nothing)
程度高一點的可以學習有關記憶體洩漏的問題,以優化地圖,減低不必要的延遲和資源浪費
技能製作
使用隱藏單位達到合併技能效果、單體技群體化、一般技改為自動施展等
利用有蝗蟲技能的單位做特效,以便做出不同大小、高度、顏色、透明度的特效效果
使用Channel(連結)做為觸發技能的基底
使用Spell Book(魔法書)做出多項選擇的技能
隱藏被動技圖示:把被動技放在Spell Book內,把Spell Book用觸發Disable,然後添加Spell Book給部隊,部隊就會得到隱藏的被動技。
使用暴風烏鴉(Storm Crow Form)技能以便用觸發改變非飛行單位的飛行高度。如果不想看到圖示,可用Disable Ability
使用漂浮文字做出字幕效果,一般方法是:創造、設位移、設時限、設壽命、設衰退點
使用觸發加入特效和音效,以增加技能的華麗度
利用科技需求做為技能的限制。例如要讓英雄變身後就不能用技能,可以把它的技能加入一個科技需求:[變身前的英雄]
※注意是否允許科技重疊(單玩家多個重覆英雄的情形)。
使用觸發Enable/Disable Ability做為技能的限制,和科技需求不同的是,被停用的技能不會顯示、不能學習,而未達科技需求的技能仍會顯示出圖示和說明,也可以學習。
※注意是否允許科技重疊(單玩家多個重覆英雄的情形)。
利用Turn On/Off以及時間事件,做出間隔時間短的細微動畫(卡通原理)
※注意是否支援多重施法
使用觸發技能時要注意技能可否重學、可否重設冷卻時間(有些技能牽涉到變數記錄,不能在一次技能生效期間施展第二次)、可否改變施法者的所有權、可否一個玩家多個施法者、可否用Spell Shield……等等可能造成錯亂的狀況
回复

使用道具 举报

发表于 2006-6-1 18:58:19 | 显示全部楼层

谢谢

谢谢
回复

使用道具 举报

 楼主| 发表于 2006-6-1 19:02:26 | 显示全部楼层
除了说谢谢就不会做其他了...[em03]
虽然是转帖也总是心血啊...[em07]
回复

使用道具 举报

发表于 2006-6-13 00:57:49 | 显示全部楼层
也太复杂了。。有没有傻瓜教程之类的简单一点点的。。这个也太高难了。
  鄙视YC。
回复

使用道具 举报

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

本版积分规则

QQ|Archiver|手机版|小黑屋|夜天使联盟论坛

GMT+8, 2026-11-19 05:34 , Processed in 0.021101 second(s), 18 queries .

Powered by Discuz! X5.0

© 2005-2025  技术支持 by 夜天使联盟.

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