|
Viewing Tutorial: Basic ICE Usage and Offset Basics
教程:ICE的基础用法与Offset的基础知识
by nirvanajung
作者:nirvanajung
1. basic knowhow for before the beginning
1。关于开始前的准备的基础知识
first , running Ice and start load custom isript.bin files or load Default file on File menus of Ice
首先,运行ice然后在ice菜单载入isript.bin文件或读取默认文件
then u can start scripting now~!
那么你就可以开始编译了
select unit in Header taps or typing units id number what u want change thing and click to search by header btn
选择要编辑的单位或输入要编辑的单位的id数字
then u can see unit images in GRP prieview Tap
接着你就可以在GRP预览栏看单位的影像
u can see each offset numbers of headers in Entry Header tap that number is what header used that scripts contents
你可以看到Entry Header栏看到offset numbers of headers即header用的脚本的代码
so if u change offset number then that header action's scripts will change to that numbers script
所以如果你更改offset代码那么对应的header的脚本就会变成对应代码的
2. way to change and goto offset
2。更改offset
ok, i will explain to an example is "Terran marines" in this section
OK,我会在这节用Terran marines为例子解释
goto "Animation Scripts" tap and are there many animaitons headers
去Animation Scripts栏可以看到那里有很多animaitons headers
that animations exist each offset numbers
那些animations中存在很多offset代码
u can see find that numbers on "script offset" line that position of layout is lower of right side
你能在右侧看到script offset的脚本代码
ok first , choose "Initial Animation" in Animations drop down list
OK 首先,在Animations下拉栏选择Initial Animation
each code line has own offset number too like animation headers can find that number on "op Offset:" line
每条code line都有他单独的offset代码让像animation headers的能在op Offset:线上找到它
let's see the " Terran marine's Initial Animation"
我们来看看Terran marine的Initial Animation值
- CODE
- place active underlay [images.dat] 240 at vertical offset 0
- play frame 68
- wait either 63 or 75 ticks [random]
- using randomizer value[?] 25 , jump to offset 28964
- using randomizer value[?] 128 , jump to offset 28942
- Go to offset 28928
复制代码
u can find three offset codes in here that offset codes deferent operation to eachother but both action will be goto other offse
你能在这里找到三个不同的offset codes
check offset codes in scripts contents
在offset codes内检查脚本内容
"jump to offset 28964" -> this will go to other animations at randomly , ramdom time is values number -> "value[?] 25 "
"jump to offset 28964" -> 这会随即跳到别的animations, 随即时间就是values数码 -> "value[?] 25 "
and if u want find that offset number where are going ?
你是否要找到下一个offset代码的项
typing that number "28964" in "Goto offset" input box and click "goto" btn
在Goto offset栏中输入 "28964"然后点击"goto"按钮
then u can see changed srcipt contents and find changed number "28964" on "scripts offset" line
那么你就能看到改了的脚本内容然后能在scripts offset线上找到28964
that mean is srcipt offset goto one after the other codes must exist where are going next offset code or finishing operation codes
这个意思是offset脚本进入到另一个代码需要有下一个offset代码或完成的operation代码
let's see other offset codes at last line
我们来看看最后一列的其他offset代码
"Go to offset 28928" -> this code mean is where are going next animation when this script action finished
"Go to offset 28928" -> 这个代码的意思就是完成了这个脚本动作后的下一个animation
and u can go that offset directly, select that code line and just double click
你能直接地去到那个offset 选择代码线然后双击
then u can jump to that offset
接着你就能跳到那个offset
"Go to offset" operation always can jump by that ways
"Go to offset" 动作总能这样子跳
if u want change jump offset ? then select offset number area and click one time,
如果你想跳到指定offset 那么选择offset代码然后单击
then number color be changes other color and u can edit that number
然后代码的颜色变成另一种颜色 你就可以编辑那个代码了
Remember, offset number is linked animations contents so u may write number without error in animation
记住,offset代码是与animation内容联系的所以在编辑代码时不能在animation出现错误
( this mean is that unit must be can running all operation codes with changed offset)
(这个的意思就是那个单位一定要能在所有的代码中运行)
see "Go to offset 28928" again,
重新看"Go to offset 28928"
and double click that line and jump to that offset
双击那条线然后飞到那个offset
then scripts change showed that deleted upper codes some lines as compared with Initial Animation
然后删除掉顶端的几行代码脚本就会和之前的animation作比较
that is "Other" header in IceCC (when unit has not doing anything action for a while)
那就是在IceCC里的"Other" header (当单位在一下子什么动作都不干)
if u want change that scripts codes then u edit codes ur self firsthand
如果你想在更改代码时也更改脚本代码
or otherway is goto "Entry Header" tap and change Initial Animation
或其他方法就是进入 "Entry Header" 栏然后更改初始animation的值
section's number as other unit's "Initial Animation" offset number such as zealots etc...
节的代码和其他单位的"Initial Animation"offset代码 比如 zealots等等
累死了~~终于搞完了~~俄。。。全手工翻译。。。累死了 |
|