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

天行健 君子當(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>
            亚洲永久字幕| 国产一区二区三区久久悠悠色av | 午夜视频在线观看一区| 欧美国产精品日韩| 午夜视频在线观看一区| 欧美日韩综合在线| 亚洲狼人精品一区二区三区| 老**午夜毛片一区二区三区| 亚洲欧美日韩国产综合在线| 欧美日韩精品久久久| 亚洲电影毛片| 久久精品一区二区| 一本久久精品一区二区| 欧美经典一区二区| 亚洲日本黄色| 欧美va天堂| 久久久久高清| 黑人一区二区| 久久精品一本| 亚洲欧美在线免费观看| 国产精品热久久久久夜色精品三区| 日韩一区二区精品| 亚洲国产精品久久精品怡红院| 久久久.com| 国产综合色产| 久久精品人人| 欧美一区二粉嫩精品国产一线天| 国产精品福利在线观看网址| 一本久久a久久免费精品不卡| 亚洲高清精品中出| 欧美成人一区二区在线| 亚洲国产精品久久久久婷婷884| 久久美女性网| 久久久久久亚洲精品中文字幕| 韩国av一区| 美腿丝袜亚洲色图| 久久久午夜视频| 影音先锋日韩精品| 欧美国产精品v| 免费一级欧美片在线播放| 亚洲国产国产亚洲一二三| 欧美成人午夜77777| 老司机精品视频网站| 亚洲经典三级| 亚洲人妖在线| 欧美日韩一区二| 亚洲欧美综合另类中字| 亚洲欧美视频一区| 国外视频精品毛片| 免费在线亚洲| 欧美精品麻豆| 亚洲午夜视频在线| 亚洲欧美成人综合| 国内在线观看一区二区三区| 老司机精品视频一区二区三区| 久久一日本道色综合久久| 亚洲激情电影在线| 亚洲美女色禁图| 国产乱码精品一区二区三| 久久午夜羞羞影院免费观看| 久久野战av| 99re6热只有精品免费观看 | 欧美黄色一级视频| 欧美精品在线看| 亚洲欧美日韩国产一区二区三区 | 欧美精品在欧美一区二区少妇| 亚洲午夜一区二区三区| 亚洲欧美日韩另类| 永久91嫩草亚洲精品人人| 亚洲第一精品久久忘忧草社区| 欧美日韩国产成人在线观看 | 免费在线成人av| 一区二区三区产品免费精品久久75 | 免费毛片一区二区三区久久久| 99成人精品| 亚洲欧美日韩爽爽影院| 亚洲国产精品久久精品怡红院| 日韩视频在线一区| 国产在线观看91精品一区| 欧美激情1区2区| 国产精品嫩草影院av蜜臀| 两个人的视频www国产精品| 欧美黑人一区二区三区| 欧美亚洲一区二区在线观看| 老司机精品视频一区二区三区| 亚洲在线观看视频| 久久婷婷综合激情| 亚洲欧美在线播放| 你懂的国产精品| 欧美亚洲午夜视频在线观看| 免费久久99精品国产自| 亚洲欧美激情诱惑| 男同欧美伦乱| 久久成人亚洲| 欧美日韩国产探花| 免费国产一区二区| 国产精品久久久久婷婷| 欧美国产大片| 国产日韩欧美精品综合| 亚洲欧洲综合| 韩国三级在线一区| 一区二区三区毛片| 91久久久久久久久久久久久| 亚洲欧美日韩精品久久久久| 日韩一级网站| 久久精品91| 亚洲欧美日韩在线| 欧美激情亚洲视频| 久久夜色精品国产噜噜av| 欧美三级第一页| 欧美二区视频| 国产一区自拍视频| 一区二区三区高清在线观看| 亚洲激情在线观看视频免费| 欧美一级在线视频| 亚洲欧美偷拍卡通变态| 欧美女同视频| 亚洲电影毛片| 99在线热播精品免费99热| 亚洲一区久久久| 这里只有精品视频| 亚洲精品视频一区| 久久久亚洲午夜电影| 久久国产一区二区三区| 欧美日韩一区二区在线视频 | 亚洲欧美日韩中文视频| 一区二区三区视频在线看| 免费黄网站欧美| 另类亚洲自拍| 国产视频久久网| 亚洲午夜影视影院在线观看| 99国产精品视频免费观看一公开| 久久久久国产精品一区三寸| 久久精品欧美日韩精品| 国产精品日韩欧美大师| 一区二区三区久久网| 在线一区日本视频| 欧美日韩国产不卡在线看| 亚洲国产影院| 亚洲美女淫视频| 欧美成人一品| 亚洲国产精品久久久久| 亚洲精品1234| 欧美成人一区二区三区在线观看| 免费在线视频一区| 亚洲国产美国国产综合一区二区| 久久成人一区| 免费观看成人www动漫视频| 狠狠狠色丁香婷婷综合久久五月| 欧美亚洲免费| 久久精品视频免费观看| 欧美激情一区二区三区蜜桃视频| 最新亚洲视频| 亚洲精品专区| 牛牛影视久久网| 亚洲国产免费| 一本色道久久综合狠狠躁篇的优点 | 亚洲国产mv| 久久最新视频| 亚洲高清激情| 日韩午夜电影av| 欧美视频在线看| 亚洲专区国产精品| 久久精品99国产精品酒店日本| 国产午夜久久久久| 久久久久久久综合日本| 欧美国产激情| 99在线精品免费视频九九视| 欧美日韩在线观看视频| 亚洲性xxxx| 久久精品国产99精品国产亚洲性色| 国产日本欧美视频| 久久福利一区| 欧美1区免费| 999在线观看精品免费不卡网站| 欧美日韩亚洲综合在线| 亚洲欧美成人一区二区在线电影| 久久人人爽人人| 亚洲国产精彩中文乱码av在线播放 | 日韩视频一区二区三区在线播放免费观看| av成人天堂| 国产精品日本| 久久亚洲一区二区三区四区| 亚洲人成在线播放网站岛国| 亚洲自拍16p| 国产一区二区三区无遮挡| 亚洲黄色在线视频| 麻豆成人91精品二区三区| 久久久99精品免费观看不卡| 一区视频在线播放| 欧美激情a∨在线视频播放| 99亚洲精品| 久久精选视频| 亚洲精品欧美极品| 国产精品日韩专区| 久久性天堂网| 一区二区三区精品| 久久久久久伊人| 在线视频精品| 国内一区二区三区在线视频|