|
先做一些科普:
单位ID:
Unit 229 = all unit(所有单位)
Unit 230 = men(人型单位)
Unit 231 = building(建筑)
Unit 232 = factory(工厂)
位置ID:
使用SCMD工具画Location时,默认的数字就是ID,如下图,ID:24
长度单位:
DWORD = 4
WORD = 2
BYTE = 1
附加资料
单位节点
40单位节点插件
Comment("EH_\Pn`<Pdghoe=FRmUGREglPgghogD7_n37F`3[48]5n6W0B0400;nhB6@0:oR0Odd03hB40`00P7m`07@B3kI7I?H4QIRZJ`0@3hE\0`00RT<<?>EdAScSM`\hAf@?QEP3003[=ccVM@d?]TMTmX1hVV\02>\P?>Me3@nfAfCfP7RJJ`0@j`llj7DA3kI7I?J0N9Y[020?Q1l3002:0c`=M@n:Cd`j3EbdJ`0?Q@X3000l4G@]?0]g1CQ7C>\NSDS^P?T3Ma`?]\1Z4IUNmoh?]Tm<3kJ9f6]A03_:3hGI0P00RT<8?3mdH0nfEf@?]dl]3kK0Jl0D1HQbD@1VRc2=5=GHWf\0IR]b16HkcPn<Z08006J;L0QV0c9V>lh?SiP2001VRg043kM?<FH[LPIV>lh?S8<2001VRe82IP=@36HkbPn?LP8008]349Vij0<00?Oi3kMK66X:FHU5m8_bRl>ImoTc`403mcU5m0n5Z`0003;9Po\:L`R;GOb:BaC[7H?k57<:ReglRd\DRPW[3X?k7X]Mo7<6Rd\DRP`?Q=9e1hP>jLH10020nP5e1`0>jKX10020nP9e4XX6>\5g2<H60>VW0@00:\7[6H3j0gD6R\7f;^\>P?X4MA0?]PH?]\VImoV81^V30@00P?X53hCe0@00P?X63hCb0@00P?X73hC_0@00P?X83hEO0@00>0h?Pl41003Y708003?9Pggd0Pn5\@0008?k2W<9Regl3kM;5>\OPo\DL`^;GOb;Ba@?]`W[3h?k7X]Mo7<7Rd\D3kL<3hCBM@QVR@kY3@40083j0GD8IP4>j@010020nP9e40ng1VHk`Gl4<l3[82_1jab0nP=e2FJ;1VH?[l7[3X3j17DA3kl63ko9VOOiIXT6jLL00020nPD?Q4\10020nPH?Q4L10020nPL?Q4<10020nPP?QJ<0001V>@h?S@@1003YG`4008?k2W<8ReglRd\Djaf3naAc2X]Mo8]358\8j`j3naj;GOac1X]358\<1hCBM160nP5e40<>PoWoMPF33_o[EXT>je:0nP9e3h\6>l5o1H<V0>]2:l7[5X3j0gD7R`H?[l7[2X3j17D9R`JImoV91^\TP?X53hBi0000P?X63hBf0000P?X73hBc0000P?X83hB`0000Rd<@PoP8O@F3n0]o7X]?28G9M@F8Cdg[4PnfAfB;18E`I6\0>lQn0hU728]348?hH7d5PoQSOa<?]TMTRh@0^89[03U7H7h3RDMPodGhPGghX`H000n5AOcoo`ng@aQZ2YUImoV3nPElC5mNFlVh1@0006J312@g`n]?>0iejn]9>0idiN]3>0ifgn\mIST>jn]V>@k[k6Hi3Wk>jb`i3WG8jb<i3WC2jadi3WjljaLi3Wffja4nXF2dJ`0nah182@000@0003?0@5mNFlW3", Player 1, Unit 0, 0, 0, 43, 0, 1);
准备工作:
Actions.rar
(2 KB, 下载次数: 2)
data.mpq
(788 KB, 下载次数: 3)
1)如果是SMC2.6,直接将data.mpq替换SMC目录下的data.mpq文件
2)如果不是SMC2.6,则用MPQ工具打开SMC目录下的data.mpq然后将Actions.lst文件替换掉里面那个
以上操作,请先备份data.mpq文件,否则因此产生的任何后果,概不负责
用法:
Comment("", 玩家ID, 单位ID, 位置ID, 地址, 值, 操作符, 43);
PS: 如果不做上述的准备工作,你是看不见 玩家ID和单位ID这两个参数的哦~
单位ID, 位置ID见上面科普;
玩家ID:
只支持:Current Player, Player 1 ~ Player 12, Force 1 ~ Force 4, All Players
地址 = 节点长度 * 1000 + 单位节点地址;
值 = 就是值咯~
操作符:
0 = 赋值
1 = 加
2 = 减
3 = 乘
4 = 除
5 = 判断等于
6 = 判断不等于
7 = 判断大于
8 = 判断小于
例子:
走到特殊地形会持续掉血:
test.scx
(10 KB, 下载次数: 1)
Comment("", Player 1, Unit 230, 0, 4008, 2560, 2, 43);
PreserveTrigger();
玩家1的所有人型单位进入到位置0持续扣血10点/次
|
|