搜索结果: *

  1. nanjingabcdefg

    Modding Q&A [For Quick Questions and Answers]

    Sorry, but a stupid question :oops:
    Which slot is used to determine whether a npc is of noble birth?
  2. nanjingabcdefg

    Modding Q&A [For Quick Questions and Answers]

    Thanks for your reply.
    By the way, there is a bug(should be warband's bug) in pbod.
    This is where the bug hides:
    (ti_on_agent_spawn, 0, 0, [], [(store_trigger_param_1, ":agent"),(call_script, "script_weapon_use_classify_agent", ":agent")]), # On spawn, mark lancers, spears, horse archers using a slot. Force lancers to equip lances, horse archers to equip bows

    The script weapon_use_classify_agent uses the operation agent_get_wielded_item to get what agents wield. However, agent_get_wielded_item only returns -1 when called immediately agent is spawned, which spoils all your weapon switch ai...
    As I know, agent_get_wielded_item will return what agents wield from about 2 seconds after the battle starts.
    In fact, the weapon switch ai totally doesn't work due to the small bug...

  3. nanjingabcdefg

    Modding Q&A [For Quick Questions and Answers]

    Why vaegir guards often don't equip shields though they have "tf_guarantee_shield" in their troop flags?
  4. nanjingabcdefg

    Where can I get the source code of Diplomacy 4.2

    Though it may sound abrupt, but I would like to ask where I can get the source code of Diplomacy 4.2? Source code in mbrepository is still the source code version 4.1. When will it be updated to the mbrepository? :?: Or I just missed it? :(
  5. nanjingabcdefg

    How to make a menu option a clone of another one?

    xenoargh 说:
    there are two menu options in different menus
    This means two pieces of code, the question is how much and where. 

    If A and B both require identical, very complicated code to be run, then write that code in module_scripts and call_script from the module_game_menus code, passing it the appropriate arguments, instead of duplicating it.
    A good idea, thanks :grin:
  6. nanjingabcdefg

    How to make a menu option a clone of another one?

    Caba`drin 说:
    Please do use the stickied Q&A thread for these "how should I?" type questions. It's what it is there for.
    Sorry for my ignorance :oops: :oops:
  7. nanjingabcdefg

    How to make a menu option a clone of another one?

    For example, there are two menu options in different menus, assuming A and B,  and I want to make B only a clone of A, in other words, when player click B, the consequence is as exactly same as click A. However, I don't want to only copy codes for the sake of maintenence. Is there any better...
  8. nanjingabcdefg

    Difference between fac_player_faction and fac_player_supporters_faction?

    Can someone tell me what is the difference between fac_player_faction and fac_player_supporters_faction? I'm really curious about it but it seems that few topics talked about it. :cry:  If they are the same, why create twice?
  9. nanjingabcdefg

    How to make the key ESC close my presentation?

    Caba`drin 说:
    Yeah, there's something bizarre about the way Escape is handled during a mission.
    Motomataru added this mission template trigger to Brytenwalda (which will be in the very-soon-to-be-released next version of PBOD) that seems to work around that problem (it goes by the other order key press triggers):

    (0, 0, 0, [(key_is_down, key_escape)], [(is_presentation_active, "prsnt_caba_order_display"),(presentation_set_duration, 0)]),

    Thanks for your help and Motomataru's magic code  :grin:
  10. nanjingabcdefg

    How to make the key ESC close my presentation?

      I try to merge Prebattle&Deployment into my mod;however, I found a disturbing thing: if I press the Esc key when the order list is shown, the options window will turn up, but in Native, the order list should be closed. I want to it to behave like Native, which is more convenient So I try to...
  11. nanjingabcdefg

    What does the abbreviation 'dna' mean in the head_operations.py

    In head_operations.py, there are several opcodes which use the abbreviation 'dna', for example: set_visitor                    = 1263 # (set_visitor,<entry_no>,<troop_id>,[<dna>]), What does the strange abbreviation 'dna' mean? I don't think it stands for 'deoxyribonucleic acid'. Though I have...
后退
顶部 底部