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

天行健 君子當(dāng)自強(qiáng)而不息

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)  編輯 收藏 引用


只有注冊用戶登錄后才能發(fā)表評論。
網(wǎng)站導(dǎo)航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


公告

導(dǎo)航

統(tǒng)計(jì)

常用鏈接

隨筆分類(178)

3D游戲編程相關(guān)鏈接

搜索

最新評論

青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <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>
            国产精品狠色婷| 国产九区一区在线| 1024亚洲| 欧美日本国产| 99国产麻豆精品| 亚洲精品一区在线观看| 欧美日本在线看| 亚洲性感激情| 欧美一二三区在线观看| 国产日韩欧美高清| 你懂的成人av| 欧美国产免费| 亚洲欧美日韩一区二区三区在线观看| 亚洲一区二区久久| 国外成人在线| 亚洲国产成人精品视频| 欧美欧美全黄| 久久不见久久见免费视频1| 久久久久成人网| 99热这里只有精品8| 亚洲视频自拍偷拍| 在线不卡a资源高清| 亚洲国产精品视频一区| 国产精品久久久久av| 久久久亚洲人| 欧美国产视频一区二区| 欧美一级欧美一级在线播放| 久久aⅴ国产紧身牛仔裤| 亚洲人成7777| 新67194成人永久网站| 亚洲区在线播放| 午夜精彩国产免费不卡不顿大片| 亚洲黄色av| 亚洲欧美日韩国产中文 | 99国产精品私拍| 国产亚洲人成网站在线观看| 亚洲高清二区| 国精产品99永久一区一区| 日韩亚洲一区在线播放| 精品白丝av| 一区二区电影免费观看| 亚洲国产欧美精品| 性色一区二区三区| 国产精品99久久久久久宅男 | 在线亚洲伦理| 亚洲人成高清| 久久精品免费观看| 亚洲综合色丁香婷婷六月图片| 久久精品视频在线| 欧美一区二区三区在| 欧美精品午夜视频| 欧美成人a视频| 国产亚洲一区在线播放| 亚洲无限av看| 一本久道综合久久精品| 美女诱惑黄网站一区| 蜜臀99久久精品久久久久久软件| 国产精品视频导航| 在线亚洲免费| 亚洲视频在线一区| 欧美日韩视频专区在线播放 | 亚洲午夜精品在线| 欧美激情视频给我| 亚洲黄色成人久久久| 91久久亚洲| 欧美成人午夜激情| 亚洲激情av在线| 激情综合亚洲| 久久久久网站| 欧美激情成人在线| 91久久国产综合久久91精品网站| 久久精品动漫| 免费在线欧美视频| 91久久国产自产拍夜夜嗨| 久久影音先锋| 亚洲国产成人av好男人在线观看| 亚洲国产99| 欧美国产在线电影| 亚洲精品久久久久久下一站| 日韩一级不卡| 欧美性开放视频| 亚洲一区二区三区四区在线观看 | 一区二区高清视频| 欧美日韩日本视频| 亚洲一区二区av电影| 欧美一区二区精品久久911| 国产欧美日韩亚洲| 久久久999成人| 欧美成人免费播放| 一区二区三区 在线观看视| 欧美午夜精品久久久久久人妖| 亚洲午夜视频| 噜噜噜在线观看免费视频日韩| 在线观看日韩www视频免费| 欧美激情第3页| 亚洲影院在线| 欧美黄色片免费观看| 一区二区三区四区五区在线| 国产乱码精品一区二区三| 久久久噜噜噜久久中文字幕色伊伊| 蜜臀a∨国产成人精品| 日韩香蕉视频| 国产日韩欧美一区| 欧美国产亚洲另类动漫| 亚洲午夜羞羞片| 男女精品网站| 亚洲在线网站| 亚洲国产电影| 国产精品伦理| 欧美成人情趣视频| 欧美一区成人| 亚洲精选视频免费看| 久久午夜羞羞影院免费观看| 一本一本a久久| 一区二区在线视频播放| 国产精品高潮呻吟久久| 久久综合导航| 欧美一区二区三区在线观看| 亚洲激情影院| 蜜桃精品久久久久久久免费影院| 中文日韩在线视频| 亚洲精品国产精品乱码不99按摩| 国产欧美日韩一区二区三区| 欧美日本一区| 免费看的黄色欧美网站| 午夜视频久久久| 国产精品99久久久久久有的能看| 毛片一区二区| 久久久九九九九| 欧美一区二区三区在线免费观看| 亚洲毛片播放| 亚洲日本电影| 亚洲欧洲一区二区在线播放| 狠狠色噜噜狠狠色综合久 | 久久国产日本精品| 亚洲图片在线| 99www免费人成精品| 欧美成人国产| 蜜臀91精品一区二区三区| 欧美与黑人午夜性猛交久久久| 亚洲一区三区视频在线观看| 亚洲精品色婷婷福利天堂| 91久久久久久久久| 亚洲国产精品视频一区| 在线观看亚洲视频啊啊啊啊| 国模大胆一区二区三区| 国产视频一区免费看| 国产欧美日韩免费| 国产一区二区三区在线观看免费视频 | 久久久亚洲综合| 欧美淫片网站| 久久久九九九九| 久久久91精品国产一区二区精品| 欧美在线视频一区二区| 欧美亚洲三区| 久久久久国产免费免费| 久久久人人人| 欧美成人精精品一区二区频| 欧美激情精品久久久久久黑人 | 亚洲欧美日韩一区二区| 午夜精品久久久久| 久久精品国产一区二区三| 美女精品在线观看| 亚洲国产精品v| 日韩五码在线| 亚洲在线不卡| 久久三级视频| 欧美激情在线狂野欧美精品| 欧美日韩情趣电影| 国产欧美日韩视频一区二区三区 | 美女爽到呻吟久久久久| 欧美黄色网络| 国产精品色婷婷久久58| 激情综合色综合久久综合| 最新中文字幕一区二区三区| 一区二区三区久久精品| 久久久xxx| 亚洲激情自拍| 午夜亚洲精品| 欧美国产一区二区在线观看| 国产精品久久综合| 亚洲第一福利视频| 亚洲一区免费网站| 欧美mv日韩mv国产网站app| 99精品视频一区二区三区| 久久av一区二区三区| 欧美国产日韩在线观看| 国产三级欧美三级| 99热免费精品| 葵司免费一区二区三区四区五区| 亚洲精品久久久久久一区二区 | 亚洲精品婷婷| 久久精品视频在线免费观看| 欧美日韩视频一区二区| 一区在线免费观看| 亚洲欧美在线免费观看| 亚洲国产精品久久久久秋霞影院 | 91久久在线观看| 久久精品人人| 国产精品老牛|