Script文件夹中各scp文件含义 (一)
——quests.scp篇
定义如下:
[quest 编号] 任务编号
name=Sharptalon's Claw//任务名
desc=//任务提示
objectives=//任务目标提示
levels=25 30//任务限制等级
zone=39//任务区域
quest_flags=08//任务标记类型
src_item=16305//任务完成所需物品编号
reward_xp=2450//任务奖励经验
reward_choice=6076 1//任务奖励物品选择:编号,数量
deliver=182 1//交付物品:编号,数量
reward_gold=25//任务奖励金钱:铜币
kill=6 10//任务需要杀目标:编号,数量
——pages.scp篇
定义如下:
[page 编号] 话语编号
next_page= 下一个话语的编号
text=话语内容
——spellcost.scp篇
定义技能学习需求,含义如下:
[spell 编号] //技能编号
reqspell=72 //学习本技能所需先学的技能编号
price=1100 //学习所需金钱,单位:铜币
npc训练师那里的限制吧。把所有的reqspell去掉,把price都改成1……
——items.scp篇
对装备的定义,含义如下:
[item 编号]
skill=0//熟练度
stackable=1//可堆叠数量
name=Worn Shortsword//名称
class=2//类型编号,对应defines.scp中定义
subclass=7//类别编号,对应defines.scp中定义
model=1542//模型编号
quality=1//品质 灰色 白色 绿色 蓝色 紫色 huang色 橙色 浅huang色
buyprice=35//买入价格
sellprice=7//卖出价格
inventorytype=21//存储类型
classes=07FFF//使用职业限制
races=01FF//使用种族限制
level=2//物品等级
reqlevel=1//需求人物等级
damage=1 3 0//伤害
delay=1900//延迟
language=1//语言
material=1//材质
sheath=3//属性值编号 对应defines.scp中定义
durability=20//耐久度
bonus=4 5 // 增加属性 类型 值 如 sta int spi 等
resistance1=341// 增加抗性值 如装甲 防火 防阴影 等
bonding=1 //绑定类型编号
spell=21978 0 0 30000 0 -1 //所具有的魔法
——gameobjects.scp篇
这个文件是对中出现的怪物的定义,其含义如下:
[gameobj 编号]
name=Old Lion Statue//物体名
type=2//物体类型 对应defines.scp中定义
model=6//所用模型
sound0=43//字面上是第一种声音 可能会作为别的用途
sound1=73//字面上是第二种声音 可能会作为别的用途
loot=765 1 //所掉落的物品编号 数量
——defines.scp篇
Script文件夹中的定义,都由defines.scp文件开始。这里定义了几乎所有东西的编号。首先我们来看看这个文件的内容。
按顺序是:
genders节:定义性别编号。
races节:定义种族编号。
classes节:定义职业编号。
stats节:定义属性编号。
powers节:定义能量类型编号。
schools节:定义抗性类型编号。
classes节:(注意和前面的区分)定义装备类型编号。
subclasses节:定义装备子类别编号。
itemtypes节:定义物品编号。
(ps:前面三个地方很容易搞混,不知道写的时候是怎么想的*_*)
sheath types节:定义武器属性编号,如单手,双手
slots节:定义放置槽编号 如 头上的 放置槽 编号是 0
creature types节:怪物类型编号
(接下来的节没有名称,这里以数字n来代替)
1节:世界语言定义编号
2节:技能(魔法)效果编号定义
3节:技能(魔法)动作模型编号定义
4节:人物状态编号定义
5节:物体编号定义
6节:表情编号定义
7节:人物动作动画编号定义
8节:物品动画编号定义
9节:动画的编号定义
10节:射箭动作的编号定义
11节:锁定类型编号
12节:技能训练师的编号定义
13节:改变形态的编号定义 包括 熊形 猫形 战斗防御姿势等
这个文件中定义了世界中几乎所有东西的编号,在下面的文件中出现的编号,都可以在这里找到。要注意的是,编号采用了2种方式。
首先是在每一节下面都是从1开始编号的。对应的调用应该是在scp文件中对应变量,写出这个编号。如spell,在spellcost.scp文件中,写[spell 1]就表示这个魔法的效果对应2节下的编号1,同时对应3节下的编号1。
第二种是几节都拥有顺序的编号,7至10节的动画编号定义就是这样。在第7节中,是写出了0x0一直到0x86,8节中之写出了0x87,后面应该是使用得偏移量写的,如8节中写1就表示0x88。以此类推。
——classes.scp篇
classes.scp包含对于种族的初始化定义。以暗夜精灵为例,其含义如下:
startmap=1 // Kalimdor 出生地图编号
startzone=14 // Teldrassil 出生地点编号
startpos=10311.3 832.463 1326.41 1.0 出生地点位置
startstats=17 25 19 20 20 // Str, Agi, Stm, Int, Spr 初始化属性值
bodymale=55 推测是男性身体高度值
bodyfemale=56 推测是女性身体高度值
skill=98 300 300 // Language: Common 指种族语言
spell=668 // Language: Common 指spell编号
skill=113 300 300 // Language: Darnassian 指种族语言
spell=671 // Language: Darnassian 指spell编号
spell=019CB // Attack 指spell编号
spell=81 // Dodge 指spell编号
skill=162 1 300 // Unarmed
spell=203 // Unarmed 指spell编号
spell=20580 // Shadowmeld 指spell编号
spell=20582 // Quickness 指spell编号
spell=20583 // Nature Resistance 指spell编号
spell=20585 // Wisp Spirit 指spell编号
// Range Attacks 远程攻击
spell=75 // Auto Shot 指spell编号
spell=2764 // Throw 指spell编号
skill=45 1 300 // Bows
spell=264 // Bows 指spell编号
skill=46 1 300 // Guns
spell=266 // Guns 指spell编号
skill=176 1 300 // Thrown
spell=2567 // Thrown 指spell编号
上面的定义中,spell是指数据库中技能魔法的编号,而skill是指的熟练度。
skill中3个数值的表示 技能编号 当前值 最大值
——areatriggers.scp篇
areatriggers.scp文件包含世界跳转的位置。
其含义如下:
[areatrigger 编号]
note=注释 有注释则无效
pos=所属地图 x坐标 y坐标 z坐标
topos=目标地图 目标x坐标 目标y坐标 目标z坐标
totrigger=目标转换点
对于一个转换点topos和totrigger 应该只能存在一个。而大多数时候,都是直接指定totrigger
bodymale=55 推测是男性身体高度值
bodyfemale=56 推测是女性身体高度值
这个好像是模型编号
Items.scp文件详解
class:
0, "药剂" //Potion
1, "容器";
2, "武器";
3, "unknown";
4, "装备"
5, "急救带";
6, "弹药";
7, "food"
8, "unknown";
9, "配方"
10, "unknown";
11, "箭袋";
12, 付魔 [item 18169]
13, "钥匙" // [item 18268]
14, "坐骑";
15, "?" // 任务书
class=2, subclass:
0, "单手斧";
1, "双手斧";
2, "弓";
3, "枪械";
4, "单手锤";
5, "双手锤";
6, "长柄武器";
7, "单手剑";
8, "双手剑"
9, "unknown";
10, "法杖";
11, "unknown";
12, "unknown";
13, "拳套";
14, "锄头";
15, "匕首";
16, "投掷武器";
17, "unknown";
18, "弩"; // [item 18388];
19, "魔杖"; // [item 18338]
20, "鱼竿";
class=4, subclass:
1, "布甲";
2, "皮甲";
3, "锁甲";
4, "板甲";
6, "盾";
class=4, inventorytype:
1, "头部";
2, "颈";
3, "肩部";
4, "衬衣"; // ?11840
5, "胸部";
6, "腰部";
7, "腿部";
8, "鞋";
9, "手腕";
10, "手";
11, "戒指";
12, "饰品"; [item 17064]
14, "盾";
16, "背部";
绑定: bonding
1, "拾取后绑定";
2, "装备后绑定";
bonus 附加属性类型:
3, "敏捷";
4, "力量";
5, "智力";
6, "耐力";
7, "精神力";
classes 掩码:
01, "战士"
02, "圣骑士";
04, "猎人";
08, "盗贼";
010, "牧师";
020, "";
040, "萨满祭师";
080, "法师";
0100, "术士";
0200, "";
0400, "德鲁耶";
Creature相关参数用于编写Creature数据
[Creature]
Level ——>等级
Bounding_radius ——>活动半径
Combat_reach ——>攻击距离
Attack ——>速度
Damage ——>攻击伤害
Name ——>名字
Type ——>属性
Guild ——>团队
Model ——>模型
Npcflags ——>怪物类型
Maxmana ——>最大SP
Faction ——>状态:属于哪方阵营 还是中立?
Unk3 ——>1,2为elite精华级;3为Boss,等级500;4未知
Unk4 ——>
Loot ——>掉落物品
Flags1 ——>标记
Flags ——>标记
Size ——>体型大小
Quest ——>任务编号
Qusetscript ——>任务对应的tcl名
Sell ——>出售物品
Train ——>教授技能
speed=1.0 ——>移动速度
199为16进制数,转为10进制数即可(用计算器转)
199,FFFFFFFF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"鹰身人",0,0,0,F001E,
3,FFFFFFFF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"矮人(玩家)",0,0,0,F001E,
F,FFFFFFFF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"迪菲亚盗贼(艾泽拉斯)",0,0,0,F001E,
1B,FFFFFFFF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"劈颅巨魔",0,0,0,F001E,
26,FFFFFFFF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"食人魔",0,0,0,6F001E,
2E,1D,FF,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,"斯通纳德兽人",0,0,0,F001E,
36,12,D,B2,40,0,0,0,0,0,C1C,FFFF5BF0,FA0,0,11,6,11,0,1D5,0,0,0,0,"侏儒",0,0,0,F001E,
3D,FFFFFFFF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"达拉然",0,0,0,F001E,
51,10,82,4D,10,20,0,0,0,0,C1C,FFFF5BF0,1F4,FA0,11,6,11,11,43,0,0,0,0,"雷霆崖",0,0,0,F001E,
1,FFFFFFFF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"人类(玩家)",0,0,0,F001E,
12,FFFFFFFF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"暗皮豺狼人",0,0,0,F001E,
29,FFFFFFFF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"荆棘谷地精",0,0,0,F001E,
38,FFFFFFFF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"血色十字军",0,0,0,6F001E,
47,FFFFFFFF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"希尔斯布莱德民兵",0,0,0,6F001E,
52,FFFFFFFF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"冰木巨魔",0,0,0,6F001E,
32,FFFFFFFF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"红龙",0,0,0,F001E,
261,24,FF,28,0,0,1DF,400,0,0,0,7D0,0,0,0,0,0,0,0,0,0,0,0,"塞纳里奥议会",0,0,0,F001E,
275,25,FF,0,0,0,0,0,0,0,1F4,0,0,0,0,0,0,0,0,0,0,0,0,"断矛巨魔",0,0,0,F001E,
29E,FFFFFFFF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"Beast - Cat",0,0,0,F000E,
2A0,FFFFFFFF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"Beast - Crocilisk",0,0,0,F000E,
2A6,FFFFFFFF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"Beast - Wind Serpent",0,0,0,F000E,
2A7,FFFFFFFF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"Training Dummy",0,0,0,F000E,
2C5,27,FF,0,0,0,0,0,0,0,0,0,0,0,14,0,0,0,0,0,0,0,0,"Battleground Neutral",0,0,0,F000E,
3B,4,FF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"瑟银兄弟会",0,0,0,F001E,
2ED,2A,FF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"Hydraxian Waterlords",0,0,0,F000E,
302,FFFFFFFF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"Gizlock's Charm",0,0,0,F000E,
48,13,4C,B2,1,0,0,0,0,0,C1C,FFFF5BF0,FA0,0,11,6,11,0,1D5,0,0,0,0,"暴风城",0,0,0,F001E,
135,FFFFFFFF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"蝎子",0,0,0,F001E,
136,FFFFFFFF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"蝙蝠",0,0,0,F001E,
137,FFFFFFFF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"泰坦",0,0,0,F001E,
149,FFFFFFFF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"工头费苏勒",0,0,0,F001E,
15D,5,FF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"拉文霍德",0,0,0,F001E,
185,FFFFFFFF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"Gnomeregan Bug",0,0,0,F000E,
1AD,FFFFFFFF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"火刃氏族",0,0,0,F001E,
211,D,FF,0,0,0,0,0,0,0,C8,0,0,0,0,0,0,0,0,0,0,0,0,"银色黎明",0,0,0,F001E,
24D,1B,B2,4D,0,0,0,0,0,0,FFFF5BF0,0,0,0,6,0,0,0,0,0,0,0,0,"冬刃豹训练师",0,0,0,F001E,
289,FFFFFFFF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"管理者埃克索图斯",0,0,0,F001E,
29D,FFFFFFFF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"Beast - Carrion Bird",0,0,0,F000E,
29F,FFFFFFFF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"Beast - Crab",0,0,0,F000E,
2A2,FFFFFFFF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"Beast - Owl",0,0,0,F000E,
2A3,FFFFFFFF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"Beast - Scorpid",0,0,0,F000E,
2A4,FFFFFFFF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"Beast - Tallstrider",0,0,0,F000E,
2A5,FFFFFFFF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"Beast - Turtle",0,0,0,F000E,
2EE,FFFFFFFF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"Sulfuron Firelords",0,0,0,F000E,
5,FFFFFFFF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"亡灵(玩家)",0,0,0,F001E,
6,FFFFFFFF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"牛头人(玩家)",0,0,0,F001E,
7,FFFFFFFF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"生物",0,0,0,6F001E,
8,FFFFFFFF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"侏儒(玩家)",0,0,0,F001E,
9,FFFFFFFF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"巨魔(玩家)",0,0,0,F001E,
E,FFFFFFFF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"怪物",0,0,0,6F001E,
10,FFFFFFFF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"河爪豺狼人",0,0,0,F001E,
11,FFFFFFFF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"赤脊山豺狼人",0,0,0,F001E,
商业版发布站程序下载:发布站程序下载: