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

天行健 君子當自強而不息

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>
            亚洲性色视频| 亚洲第一区色| 欧美色大人视频| 欧美午夜不卡视频| 国产伦精品一区二区三区视频黑人| 国产精品视频1区| 加勒比av一区二区| 日韩亚洲精品电影| 性刺激综合网| 久久亚洲精品视频| 亚洲国产精品嫩草影院| 国产综合色在线| 亚洲美女视频在线观看| 香蕉av777xxx色综合一区| 亚洲欧美日韩国产中文| 欧美国产极速在线| 国产欧美日本一区视频| 一区二区欧美精品| 美女成人午夜| 亚洲综合三区| 欧美性一二三区| 久久九九国产精品怡红院| 亚洲国内在线| 国产精品国产三级国产普通话三级| 91久久久国产精品| 久久婷婷人人澡人人喊人人爽| 玖玖玖国产精品| 国产一区99| 欧美在线观看一区二区| 亚洲欧美www| 亚洲人成在线免费观看| 亚洲欧美日韩成人高清在线一区| 尤物精品在线| 欧美成人自拍视频| 久久婷婷激情| 在线观看一区| 亚洲午夜成aⅴ人片| 亚洲国产精品一区二区第一页| 久久综合九色综合欧美狠狠| 欧美日韩精品在线| 99天天综合性| a4yy欧美一区二区三区| 欧美 日韩 国产一区二区在线视频| 狠狠入ady亚洲精品经典电影| 久久岛国电影| 久久久久久久999| 好吊一区二区三区| 亚洲网站在线看| 亚洲免费大片| 久久夜精品va视频免费观看| 久久www成人_看片免费不卡| 欧美日韩综合在线| 亚洲国产精品久久精品怡红院 | 亚洲高清毛片| 免费在线欧美黄色| 久久久久久夜| 牛夜精品久久久久久久99黑人 | 在线观看日韩精品| 欧美制服丝袜第一页| 国产一区二区三区网站| 亚洲午夜一级| 亚洲欧美日韩国产综合在线| 亚洲主播在线观看| 亚洲欧美一区二区三区久久| 欧美影片第一页| 欧美一区二区在线观看| 国产精品夜夜夜| 亚洲欧美激情在线视频| 性欧美1819sex性高清| 国产精品亚洲激情| 欧美一区二区视频网站| 日韩一区二区精品视频| 欧美成人午夜剧场免费观看| 欧美亚洲一区三区| 国产麻豆91精品| 欧美一区二区三区喷汁尤物| 欧美在线亚洲一区| 狠狠狠色丁香婷婷综合激情| 久久久999精品视频| 亚洲视频中文字幕| 久久精品一区二区三区不卡| 久久久亚洲午夜电影| 国产一区激情| 葵司免费一区二区三区四区五区| 亚洲大片一区二区三区| 99视频+国产日韩欧美| 欧美午夜精品久久久| 午夜精品久久久久久久99热浪潮| 久久漫画官网| 日韩一区二区精品在线观看| 欧美日韩综合久久| 午夜在线精品| 亚洲在线观看| 欧美久久久久| 欧美激情视频一区二区三区在线播放| 欧美视频在线观看| 亚洲女人av| 欧美激情片在线观看| 亚洲一区日韩在线| 国内精品久久久久久久影视麻豆 | 欧美三级视频在线播放| 亚洲在线电影| 亚洲视频每日更新| 国产一区在线视频| 欧美激情一二区| 亚洲国产精品一区| 香蕉av福利精品导航| 亚洲第一久久影院| 国产精品亚洲综合一区在线观看| 久久全国免费视频| 夜夜嗨av一区二区三区| 免费观看成人网| 先锋影音一区二区三区| 亚洲人成在线观看一区二区| 国产日本欧美一区二区三区| 欧美激情国产日韩| 久久久亚洲成人| 亚洲视频第一页| 亚洲欧美日韩精品久久奇米色影视| 国产在线观看91精品一区| 欧美视频在线一区二区三区| 久久全球大尺度高清视频| 亚洲一品av免费观看| 亚洲国产精品久久久久婷婷老年 | 午夜精品久久久久久久99黑人 | 欧美日韩国产在线播放网站| 久久久久久高潮国产精品视| 亚洲无玛一区| 99精品国产在热久久下载| 欧美韩日一区| 麻豆久久精品| 日韩视频中午一区| 亚洲福利视频在线| 国产在线不卡视频| 国产深夜精品| 美乳少妇欧美精品| 亚洲久色影视| 亚洲欧美激情视频| 亚洲一区二区成人| 国模套图日韩精品一区二区| 欧美午夜免费电影| 欧美日韩视频在线观看一区二区三区| 亚洲午夜伦理| 一区二区三区国产在线| 欧美在线免费视频| 欧美一级视频精品观看| 午夜欧美不卡精品aaaaa| 亚洲欧美国产精品桃花| 午夜免费在线观看精品视频| 午夜精品电影| 久久精品九九| 洋洋av久久久久久久一区| 亚洲精品色婷婷福利天堂| 国产精品免费看| 女人香蕉久久**毛片精品| 女女同性女同一区二区三区91| 欧美成人高清| 欧美日韩国产精品一区二区亚洲| 欧美日韩视频专区在线播放 | 欧美精品偷拍| 欧美日韩成人一区二区三区| 欧美日本中文| 国产精品主播| 伊人激情综合| av72成人在线| 欧美一区二区视频在线观看| 久久人人九九| 亚洲黄色毛片| 亚洲一区尤物| 久久婷婷综合激情| 欧美日韩一区二区三| 国产免费观看久久| 亚洲国产成人精品视频| 一区二区三区国产精品| 欧美有码在线视频| 亚洲第一毛片| 亚洲欧美日韩另类精品一区二区三区| 久久精品国产精品亚洲综合| 亚洲一区二区动漫| 久久尤物视频| 欧美特黄a级高清免费大片a级| 国产亚洲精品7777| 99热在这里有精品免费| 欧美自拍偷拍| 亚洲欧洲一级| 亚洲欧洲在线播放| 先锋影音久久久| 欧美国产国产综合| 国内外成人免费视频| 一区二区三区高清在线观看| 久久婷婷一区| 亚洲午夜免费福利视频| 欧美国产日韩视频| 国内精品久久久久久 | 亚洲国产欧美日韩精品| 午夜伦欧美伦电影理论片| 欧美另类综合| 在线播放中文字幕一区| 羞羞色国产精品| 亚洲精品一区二区三区婷婷月 |