ÅÜÅܳµÊ×Ò³

µ±Ç°Î»ÖãºÊ×Ò³ ¡ú ¹¥ÂÔÃؼ® ¡ú µ¥»ú¹¥ÂÔ ¡ú ÍõȨ2ÓµÍõÕßMOD¹¥ÂÔ

ÍõȨ2ÓµÍõÕßMOD¹¥ÂÔ

×÷ÕߣºØýÃûÀ´Ô´£º±¾Õ¾ÕûÀí ·¢±íʱ¼ä£º2010/11/9 15:47:55 ÆÀÂÛ(0)

 
Ò»¡¢ÏȽ«ÓÎϷĿ¼ÏÂ\resource\resource.pakÄÚÎļþÈ«²¿½âѹËõµ½µ±Ç°Ä¿Â¼£¬²¢½«Îļþresource.pak¸üÃû
ÒÔÏ·ֺźóΪעÊÍ£¬ÇëÇë×¢Òâ±¾È˲¢Î´Õë¶ÔÒÔÏÂÿÏî½øÐвâÊÔ£¬¾ßÌåЧ¹ûÇë×Ô¼º²âÊÔ

¶þ¡¢\resource\entity\
Êý¾ÝºÍ¶¨ÒåÖ÷Òª¶¼´æ·ÅÔÚ*.defÎļþÖÐ

ÒÔ\resource\entity\buildings\castle\castle.defΪÀý


 

;#line 18:         (include "extenders/upgrades.inc")
;#line 18: /entity/buildings/castle/extenders/upgrades.inc BEGIN
{"Upgrades"        ;Éý¼¶²¿·Ö
        {available
                {;1ÉýµÚÒ»¼¶
                        {money 75}
                        {health 1000}                                ;Éý¼¶Ôö¼ÓµÄÉúÃü
                        {building_value 1}
                        {cost                                        ;Éý¼¶ÏûºÄµÄ½ð±Ò
                        "money" 2000
                        }
                }
                {;2?àïãðåé?
                        {money 150}
                        {health 1500} ;Äîáàâëÿåò õèòïîèíòîâ       
                        {building_value 1}
                        {cost                                        ;Ñòîèìîñò?àïðãåéäà
                        "money" 5000
                        }
                }
        }
}


;#line 22:         (include "extenders/guard_point.inc")
;#line 22: /entity/buildings/castle/extenders/guard_point.inc BEGIN
{"guard_point"        ;ÊØÎÀ»î¶¯·¶Î§
        {ZoneRadius 15.0}
        {GuardRadius 20.0}
}
;#line 22: /entity/buildings/castle/extenders/guard_point.inc END


;#line 23:         (include "extenders/treasures_generator.inc")
;#line 23: /entity/buildings/castle/extenders/treasures_generator.inc BEGIN
{"TreasuresGenerator"
        {PerDay
                "money" 50        ;ÿÈÕÌṩµÄË°½ð
        }
}
;#line 23: /entity/buildings/castle/extenders/treasures_generator.inc END


;#line 26:         (include "extenders/spawner_extender.inc")
;#line 26: /entity/buildings/castle/extenders/spawner_extender.inc BEGIN
{"spawner_extender"        ;×Ô¶¯²úÉúµÄ½¨ÖþºÍµ¥Î»
        {global_spawn_progs "peasant_house_spawner1 peasant_house_spawner2 peasant_house2_spawner3 peasant_house_spawner4 peasant_house2_spawner5 peasant_mill_spawner6 peasant_mill_spawner7 grave_yard sewers_spawner1 sewers_spawner2 sewers_spawner3 sewers_spawner4 sewers_spawner5 sewers_spawner6 taxer_spawner1 taxer_spawner2 taxer_spawner3 guard_spawner1 guard_spawner2 guard_spawner3 peasant_spawner"}
}


;#line 26: /entity/buildings/castle/extenders/spawner_extender.inc END

        {"FogVisor" {radius 50}}        ;½¨ÖþµÄÊÓÒ°
       


Èý¡¢\resource\gameData
Êý¾Ý²¿·Ö¶þ

1.  \resource\gameData\inventions\inventions.graphml
¶¨Òå¸÷¸ö½¨ÖþÄÚ¿ÉÉý¼¶µÄÏîÄ¿
ÒÔÊг¡ÉϵÄѪƿΪÀý

Building=market;         ;½¨Öþ
Time = 15;         ;Éý¼¶Ê±¼ä
Building Level=1;</y:AttributeLabel>
            <y:MethodLabel/>
          </y:UML>
        </y:UMLClassNode>
      </data>
      <data key="d1"/>
    </node>
    <node id="n10">                ;¹À¼ÆΪÏîÄ¿´úÂë
      <data key="d0">
        <y:UMLClassNode>
          <y:Geometry height="146.0" width="177.0" x="2560.13279564611" y="116.22777022776273"/>
          <y:Fill color="#008000" transparent="false"/>
          <y:BorderStyle color="#000000" type="line" width="1.0"/>
          <y:NodeLabel alignment="center" autoSizePolicy="content" f f f hasBackgroundColor="false" hasLineColor="false" height="19.92626953125" modelName="internal" modelPosition="t" textColor="#000000" visible="true" width="89.0" x="44.0" y="3.0">Health potion</y:NodeLabel>
          <y:UML clipC c omitDetails="false" stereotype="" use3DEffect="true">
            <y:AttributeLabel>Cost money=150;         ;Éý¼¶»¨·Ñ

2.  \resource\gameData\magic\spells.xml
¶¨Òå¹ú¼Ò·¨ÊõµÄ»ù±¾ÊôÐÔ
ÒÔÖÎÁÆ·¨ÊõΪÀý

                <spell name="magic_heal" cost_money="250" ;»¨·ÑµÄ½ð±Ò icon="magic_heal" ;ͼ±ê player_spell_gfx="heal" ;·¨ÊõÊÓ¾õЧ¹û>
                        <conditions target="friend" ;Ä¿±êÅжϣ¨µÐ/ÓÑ£©area="0" ;ÓÐЧÇøÓò culldownTime="1" ;Àäȴʱ¼ä/>
                        <s_invention>magic_heal</s_invention>
                        <fliter> ;¶ÔÏóÅжÏ
                                <s_elem>unit</s_elem>  ;ÊÊÓÃÓÚµ¥¸öµ¥Î»
                        </fliter>
                        <Blocks>
                                <HealBlock> ;·¨ÊõЧ¹û£¨ÖÎÁÆ£¬É±É˵ȣ©
                                        <f_strength>300</f_strength>  ;·¨ÊõЧÁ¦£¨ÖÎÁÆЧ¹û£©
                                </HealBlock>
                        </Blocks>
                </spell>

3.  \resource\gameData\spawn\global_spawn_settings.set
¶¨Ò彨Öþ»òµ¥Î»×Ô¶¯µÄ²úÉú

ÒÔÀÏÊóÓëÏÂË®µÀΪÀý

{"rat"  ;ÀÏÊó
        {"spawn type" units}  ;²úÉúµÄÀàÐÍ
        {raw beast_rat}
        {Nationality Same}
        {level 0}  ;µÈ¼¶
        {"AI task"
                {task none}  ;Éú³ÉºóĬÈÏ·ÖÅɵÄÈÎÎñ
        }
        {postspawn}
        {postspawn_i 1}
        {gold 0}   ;²ú³öÐèÏûºÄµÄ½ð±Ò
        {count "1 2"}   ;ÿ´ÎµÄ²úÁ¿£¨1-2£©
        {"spawn time" 60}  Éú³ÉµÄ¼ä¸ô
        {"max count" 2}  ;ÿ´ÎÉú³ÉµÄÉÏÏÞ
}


{"sewers_spawner2"  ;µÚ2¸öÏÂË®µÀ
        {"spawn type" buildings}
        {Prerequsities_list city_value}
        {Prerequsities
                {city_value
                        {Min_city_summ 3}        ;Éú³ÉËùÐèµÄ³ÇÊйæÄ£
                        {Max_city_summ 999}
                }
        }
        {raw sewers_l1}
        {"Rand turn" 50}
        {Nationality Enemy}
        {Remoutness 10}
        {gold 0}
        {count "1 1"}
        {"spawn time" 20}
        {"max count" 1}
}


4.  \resource\gameData\units\ask.xml
¶¨ÒåÁ˸÷µ¥Î»Ðж¯Ê±´¥·¢ÓïÒôµÄ¸ÅÂÊ
ÒÔÁÔÈËΪÀý

                <hunter>
                        <hero>
                                <f_prob>0.5</f_prob>
                                <s_val0>asks/#CLASS_HUNTERSOUND_ASK</s_val0>
                        </hero>
                        <fight>        ;Õ½¶·
                                <f_prob>0.5</f_prob>
                                <s_val0>asks/#ATTACK_HUNTERSOUND_ASK</s_val0>
                        </fight>
                        <level_up>         ;Éý¼¶
                                <f_prob>0.6</f_prob>
                                <s_val0>asks/#NEWLEVEL_HUNTERSOUND_ASK</s_val0>
                                <b_use_skip_counter>false</b_use_skip_counter>
                        </level_up>
                        <pay_duty>         ;¸¶¿î
                                <f_prob>0.5</f_prob>
                                <s_val0>asks/#PAYDUTY_HUNTERSOUND_ASK</s_val0>
                        </pay_duty>
                        <collect_duty/>     ;ÊÕË°
                        <help>          ;ÇëÇó°ïÖú
                                <f_prob>0.5</f_prob>
                                <s_val0>asks/#HELP_HUNTERSOUND_ASK</s_val0>
                        </help>
                        <theft/>         ;͵ÇÔ
                        <repair/>        ;ÐÞÀí½¨Öþ
                        <buying>                ;¹ºÎï
                                <f_prob>0.5</f_prob>
                                <s_val0>asks/#GOODSTUFF_HUNTERSOUND_ASK</s_val0>
                        </buying>
                        <purchase>        ;¹ºÎï
                                <f_prob>0.5</f_prob>
                                <s_val0>asks/#BUY_HUNTERSOUND_ASK</s_val0>
                        </purchase>
                        <go_safety_building_fear>        ;Òò¿Ö¾åÌÓÅÜ
                                <f_prob>0.5</f_prob>
                                <s_val0>asks/#FEAR_HUNTERSOUND_ASK</s_val0>
                        </go_safety_building_fear>
                        <go_safety_building_lazy>        ;»Ø¼Ò
                                <f_prob>0.5</f_prob>
                                <s_val0>asks/#REST_HUNTERSOUND_ASK</s_val0>
                        </go_safety_building_lazy>
                        <assign_leader>                ;µ£ÈÎÁì¶Ó
                                <f_prob>0.8</f_prob>
                                <s_val0>asks/#LEADER_HUNTERSOUND_ASK</s_val0>
                        </assign_leader>
                        <collect_loot>                ;Ëѹα¦Îï
                                <f_prob>0.5</f_prob>
                                <s_val0>asks/#GOODSTUFF_HUNTERSOUND_ASK</s_val0>
                        </collect_loot>
                        <search_adventure>        ;Ö÷¶¯Íâ³ö̽Ë÷
                                <f_prob>0.2</f_prob>
                                <s_val0>asks/#HUNTING_HUNTERSOUND_ASK</s_val0>
                        </search_adventure>
                        <attack_quest>                ;½ÓÊܹ¥»÷ÈÎÎñ£¨ÆìÖÄ£©
                                <f_prob>0.8</f_prob>
                                <s_val0>asks/#ATTACKQUEST_HUNTERSOUND_ASK</s_val0>
                        </attack_quest>
                        <protect_quest>
                                <f_prob>0.6</f_prob>        ;½ÓÊÜ·ÀÊØÈÎÎñ£¨ÆìÖÄ£©
                                <s_val0>asks/#DEFENCEQUEST_HUNTERSOUND_ASK</s_val0>
                                <f_min_pause>1</f_min_pause>
                                <f_max_pause>3</f_max_pause>
                        </protect_quest>
                        <explore_quest>
                                <f_prob>0.8</f_prob>        ;½ÓÊÜ̽Ë÷ÈÎÎñ£¨ÆìÖÄ£©
                                <s_val0>asks/#EXPLOREQUEST_HUNTERSOUND_ASK</s_val0>
                                <f_min_pause>1</f_min_pause>
                                <f_max_pause>3</f_max_pause>
                        </explore_quest>
                        <undergo_treatment>       ;½ÓÊÜÖÎÁÆ
                                <f_prob>0.5</f_prob>
                                <s_val0>asks/#REST_HUNTERSOUND_ASK</s_val0>
                        </undergo_treatment>
                </hunter>


5.  \resource\gameData\units\perks.xml
¶¨ÒåÁ˵¥Î»¼¼ÄܵÄÊôÐÔ

        <Perk>
                <s_name>state_rogue_poison</s_name>        ;µÁÔôµÄÍ¿¶¾
                <f_liveTime>50</f_liveTime>        ;¿ÉÄÜÊdzÖÐøʱ¼ä
                <f_period>1</f_period>                ;¿ÉÄÜÓÃÓÚÅжÏÊÇ·ñΪÓÀ¾ÃÐÔ×÷ÓÃ
                <Blocks>
                        <s_type>HealthChange</s_type>        ;ЧÓÃ
                        <f_value>-5</f_value>                ;¾ßÌåÊýÖµ
                </Blocks>
                <Blocks>
                        <s_type>FX</s_type>
                        <s_headFX>state_poison</s_headFX>                ;ÊÓ¾õЧ¹û
                </Blocks>
        </Perk>


6.  \resource\gameData\units\rpg_params.xml
¶¨ÒåÁËÓ¢Ð۵Ļù±¾ÊôÐÔ

ÒÔսʿΪÀý
                <Params>
                        <s_type>hero_warrior</s_type>
                        <f_strength>14</f_strength>                ;Á¦Á¿
                        <f_agility>6</f_agility>                ;Ãô½Ý
                        <f_intellect>5</f_intellect>                ;ÖÇÁ¦
                        <f_stamina>15</f_stamina>                ;ÄÍÁ¦
                        <f_maxHealth>12</f_maxHealth>        ;ÉúÃü
                        <f_dps_hth>5</f_dps_hth>                ;»ù±¾¹¥»÷Á¦£¨Ã¿Ã룩
                        <f_defence_hth>20</f_defence_hth>                ;½üÕ½·ÀÓù
                        <f_defence_range>10</f_defence_range>        ;Ô¶³Ì·ÀÓù
                        <f_defence_magic>0</f_defence_magic>        ;ħ·¨·ÀÓù
                        <Distance>                                                       ;¹¥»÷»ò¼¼ÄܵÄÓÐЧ¾àÀ루Éä³Ì£©
                                <f_h2hDa>3</f_h2hDa>
                                <f_h2hDe>4</f_h2hDe>
                                <f_dstDa>12</f_dstDa>
                                <f_dstDe>15</f_dstDe>
                        </Distance>
                        <Angle>
                                <f_h2hDa>10</f_h2hDa>
                                <f_h2hDe>15</f_h2hDe>
                                <f_dstDa>10</f_dstDa>
                                <f_dstDe>15</f_dstDe>
                        </Angle>
                        <AIParams>
                                <SearchAdventureTask>
                                        <f_minDistance>8</f_minDistance>
                                        <f_maxDistance>12</f_maxDistance>
                                </SearchAdventureTask>
                        </AIParams>
                </Params>

7.  \resource\gameData\units\unit_actions.xml
¶¨Òå»ù±¾¹¥»÷·½Ê½ºÍ¼¼ÄÜÊ©·Å

ÈçÄÁʦµÄÖÎÁÆ
        <Action>
                <s_name>cleric_heal</s_name>
                <s_alignment>help</s_alignment>        ;¼¼ÄÜÓÃ;£¨¹¥»÷¸¨ÖúµÈ£©
                <s_type>heal</s_type>                ;ÀàÐÍ£¨É˺¦»òÖÎÁƵȣ©
                <s_used_skill>magic</s_used_skill>        ;»ù±¾¹¥»÷·½Ê½£¨½üÕ½/Ô¶³Ì/ħ·¨£©
                <f_skill_mod>6.0</f_skill_mod>        ;±¶Êý
                <b_ranged>true</b_ranged>                ;ÅжÏÊÇ·ñΪԶ³Ì
                <f_missile_velocity>50</f_missile_velocity>        ;Ô¶³ÌͶÉäÎïµÄËÙ¶È
                <f_mana_cost>15</f_mana_cost>        ;ÏûºÄµÄħ·¨
                <s_location>target</s_location>
                <Effects/>
                <Target>
                        <Group>
                                <s_type>ally_unit</s_type>                ;Ä¿±êÅжÏ
                        </Group>
                </Target>
                <Units>
                        <s_name>hero_cleric</s_name>        ;ËùÊôµ¥Î»
                </Units>
        </Action>

Áí£¬ÊØÎÀµÄ»ù±¾¹¥»÷

        <Action>
                <s_name>tower_guard_attack</s_name>
                <s_alignment>harm</s_alignment>
                <s_type>attack</s_type>
                <s_used_skill>missile</s_used_skill>
                <b_ranged>true</b_ranged>
                <f_cool_down>1.5</f_cool_down>        ;Àäȴʱ¼ä£¨¹¥»÷ƵÂÊ£©
                <s_location>target</s_location>
                <Effects/>
                <Target>
                        <Group>
                                <s_type>enemy_unit</s_type>
                                <s_type>enemy_building</s_type>
                        </Group>
                </Target>
        </Action>

 


8.  \resource\gameData\units\unit_decour.xml
¶¨ÒåÁËÓ¢Ð۵Ļù±¾×°±¸

ÈçսʿÓý£µÚ¶þ¼¶
                        <Weapon>
                                <s_name>hero_warrior_sword_02</s_name>
                                <f_cost>30</f_cost>        ;Ïû·Ñ
                                <f_timeDiff>1</f_timeDiff>
                                <s_soundtype>metal_light</s_soundtype>
                                <s_gui_name>img_sell_swords_1</s_gui_name>
                                <s_gui_name_loc>swords_1</s_gui_name_loc>
                                <Params>
                                        <f_dps_hth>4</f_dps_hth>                ;ɱÉ˸½¼ÓÖµ£¨Ã¿Ã룩
                                </Params>

Èý¡¢\resource\set
Êý¾Ý²¿·ÖÈý

1. \resource\set\inventory\bottles.set
¶¨ÒåÁËÒ©Æ¿µÄ»ù±¾ÊôÐÔ
{bottle_wrap {bottle_type "HealthPotion"}        ;Ѫƿ
        {concrete_bottle {bottle_base {inventory_base {active 0}
                                {effectorparams
                                        {dps "" "" ""}
                                        {defence "" "" ""}
                                }
                                {editorname "healthpotion_0"}
                        }
                        {cost "money" 5                ;ÊÛ¼Û
                                "wood" 0
                        }
                }
                {effect 50}        ;ЧÁ¦
        }
}
{bottle_wrap {bottle_type "ManaPotion"}        ;ħ·¨Æ¿
        {concrete_bottle {bottle_base {inventory_base {active 0}
                                {effectorparams
                                        {dps "" "" ""}
                                        {defence "" "" ""}
                                }
                                {editorname "manapotion_1"}
                        }
                        {cost "money" 5                ;ÊÛ¼Û
                                "wood" 0
                        }
                }
                {effect 25}        ;ЧÁ¦
        }
}


2.  \resource\set\trading\shops.set
¶¨ÒåÁ˽¨ÖþÓ뵥λµÄ»ù±¾ÊôÐÔ

ÒÔÊг¡ÎªÀý
                {"market"
                        {enabled}
                        {Cost
                                {money}
                                {"count money" 500}        ;Ôì¼Û
                        }
                        {Entity market}
                        {"Max count" 1}                ;½¨ÔìÊýÁ¿ÉÏÏÞ
                        {"Max upgrade" 3}                ;¿ÉÉý¼¶´ÎÊý
                        {Prerequesities                ;½¨ÔìµÄÌõ¼þ
                                {gold 0}
                                {"heroes count" 0}
                        }
                        {"Upgrades prerequsity"        ;Éý¼¶µÄÌõ¼þ
                                {"1"
                                        {buildings castle_2}
                                }
                                {"2"
                                        {buildings castle_3}
                                }
                        }
                }
ÁíÒÔսʿΪÀý
{"guild_warrior"
        {entity_id guild_warrior}
        {units
                {"hero_warrior"
                        {enabled}
                        {Cost
                                {money}
                                {"count money" 200}        ;ѵÁ·ËùÐè·ÑÓÃ
                       }
                        {Entity hero_warrior}
                        {"Max count" 3}                ;ÿ¸ö¹¤»áÄÜѵÁ·µÄÈËÊýÉÏÏÞ
                        {"Production time" 10}        ;ѵÁ·ËùÐèʱ¼ä
                }
        }



Íæ¼ÒÆÀÂÛ
ÎÒÒªµãÆÀ

ÍøÃû ×¢£ºÄúµÄÆÀÂÛÐèÒª¾­¹ýÉóºË²Å»áÏÔʾ³öÀ´¡£

ÒÑÓÐ 0 λÍæ¼Ò²ÎÓëµãÆÀ
ÏÂÔØÅÅÐÐ