Reference book intelligence requirements?

正在查看此主题的用户

demiurge

Regular
I was mucking about adding new books in the module system for warband, and I noticed that in module_scripts.py, in the section that sets book intelligence requirements, the reference books are all listed as having a requirement of 10. I don't remember them having one, and nothing in scripts or simple triggers seems to use these numbers. Do they matter, and (more importantly) should I add in non-functional intelligence requirements to any new reference books I make?
 
Right, but...you can't read the reference books. They just sit there in your inventory giving you bonuses no matter what your intelligence is, but they've got intelligence requirements listed in the scripts file along with the readable books. I just wondered if anyone knew if they did anything.

To be specific, I mean the books "the great book of surgery", "manual of arms", and "the book of healing".

Edit: Sorry, that was kinda vague. To be specific, I was talking about "great book of surgery", "book of healing", and "manual of arms".
 
Some books just give a passive bonus, so long as they're in inventory.  You don't have to read them.
 
Yeah, but I specifically mean this part of module_scripts.py:

      # Setting book intelligence requirements
      (item_set_slot, "itm_book_tactics", slot_item_intelligence_requirement, 9),
      (item_set_slot, "itm_book_persuasion", slot_item_intelligence_requirement, :cool:,
      (item_set_slot, "itm_book_leadership", slot_item_intelligence_requirement, 7),
      (item_set_slot, "itm_book_intelligence", slot_item_intelligence_requirement, 10),
      (item_set_slot, "itm_book_trade", slot_item_intelligence_requirement, 11),
      (item_set_slot, "itm_book_weapon_mastery", slot_item_intelligence_requirement, 9),
      (item_set_slot, "itm_book_engineering", slot_item_intelligence_requirement, 12),

      (item_set_slot, "itm_book_wound_treatment_reference", slot_item_intelligence_requirement, 10),
      (item_set_slot, "itm_book_training_reference", slot_item_intelligence_requirement, 10),
      (item_set_slot, "itm_book_surgery_reference", slot_item_intelligence_requirement, 10),
]),

Even the books you don't read are given intelligence requirements. They don't seem to do anything. Anyone know if they do?
 
They do nothing. If you have it, then you get the bonus.
插入代码块:
    ("game_get_skill_modifier_for_troop",
      [(store_script_param, ":troop_no", 1),
        (store_script_param, ":skill_no", 2),
        (assign, ":modifier_value", 0),
        (try_begin),
          (eq, ":skill_no", "skl_wound_treatment"),
          (call_script, "script_get_troop_item_amount", ":troop_no", "itm_book_wound_treatment_reference"),
          (gt, reg0, 0),
          (val_add, ":modifier_value", 1),
        (else_try), ...
Notice how the slot isn't used at all for the passive bonus.
 
后退
顶部 底部