注册 | 登录

游侠NETSHOW论坛





查看: 6142|回复: 4
打印 上一主题 下一主题

[原创] 圣3MOD详细教程【兵种篇】 [复制链接]

帖子
1222
精华
1
积分
912
金钱
11487
荣誉
10
人气
5
评议
0
跳转到指定楼层
楼主
发表于 2010-1-10 11:50:14 |只看该作者 |倒序浏览
其实本不想太早放出教程的,一是怕游戏改的面貌全非,二是怕大家改后失去游戏乐趣...
基于以上两点,非改党请直接无视这帖吧


1.首先说下文件结构吧
  人物数据的调用
主要在Resources\下的 Profiles文件夹
  后缀名为char即为人物调用文件,文件名以 兵种名.char 为格式
如 elves_sundancer.char 就是太阳舞者MM的调用文件

下面做详细解释:

打开后为:

//Unit Profile
//

id                      "elves_sundancer";   
——————————————————兵种调用唯一标识id,与该文件名一致——————————————

unit_scene              "resources\\characters\\elves\\sundancer\\character_elves_sundancer.scene";
unit_scene_lod  "resources\characters\elves\sundancer\character_elves_sundancer_lod.scene",10;

ko_model                "resources\\map_celtic_cross.g";

———————————游戏场景调用,模型调用,行为定义,装备代换等等(复杂,初改请无视)—————————————————————————

——————————————————————从此开始——————————————————————————
icon                    "resources\\characters\\elves\\sundancer\\icon_sundancer.t";
damage_icon              "resources\\characters\\elves\\sundancer\\icon_sundancer_damage.t";

subicon                  "resources\\characters\\elves\\sundancer\\icon_sundancer_small.t";
damage_subicon          "resources\\characters\\elves\\sundancer\\icon_sundancer_small_damage.t";

layout_icon              "resources\\characters\\elves\\sundancer\\icon_sundancer_node.t";
capital_icon            "resources\\characters\\elves\\sundancer\\icon_sundancer_capital.t";
dialog_icon              "resources\\characters\\elves\\sundancer\\icon_sundancer_dialog.t";
leader_icon              "resources\\characters\\elves\\sundancer\\icon_sundancer_ring.t";

select_icon              "resources\\interface\\portrait_elves_battle_border_select.t";
aselect_icon            "resources\\interface\\portrait_elves_battle_border_animated.t";
ap_icon                  "resources\\interface\\portrait_elves_ap_bar.t";


—————————————到此结束,为界面头像资源调用—————————————————————————



————————————————以下————————————————————————
fxproc                  "lighting";
fxscene                  "resources\\fx\\Arena_Spells\\elves\\sundancer\\fx_elves_sundancer_spell.scene";
fxcast                  "resources\\fx\\Attacks\\elves\\sundancer\\fx_elves_sundancer_cast.scene";
fxscene_ko              "resources\\fx\\Arena_FX\\Death\\fx_die_elves.scene";
fxlevelup    "Resources\\FX\\Arena_FX\\LevelUp\\fx_elves_levelup.scene";

centerbone              "Spine1";

————————到此 为攻击施法动作定义及模型资源调用,渲染类型,骨架定义等等(也较复杂,初改无视)———————————————————————————————————————————————————————



——————————————————————————————————————————————
move_speed                2.5;
shadowbox                -2.5, -0.5, -2.5, 2.5, 2, 2.5;
shadowz                  5;
nodesx                  1;
nodesz                  1;


——————————————这一段为兵种速度定义,阴影等————————————————————————————————

————————————————————以下为重点————————————————————————————

#include                "desc\\elves_sundancer_desc.char";
————————————————————————兵种描述文件调用,完全可以自创兵种了————————————

#include                "sound\\elves_sundancer_sound.char";
————————————————兵种声音调用,MM一口老头大叔口音还是老爷爷叫出AV女声,随你—————————————————————————————

#include                "stats\\elves_sundancer_stats.char";
—————————————————————最后是重中之重,兵种初始数据调用—————————————————————————————————————————————————


2.兵种数据调用
Resources\Profiles\stats 下各文件,
        后缀名也为char,文件名以 兵种名_stats.char 为格式
如elves_sundancer_stats 为太阳舞者MM的兵种初始数据文件:
下详,
打开后为:

//Char stats Profile for elves_sundancer

unit_class caster;——————————————兵种职业类型,战士还是其它———————————————————
unit_side "elves";—————————————————种族类型,人类,咀咒还是精灵———————————————
attack_type "divine";—————————————攻击属性,神圣(生命),火,水等等——————————————


level 22;    ———————————————————初始等级———————————————————
side elves;
exp_base -2;    —————————————————升级经验基准值,快慢等———————————————————


//stats
str 24;
int 50;
dex 46;
agi 45;
vit 23;


ini 10;—————————————————初始魔攻基准—————————————————————
def 3;——————————————————初始护甲值———————————————————————


——————————————————————初始属性值————————————————————————

action_point 1;
apmax 3;
apmax_worldmap 15;

atck_range 30;———————————————攻击范围—————————————————————

//resists
res_earth 10;
res_fire 65;
res_air 30;
res_water 10;
res_mind 0;
res_death 0;


—————————————————各种抗性—————————————————————

//Additional
skill "skill_buff_fire";——————————————技能“预告”,在此其实无法增加————————————————
healer 1;——————————————————————————————————————————————
atck_buff;
atck_all;


—————————————————以上三行说明为全体友方治疗————————————————————————

cost 2460;——————————————————兵种雇佣价格————————————————————
skill_grid "elves_sundancer";——————————————兵种技能组定义——————————————————
viewradius 10;—————————————————————————兵种视野———————————————————


//Modifi
DamStrMod ;
DamDexMod ;
DamIntMod 1.5;
DexMod 1.5;
AgiMod 1.5;
VitMod 30;
——————————以上为兵种升级数据,为最终叠加,如VitMod 30为每升一级加30HP————————————————————————————————————————————————————————————————————


3.技能组定义...

打字好累,下次再说吧


4.具体修改例子
请参考个人早期修改的【mod】【新兵种】吧:

使用道具 举报

帖子
600
精华
0
积分
301
金钱
5155
荣誉
0
人气
0
评议
0
沙发
发表于 2010-1-10 14:19:58 |只看该作者
=口=
感謝樓主分享
@@
好詳細!!
我要好好學習學習.......
改兵去............

使用道具 举报

帖子
1222
精华
1
积分
912
金钱
11487
荣誉
10
人气
5
评议
0
板凳
发表于 2010-1-27 14:03:48 |只看该作者
等过几天有空再补上技能组部分吧..........................

使用道具 举报

帖子
11
精华
0
积分
6
金钱
211
荣誉
0
人气
0
评议
0
地板
发表于 2012-1-4 12:33:42 |只看该作者
楼主,我等得好久啊,还没见技能组定义出来。楼主,麻烦抽出些时间把技能组定义教程写出来吧,我一直想自己做做圣3的mod,但自己是小白,希望楼主大大能把教程详细的发出来,感激不尽啊

使用道具 举报

帖子
11
精华
0
积分
6
金钱
211
荣誉
0
人气
0
评议
0
5#
发表于 2014-8-14 11:25:41 |只看该作者
hansenal 发表于 2010-1-27 14:03
等过几天有空再补上技能组部分吧..........................

至今人没学会技能修改,挖坟跪求技能组部分教程

使用道具 举报

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

手机版|Archiver|游侠NETSHOW论坛 ( 苏ICP备2023007791号 )

GMT+8, 2025-8-19 18:50 , Processed in 0.291556 second(s), 12 queries , Gzip On, Memcache On.

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

分享到