本帖最后由 shuimi126 于 2010-8-7 11:44 编辑
本人为了让这些知识不再失落,花费了一点时间整理了我国FLMOD界先驱KeeperCN的教程帖子
以下内容均来自www.goodbj.com
目录:
1-2L 战斗机装备解说
3L 武器的修改
4L 武器的贩卖设置
5L-9L 建立一个新基地
10L --11L 建立一个新派系
12L 更改npc的护盾
13L 派系友好度的变化修改办法
14L 基地建立补充说明
15L 激活无法使用的跳跃洞
16L 战斗机座舱的修改
17L 更改多人游戏中玩家的出生地 初始金钱 初始飞船
18L (作者为本论坛的vengxcne) 任务赏金的调整 新星系的添加 在宇宙增添中物体的设置 以及部分战斗机hardpoint教程
装备
装备意义解说
推进器意义解说
打开 X:\游戏所在目录\DATA\EQUIPMENT\st_equip.ini 档案,你可以看到下面的叙述:
Thruster
nickname = ge_s_thruster_01 ; nickname,不是新增就别改变它
ids_name = 263737 ; 这个不多说
ids_info = 264737 ; 这个不多说
DA_archetype = equipment\models\st\ku_thruster.3db ; 推进器模型,全部的都用同样的
material_library = equipment\models\ku_equip.mat ; 推进器模型,全部的都用同样的
HP_child = HpConnect ; 连接点
hit_pts = 1000 ; 可承受的打击力
explosion_resistance = 0.500000 ; 爆炸时会受到多大损害 1 = 极易受损,0 = 刀枪不入
debris_type = debris_normal
parent_impulse = 20
child_impulse = 80
volume = 0.000000 ; 占据多少货仓空间
mass = 10
max_force = 72000 ; 能够给你多大推力前进,每 600 为 1 公里/秒。
particles = gf_ge_s_thruster_01 ; 推进器的尾焰轨迹
hp_particles = hpthrust ; 推进器的尾焰轨迹
power_usage = 165 ; 使用多少能量
lootable = true ; 可被丢弃在太空
separation_explosion = sever_debris
LODranges = 0, 20 ; 物品细节能见度,如果这个数值过大,3D 的品值会降低。
护盾意义解说
ShieldGenerator
nickname = shield03_mark05_fr ; nickname,不是新增就别改变它
ids_name = 263873 ; 这个不多说
ids_info = 264873 ; 这个不多说
DA_archetype = equipment\models\st\li_refractor_shield.3db ; 护盾模型
material_library = equipment\models\li_equip.mat ; 护盾模型
HP_child = HpConnect ; 连接点
hit_pts = 1405 ; 可承受的打击力
explosion_resistance = 0.500000 ; 爆炸时会受到多大损害 1 = 极易受损,0 = 刀枪不入
debris_type = debris_normal
parent_impulse = 20
child_impulse = 80
volume = 0.000000 ; 占据多少货仓空间
mass = 10
regeneration_rate = 44.900002 ; 护盾再生速度
max_capacity = 2020 ; 护盾容量
toughness = 20.200001
hp_type = hp_freighter_shield_special_5 ; 可挂载护盾的战机挂载点等级
offline_rebuild_time = 12 ; 再度恢复联机时间
offline_threshold = 0.150000
constant_power_draw = 0 ; 使用多少能量
rebuild_power_draw = 10 ; 当被击溃时使用多少能量回复
shield_type = S_Positron01 ; 护盾类型 (Positron=阳电子,Gravitational=引力子,Molecular=分子)
shield_collapse_sound = shield_offline ; 被击溃音效
shield_rebuilt_sound = shield_rebuilt ; 恢复音效
shield_hit_effects = 0, gf_ku_shield01 ; 正常时被击中特效
shield_hit_effects = 100, gf_ku_shield02 ; 下降 100 容量特效
shield_hit_effects = 500, gf_ku_shield03 ; 下降 500 容量特效
separation_explosion = sever_debris
LODranges = 0, 20 ; 物品细节能见度,如果这个数值过大,3D 的品值会降低。
lootable = true ; 可被丢弃在太空
如果你看到护盾类型是 npc_shield##_mark## ,表示它们是计算机 NPC 使用的,虽然它们没有再生能力,但容量却远远大于玩家使用的类型,编辑它们使其有再生能力会使战斗更为有趣。
让所有上述物品在基地里贩卖必须编辑下面的叙述:
MarketGood = shield01_mark01_lf, 0, -1, 10, 10, 0, 1
MarketGood = shield01_mark02_lf, 0, -1, 10, 10, 0, 1
MarketGood = shield01_mark03_lf, 2, -1, 10, 10, 0, 1
MarketGood = shield01_mark04_lf, 6, -1, 10, 10, 0, 1
MarketGood = shield01_mark05_lf, 10, -1, 10, 10, 0, 1
MarketGood = shield01_mark06_lf, 15, -1, 10, 10, 0, 1
MarketGood = shield01_mark07_lf, 20, -1, 10, 10, 0, 1
MarketGood = shield01_mark08_lf, 25, -1, 10, 10, 0, 1
MarketGood = shield01_mark09_lf, 30, -1, 10, 10, 0, 1
MarketGood = shield01_mark010_lf, 36, -1, 10, 10, 0, 1
MarketGood = shield01_mark01_hf, 0, -1, 10, 10, 0, 1
MarketGood = shield01_mark02_hf, 0, -1, 10, 10, 0, 1
MarketGood = shield01_mark03_hf, 2, -1, 10, 10, 0, 1
MarketGood = shield01_mark04_hf, 6, -1, 10, 10, 0, 1
MarketGood = shield01_mark05_hf, 10, -1, 10, 10, 0, 1
MarketGood = shield01_mark06_hf, 15, -1, 10, 10, 0, 1
MarketGood = shield01_mark07_hf, 20, -1, 10, 10, 0, 1
MarketGood = shield01_mark08_hf, 25, -1, 10, 10, 0, 1
MarketGood = shield01_mark09_hf, 30, -1, 10, 10, 0, 1
MarketGood = shield01_mark010_hf, 36, -1, 10, 10, 0, 1
MarketGood = shield01_mark01_fr, 0, -1, 10, 10, 0, 1
MarketGood = shield01_mark02_fr, 0, -1, 10, 10, 0, 1
MarketGood = shield01_mark03_fr, 2, -1, 10, 10, 0, 1
MarketGood = shield01_mark04_fr, 6, -1, 10, 10, 0, 1
MarketGood = shield01_mark05_fr, 10, -1, 10, 10, 0, 1
MarketGood = shield01_mark06_fr, 15, -1, 10, 10, 0, 1
MarketGood = shield01_mark07_fr, 20, -1, 10, 10, 0, 1
MarketGood = shield01_mark08_fr, 25, -1, 10, 10, 0, 1
MarketGood = shield01_mark09_fr, 30, -1, 10, 10, 0, 1
MarketGood = shield01_mark010_fr, 36, -1, 10, 10, 0, 1
MarketGood = shield02_mark01_lf, 0, -1, 10, 10, 0, 1
MarketGood = shield02_mark02_lf, 0, -1, 10, 10, 0, 1
MarketGood = shield02_mark03_lf, 2, -1, 10, 10, 0, 1
MarketGood = shield02_mark04_lf, 6, -1, 10, 10, 0, 1
MarketGood = shield02_mark05_lf, 10, -1, 10, 10, 0, 1
MarketGood = shield02_mark06_lf, 15, -1, 10, 10, 0, 1
MarketGood = shield02_mark07_lf, 20, -1, 10, 10, 0, 1
MarketGood = shield02_mark08_lf, 25, -1, 10, 10, 0, 1
MarketGood = shield02_mark09_lf, 30, -1, 10, 10, 0, 1
MarketGood = shield02_mark010_lf, 36, -1, 10, 10, 0, 1
MarketGood = shield02_mark01_hf, 0, -1, 10, 10, 0, 1
MarketGood = shield02_mark02_hf, 0, -1, 10, 10, 0, 1
MarketGood = shield02_mark03_hf, 2, -1, 10, 10, 0, 1
MarketGood = shield02_mark04_hf, 6, -1, 10, 10, 0, 1
MarketGood = shield02_mark05_hf, 10, -1, 10, 10, 0, 1
MarketGood = shield02_mark06_hf, 15, -1, 10, 10, 0, 1
MarketGood = shield02_mark07_hf, 20, -1, 10, 10, 0, 1
MarketGood = shield02_mark08_hf, 25, -1, 10, 10, 0, 1
MarketGood = shield02_mark09_hf, 30, -1, 10, 10, 0, 1
MarketGood = shield02_mark010_hf, 36, -1, 10, 10, 0, 1
MarketGood = shield02_mark01_fr, 0, -1, 10, 10, 0, 1
MarketGood = shield02_mark02_fr, 0, -1, 10, 10, 0, 1
MarketGood = shield02_mark03_fr, 2, -1, 10, 10, 0, 1
MarketGood = shield02_mark04_fr, 6, -1, 10, 10, 0, 1
MarketGood = shield02_mark05_fr, 10, -1, 10, 10, 0, 1
MarketGood = shield02_mark06_fr, 15, -1, 10, 10, 0, 1
MarketGood = shield02_mark07_fr, 20, -1, 10, 10, 0, 1
MarketGood = shield02_mark08_fr, 25, -1, 10, 10, 0, 1
MarketGood = shield02_mark09_fr, 30, -1, 10, 10, 0, 1
MarketGood = shield02_mark010_fr, 36, -1, 10, 10, 0, 1
MarketGood = shield03_mark01_lf, 0, -1, 10, 10, 0, 1
MarketGood = shield03_mark02_lf, 0, -1, 10, 10, 0, 1
MarketGood = shield03_mark03_lf, 2, -1, 10, 10, 0, 1
MarketGood = shield03_mark04_lf, 6, -1, 10, 10, 0, 1
MarketGood = shield03_mark05_lf, 10, -1, 10, 10, 0, 1
MarketGood = shield03_mark06_lf, 15, -1, 10, 10, 0, 1
MarketGood = shield03_mark07_lf, 20, -1, 10, 10, 0, 1
MarketGood = shield03_mark08_lf, 25, -1, 10, 10, 0, 1
MarketGood = shield03_mark09_lf, 30, -1, 10, 10, 0, 1
MarketGood = shield03_mark010_lf, 36, -1, 10, 10, 0, 1
MarketGood = shield03_mark01_hf, 0, -1, 10, 10, 0, 1
MarketGood = shield03_mark02_hf, 0, -1, 10, 10, 0, 1
MarketGood = shield03_mark03_hf, 2, -1, 10, 10, 0, 1
MarketGood = shield03_mark04_hf, 6, -1, 10, 10, 0, 1
MarketGood = shield03_mark05_hf, 10, -1, 10, 10, 0, 1
MarketGood = shield03_mark06_hf, 15, -1, 10, 10, 0, 1
MarketGood = shield03_mark07_hf, 20, -1, 10, 10, 0, 1
MarketGood = shield03_mark08_hf, 25, -1, 10, 10, 0, 1
MarketGood = shield03_mark09_hf, 30, -1, 10, 10, 0, 1
MarketGood = shield03_mark010_hf, 36, -1, 10, 10, 0, 1
MarketGood = shield03_mark01_fr, 0, -1, 10, 10, 0, 1
MarketGood = shield03_mark02_fr, 0, -1, 10, 10, 0, 1
MarketGood = shield03_mark03_fr, 2, -1, 10, 10, 0, 1
MarketGood = shield03_mark04_fr, 6, -1, 10, 10, 0, 1
MarketGood = shield03_mark05_fr, 10, -1, 10, 10, 0, 1
MarketGood = shield03_mark06_fr, 15, -1, 10, 10, 0, 1
MarketGood = shield03_mark07_fr, 20, -1, 10, 10, 0, 1
MarketGood = shield03_mark08_fr, 25, -1, 10, 10, 0, 1
MarketGood = shield03_mark09_fr, 30, -1, 10, 10, 0, 1
MarketGood = shield03_mark010_fr, 36, -1, 10, 10, 0, 1
MarketGood = ge_s_thruster_01, 0, -1, 10, 10, 0, 1
MarketGood = ge_s_thruster_02, 2, -1, 10, 10, 0, 1
MarketGood = ge_s_thruster_03, 4, -1, 10, 10, 0, 1
MarketGood = ge_s_thruster_04, 6, -1, 10, 10, 0, 1
现在我相信大家应该能够了解这些必备的知识了。
现在来编辑它的价格,打开 X:\游戏所在目录\DATA\EQUIPMENT\st_goods.ini 档案。
看看下面的叙述:
Good
nickname = ge_s_thruster_01 ; nickname,不是新增就别改变它
equipment = ge_s_thruster_01 ; equipment,不是新增就别改变它
category = equipment ; 所属类别
price = 500 ; 价格
item_icon = equipment\models\commodities\nn_icons\EQUIPICON_thruster.3db ; 图标档案
combinable = false ; 不允许你买一个以上
ids_name = 263737
ids_info = 264737
shop_archetype = equipment\models\st\ku_thruster.3db ; 推进器模型
material_library = equipment\models\ku_equip.mat ; 推进器模型
护盾与它非常相像,所以你必须有这些基础知识。
要增加它们你必须打开 X:\游戏所在目录\DATA\EQUIPMENT\market_misc.ini 档案。
每个星系跟基地有它自己的名称,New York 是 'Li01',而 Pittsburg 是 'Li01_02',现在让我们看看 Pittsburg。
搜寻下面的叙述:
BaseGood
base = Li01_02_base ; 这是 Pittsburg
MarketGood = co_gun01_mark01, 0, -1, 10, 10, 0, 1 ; 卖的武器
MarketGood = co_gun01_mark02, 2, -1, 10, 10, 0, 1
MarketGood = co_turret01_mark01, 2, -1, 10, 10, 0, 1
MarketGood = co_turret02_mark01, 0, -1, 10, 10, 0, 1
MarketGood = ge_s_thruster_01, 0, -1, 10, 10, 0, 1 ; 推进器 (一般的)
MarketGood = missile01_mark01, 0, 0.4, 10, 10, 0, 1 ; 飞弹发射器与弹药
MarketGood = missile01_mark01_ammo, 0, -1, 50, 50, 0, 1
MarketGood = missile01_mark02_ammo, 2, -1, 50, 50, 0, 1
MarketGood = missile01_mark03_ammo, 10, -1, 50, 50, 0, 1
MarketGood = missile01_mark04_ammo, 22, -1, 50, 50, 0, 1
MarketGood = missile01_mark05_ammo, 30, -1, 50, 50, 0, 1
MarketGood = missile02_mark01, 0, -1, 10, 10, 0, 1
MarketGood = missile02_mark01_ammo, 0, -1, 50, 50, 0, 1
MarketGood = missile02_mark02_ammo, 2, -0.200000, 50, 50, 0, 1
MarketGood = missile02_mark03_ammo, 10, 0.200000, 50, 50, 0, 1
MarketGood = missile02_mark04_ammo, 22, 0.400000, 50, 50, 0, 1
MarketGood = missile02_mark05_ammo, 30, 0.750000, 50, 50, 0, 1
MarketGood = missile03_mark01, 0, -1, 10, 10, 0, 1
MarketGood = missile03_mark01_ammo, 0, -1, 50, 50, 0, 1
MarketGood = missile03_mark02_ammo, 6, -1, 50, 50, 0, 1
MarketGood = missile03_mark03_ammo, 22, -1, 50, 50, 0, 1
MarketGood = missile03_mark04_ammo, 30, -1, 50, 50, 0, 1
MarketGood = cruise_disruptor01_mark01_ammo, 2, -1, 50, 50, 0, 1 ; 巡航破坏器弹药
MarketGood = cruise_disruptor01_mark02_ammo, 26, -1, 50, 50, 0, 1 ; 巡航破坏器弹药
MarketGood = torpedo01_mark01_ammo, 10, -1, 50, 50, 0, 1 ; 鱼雷弹药
MarketGood = torpedo01_mark02_ammo, 30, -1, 50, 50, 0, 1 ; 鱼雷弹药
MarketGood = mine01_mark01, 0, -1, 10, 10, 0, 1 ; 地雷
MarketGood = mine01_mark01_ammo, 0, -1, 50, 50, 0, 1
MarketGood = mine01_mark02_ammo, 2, -1, 50, 50, 0, 1
MarketGood = mine01_mark03_ammo, 10, -1, 50, 50, 0, 1
MarketGood = mine01_mark04_ammo, 22, -1, 50, 50, 0, 1
MarketGood = mine01_mark05_ammo, 30, -1, 50, 50, 0, 1
MarketGood = mine02_mark01, 0, -1, 10, 10, 0, 1
MarketGood = mine02_mark01_ammo, 0, -1, 50, 50, 0, 1
MarketGood = mine02_mark02_ammo, 6, -1, 50, 50, 0, 1
MarketGood = mine02_mark03_ammo, 16, -1, 50, 50, 0, 1
MarketGood = mine02_mark04_ammo, 26, -1, 50, 50, 0, 1
MarketGood = mine02_mark05_ammo, 30, -1, 50, 50, 0, 1
MarketGood = ge_s_repair_01, 0, -1, 100, 100, 0, 1 ; Nanobots 修护机器人
MarketGood = ge_s_cm_01, 0, -1, 10, 10, 0, 1 ; 反制武器发射器
MarketGood = ge_s_cm_01_ammo, 0, -1, 50, 50, 0, 1 ; 反制武器弹药
MarketGood = ge_s_cm_02_ammo, 2, -1, 50, 50, 0, 1 ; 反制武器弹药
MarketGood = ge_s_cm_03_ammo, 6, -1, 50, 50, 0, 1 ; 反制武器弹药
MarketGood = shield01_mark01_lf, 0, -1, 10, 10, 0, 1 ; 护盾
MarketGood = shield01_mark02_lf, 0, -1, 10, 10, 0, 1
MarketGood = shield01_mark01_hf, 0, -1, 10, 10, 0, 1
MarketGood = shield01_mark02_hf, 0, -1, 10, 10, 0, 1
MarketGood = shield01_mark01_fr, 0, -1, 10, 10, 0, 1
MarketGood = shield01_mark02_fr, 0, -1, 10, 10, 0, 1
MarketGood = ge_s_battery_01, 0, -1, 100, 100, 0, 1 ; 护盾电池
我们解释一下每行参数意义。
MarketGood = shield01_mark02_fr, 0, -1, 10, 10, 0, 1
1. 第一个参数是表示可购买的玩家等级
2. 第二个参数是表示所需的玩家名声
3. 第三个参数是表示一次可买多少 (弹药 = 50,武器 = 10)
4. 第四个参数是表示一次可卖多少
5. 未知
6. 把原设定价格乘以多少倍数
增加一个护盾你只要以你增加的护盾 nickname 覆盖 shields01_mark02_fr 叙述在护盾上,推进器一样。
我再把相关知识解释一下:
物品的等级通常以 mark## 部分表示。
lf 表示轻型战机,hf 表示重型战机,fr 表示运输机。
***************************************************************************
商品部分解释
market_commodities.ini 档案里表示商品的有无贩卖。
例一 (没有卖)
0, -1, 0, 0, 1, 2.250000
例二 (有卖)
0, -1, 150, 500, 0, 1.300000 (这些数值是在商品名称之后的)
现在我解释这些商品数值意义。
..0,... -1, .. 150, .. 500,.... 0, .. 1.300000
..1 ... 2 .. 3 .. 4 ... 5 .. 6
1) 通常都一样
2) 通常都一样
3) 如果是 0 表示这边没有卖它,如果是 150 表示有卖。
4) 如果是 0 表示这边没有卖它,如果是 500 表示有卖。
5) 如果是 1 表示这边没有卖它,如果是 0 表示有卖。
6) 这个基地的 买/卖 价格百分比
所以你只要按下面的格式即可更改该基地贩卖的物品:
BaseGood
base = (你想卖的基地名称)
MarketGood = commodity_(商品名称), 0, -1, #, #, #, #.#####
MarketGood = commodity_(商品名称), 0, -1, #, #, #, #.#####
MarketGood = commodity_(商品名称), 0, -1, #, #, #, #.#####
MarketGood = commodity_(商品名称), 0, -1, #, #, #, #.##### |