青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

天行健 君子當自強而不息

Controlling Players and Characters(28)

 

Building the Master Character List

You create and use a master character list (MCL) much like you use the master
item list (MIL) to define objects in your game. Before using them in your game,
you need to design every character, complete with appearance (3-D mesh) and
functionality (abilities and attributes). This character information is stored in the
sCharDef structure.

The MCL is stored just as the MIL, as a sequential data file (see Figure 16.12).

Whenever a character is needed within the game, the MCL is referenced; each
character is assigned a number that tells which character to use. As a character is
needed, you load the specific data structure.

Now take a look at the sCharDef structure:

typedef struct sCharDef         // character definition
{
    
// misc data
    char    name[32];
    
long    class_index;        // class index of character
    long    money;
    
float   speed;              // movement speed
    long    magic_spell[2];     // bit flags to mark known spells
    long    mesh_index;         // mesh/anim index to load

    // abilities
    long    agility;
    
long    attack;
    
long    defense;
    
long    resistance;         // magic resistance ability
    long    mental;
    
long    to_hit;             // chance to hit

    // attributes
    long    health_points;      // number of health points (maximum)
    long    mana_points;        // number of mana points (maximum)
    long    level;              // experience level
    long    exp;                // experience points

    // inventory
    char    item_filename[MAX_PATH];    // char ics filename
    long    weapon;
    
long    armor;
    
long    shield;
    
long    accessory;

    
// droppping item data
    long    drop_chance;        // % of dropping item when killed
    long    drop_item;          // item index to drop when killed

    // attack/magic chances and effects
    float   attack_range;
    
float   charge_rate;        // countdown rate to attack
    long    to_attack;          // percent to attack
    long    to_magic;           // percent to use magic
    long    effect_chance;      // chance of attack effect occuring
    long    effects;            // bit flags of attack effects
} sCharDef;

Just like the master item list, the MCL stores only minimal information about a
character. Because multiple characters of the same type can exist in the game
world at one time (for example, ten instances of a Goblin character), the
per-instance data is kept separate. This per-instance data includes the coordinates
of the characters, their current health and mana points, and so on.

Although the structure is well commented, a few things might not make immediate
sense. In addition to the abilities and attributes that you’ve already read about, you
have the miscellaneous, inventory, dropping item, and attack/magic chances and
effects. Table 16.6 describes what these variables do for the character definition.

Configuring a single character definition is as simple as filling in the blanks, but
when it comes to defining 100 characters, things can quickly become complicated.
What you need is an MCL Editor.

 

The MCL Editor

You’re probably used to these editors by now, and this one is just as easy to use as
other editors. If you haven’t done so already, go ahead and run the MCLEdit application.

Following snap shows the MCL Editor dialog box.

The MCL Editor can handle up to
256 characters—each numbered from 0 to 255. Each character is shown in the list
box. To work with the MCL Editor, follow these steps:

1. Double-clicking a character in the list or clicking the New button brings up
the Modify Character dialog box.

2. In the Modify Character dialog box, enter the appropriate character information
in each field. You can alter a character’s Name, Class, Health Points,
Mana Points, Level, Experience, Money, ability values, known Spells, and
Mesh information.

3. Once you finish filling in a character’s information in the Modify Character
dialog box, click OK. You’ll return to the Master Character List Editor dialog
box.

4. Click the Save button to bring up the Save MCL File dialog box.

5. Enter a filename and click the Save button to write the MCL file to disk.

6. To Load a file, click the Load button (in the Master Character List Editor
dialog box), enter a filename, and click OK.

You’ve read about each bit of the character definition. Now, it’s time to enter that
information into the appropriate places. When it comes to spells, highlight the
spell number you want the character to know automatically. Those spell numbers
relate directly to your MSL, so you might want to run the MSL Editor and MCL
Editor side by side to compare the information.


posted on 2007-12-03 21:54 lovedday 閱讀(235) 評論(0)  編輯 收藏 引用


只有注冊用戶登錄后才能發表評論。
網站導航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


公告

導航

統計

常用鏈接

隨筆分類(178)

3D游戲編程相關鏈接

搜索

最新評論

青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            欧美肥婆在线| 亚洲一区二区三区视频| 亚洲少妇自拍| 亚洲三级毛片| 久久久青草婷婷精品综合日韩 | 免费精品视频| 国产片一区二区| 亚洲国产一区在线| 在线观看成人小视频| 亚洲欧美日韩中文视频| 宅男噜噜噜66国产日韩在线观看| 久久夜色精品国产噜噜av| 欧美一区二区三区在线视频| 欧美日韩和欧美的一区二区| 亚洲国产日韩一区二区| 在线观看不卡av| 欧美在线你懂的| 久久国产色av| 国产在线成人| 欧美在线观看日本一区| 欧美专区亚洲专区| 国产精品午夜电影| 中文精品视频一区二区在线观看| 一区二区成人精品| 欧美久久久久久久久| 亚洲福利一区| 日韩视频一区二区三区| 免费成人性网站| 亚洲第一精品夜夜躁人人躁| 最新亚洲一区| 欧美精品一区二区三| 亚洲精品欧美日韩| 一区二区三区视频观看| 欧美午夜寂寞影院| 亚洲视频一二| 久久精品在线免费观看| 国产在线精品一区二区夜色| 久久狠狠久久综合桃花| 麻豆成人在线观看| 亚洲国产欧美一区二区三区丁香婷| 久久综合狠狠综合久久激情| 亚洲国产精品一区二区第一页| 亚洲精品女av网站| 欧美午夜无遮挡| 欧美亚洲三级| 欧美国产激情二区三区| 日韩一级免费观看| 国产精品久久久久9999吃药| 欧美亚洲综合在线| 欧美不卡激情三级在线观看| 99精品99久久久久久宅男| 国产精品成人国产乱一区| 亚洲欧美日韩中文在线制服| 欧美成人xxx| 在线亚洲电影| 国产综合av| 欧美丰满少妇xxxbbb| 亚洲特黄一级片| 久久综合色播五月| 在线视频中文亚洲| 国产一区二区三区视频在线观看| 欧美二区在线| 欧美一区二视频| 91久久国产综合久久91精品网站| 亚洲摸下面视频| 亚洲国产日韩一级| 国产精品亚洲网站| 欧美暴力喷水在线| 亚洲午夜91| 91久久午夜| 久久免费视频在线观看| 亚洲网站在线| 亚洲国产合集| 国产日本欧美一区二区三区在线 | 欧美国产日韩一二三区| 亚洲欧美激情一区| 亚洲精品免费在线播放| 久久久久网址| 亚洲欧美另类国产| 99国产精品99久久久久久| 国产亚洲精品v| 国产精品高清在线观看| 久久在线视频| 欧美一级午夜免费电影| 99这里有精品| 亚洲精品国产精品国自产在线| 久久久精品2019中文字幕神马| 夜夜嗨av一区二区三区网站四季av| 黑人一区二区| 国产在线拍揄自揄视频不卡99| 欧美日韩国产欧| 免费视频一区| 久久亚洲精品一区| 久久久久成人网| 欧美一级二级三级蜜桃| 一区二区三区日韩欧美精品| 亚洲欧洲免费视频| 亚洲高清三级视频| 亚洲成人在线视频播放 | 国产精品嫩草影院av蜜臀| 免费在线视频一区| 久久蜜桃av一区精品变态类天堂| 午夜日韩在线观看| 亚洲欧美区自拍先锋| 中文国产成人精品| 在线亚洲美日韩| 99伊人成综合| 亚洲丝袜av一区| 亚洲女同性videos| 午夜在线成人av| 亚洲在线第一页| 午夜精品影院在线观看| 亚洲欧美另类中文字幕| 亚洲自拍都市欧美小说| 亚洲一二三区在线观看| 亚洲欧美一级二级三级| 亚洲欧美一区二区三区久久| 亚洲欧美日韩国产综合| 午夜在线电影亚洲一区| 欧美在线短视频| 久久久精品一区| 免费亚洲一区二区| 欧美精品久久99| 欧美私人网站| 国产色婷婷国产综合在线理论片a| 国产欧美日韩在线观看| 好吊色欧美一区二区三区四区| 在线日本高清免费不卡| 亚洲人被黑人高潮完整版| 亚洲精品综合精品自拍| 中文久久乱码一区二区| 性视频1819p久久| 麻豆精品网站| 日韩视频免费观看| 午夜精品理论片| 蜜桃av一区二区三区| 欧美人与禽性xxxxx杂性| 国产精品久久久久久久浪潮网站| 国产日产高清欧美一区二区三区| 黄网站免费久久| 日韩午夜中文字幕| 久久国产精品网站| 亚洲盗摄视频| 香蕉亚洲视频| 欧美激情第二页| 国产精品一区二区久久久久| 亚洲电影观看| 亚洲欧美综合v| 欧美激情成人在线| 亚洲综合第一| 欧美激情国产日韩| 韩国v欧美v日本v亚洲v| 日韩午夜av电影| 久久久久国产精品厨房| 91久久综合亚洲鲁鲁五月天| 亚洲欧美综合精品久久成人| 欧美成人一区二区三区在线观看 | 亚洲精品欧美日韩| 午夜精品亚洲| 91久久极品少妇xxxxⅹ软件| 性欧美精品高清| 欧美日韩一区二区三区免费| 在线精品视频一区二区三四| 午夜国产精品视频免费体验区| 欧美a级一区| 亚洲欧美日韩中文在线制服| 欧美另类女人| 亚洲激情网址| 老**午夜毛片一区二区三区| 亚洲天堂av高清| 欧美日本一区二区高清播放视频| 一区二区亚洲精品| 久久精品女人的天堂av| 亚洲视频狠狠| 欧美日韩视频免费播放| 亚洲国产综合在线| 欧美777四色影视在线| 欧美一区二区三区四区在线| 国产精品久久久久久久久久ktv| 91久久国产综合久久蜜月精品| 久久久精品日韩欧美| 亚洲午夜av| 国产精品欧美久久久久无广告| 一区二区三区免费看| 欧美大片一区二区| 久久久久亚洲综合| 国语自产偷拍精品视频偷| 久久精品夜色噜噜亚洲a∨| 亚洲尤物在线视频观看| 国产精品久久久久免费a∨| 国产精品99久久99久久久二8| 91久久嫩草影院一区二区| 欧美v日韩v国产v| 亚洲另类在线视频| 亚洲精品裸体| 欧美日韩一区视频| 亚洲欧美成人在线| 亚洲欧美日韩精品久久亚洲区| 国产精品视频免费观看| 午夜精品视频网站|