Skip to content
Permalink
Browse files

Unlootable unique items and 6 new books for channeling skills.

  • Loading branch information...
cvlc committed Sep 6, 2012
1 parent 2caa62c commit 9ccb031316f5a02e42edc6e0c90499f1aa537d08
Showing with 107 additions and 18 deletions.
  1. +50 −0 module_game_menus.py
  2. +22 −15 module_items.py
  3. +9 −1 module_scripts.py
  4. +24 −0 module_simple_triggers.py
  5. +2 −2 module_troops.py
@@ -4058,6 +4058,56 @@
(jump_to_menu, "mnu_camp_action_read_book_start"),
]
),
## V: Begin TGS books
("action_read_book_8",[(player_has_item, "itm_book_channeling"),
(item_slot_eq, "itm_book_channeling", slot_item_book_read, 0),
(str_store_item_name, s1, "itm_book_channeling"),
],"{s1}.",
[(assign, "$temp", "itm_book_channeling"),
(jump_to_menu, "mnu_camp_action_read_book_start"),
]
),
("action_read_book_9",[(player_has_item, "itm_book_air"),
(item_slot_eq, "itm_book_air", slot_item_book_read, 0),
(str_store_item_name, s1, "itm_book_air"),
],"{s1}.",
[(assign, "$temp", "itm_book_air"),
(jump_to_menu, "mnu_camp_action_read_book_start"),
]
),
("action_read_book_10",[(player_has_item, "itm_book_fire"),
(item_slot_eq, "itm_book_fire", slot_item_book_read, 0),
(str_store_item_name, s1, "itm_book_fire"),
],"{s1}.",
[(assign, "$temp", "itm_book_fire"),
(jump_to_menu, "mnu_camp_action_read_book_start"),
]
),
("action_read_book_11",[(player_has_item, "itm_book_water"),
(item_slot_eq, "itm_book_water", slot_item_book_read, 0),
(str_store_item_name, s1, "itm_book_water"),
],"{s1}.",
[(assign, "$temp", "itm_book_water"),
(jump_to_menu, "mnu_camp_action_read_book_start"),
]
),
("action_read_book_12",[(player_has_item, "itm_book_earth"),
(item_slot_eq, "itm_book_earth", slot_item_book_read, 0),
(str_store_item_name, s1, "itm_book_earth"),
],"{s1}.",
[(assign, "$temp", "itm_book_earth"),
(jump_to_menu, "mnu_camp_action_read_book_start"),
]
),
("action_read_book_13",[(player_has_item, "itm_book_spirit"),
(item_slot_eq, "itm_book_spirit", slot_item_book_read, 0),
(str_store_item_name, s1, "itm_book_spirit"),
],"{s1}.",
[(assign, "$temp", "itm_book_spirit"),
(jump_to_menu, "mnu_camp_action_read_book_start"),
]
),
## end TGS books
("camp_action_4",[],"Back to camp menu.",
[(jump_to_menu, "mnu_camp"),
]
@@ -1296,7 +1296,7 @@
############################################################
#itcf_thrust_onehanded|itcf_thrust_onehanded_lance_horseback

["power_npc_companion_ranged","One Power", [("cuindiar_disc",0),("practice_arrows_2",ixmesh_flying_ammo)],itp_type_pistol|itp_primary|itp_bonus_against_shield , itcf_shoot_crossbow, 5 , weight(4)|spd_rtng(140) | shoot_speed(150) | thrust_damage(1 , pierce)|max_ammo(5000)|weapon_length(65)|difficulty(0),imodbits_missile,
["power_npc_companion_ranged","One Power", [("cuindiar_disc",0),("practice_arrows_2",ixmesh_flying_ammo)],itp_unique|itp_type_pistol|itp_primary|itp_bonus_against_shield , itcf_shoot_crossbow, 5 , weight(4)|spd_rtng(140) | shoot_speed(150) | thrust_damage(1 , pierce)|max_ammo(5000)|weapon_length(65)|difficulty(0),imodbits_missile,
[(ti_on_weapon_attack, [

# (get_player_agent_no,":player_agent"),
@@ -3827,7 +3827,7 @@
############### Multiplayer One Power Item #####################################
################################################################################

["power_player_multiplayer","One Power", [("cuindiar_disc",0),("practice_arrows_2",ixmesh_flying_ammo)],itp_type_pistol|itp_primary|itp_secondary|itp_bonus_against_shield , itcf_shoot_crossbow, 5 , weight(4)|spd_rtng(250) | shoot_speed(150) | thrust_damage(1 , pierce)|max_ammo(5000)|weapon_length(65),imodbits_missile,
["power_player_multiplayer","One Power", [("cuindiar_disc",0),("practice_arrows_2",ixmesh_flying_ammo)],itp_unique|itp_type_pistol|itp_primary|itp_secondary|itp_bonus_against_shield , itcf_shoot_crossbow, 5 , weight(4)|spd_rtng(250) | shoot_speed(150) | thrust_damage(1 , pierce)|max_ammo(5000)|weapon_length(65),imodbits_missile,
[(ti_on_weapon_attack, [

# (get_player_agent_no,":player_agent"),
@@ -3898,7 +3898,7 @@
######## The backup of the 2nd try at Multiplayer ###############
#################################################################

["power_player_multiplayer_backup","One Power", [("cuindiar_disc",0),("practice_arrows_2",ixmesh_flying_ammo)],itp_type_pistol|itp_primary|itp_secondary|itp_bonus_against_shield , itcf_shoot_crossbow, 5 , weight(4)|spd_rtng(250) | shoot_speed(150) | thrust_damage(1 , pierce)|max_ammo(5000)|weapon_length(65),imodbits_missile,
["power_player_multiplayer_backup","One Power", [("cuindiar_disc",0),("practice_arrows_2",ixmesh_flying_ammo)],itp_unique|itp_type_pistol|itp_primary|itp_secondary|itp_bonus_against_shield , itcf_shoot_crossbow, 5 , weight(4)|spd_rtng(250) | shoot_speed(150) | thrust_damage(1 , pierce)|max_ammo(5000)|weapon_length(65),imodbits_missile,
[(ti_on_weapon_attack, [

# (get_player_agent_no,":player_agent"),
################################################################################
#### Backup (Original) version of the multiplayer One Power Item ###############

["power_player_multiplayer_backup_original","One Power", [("cuindiar_disc",0),("practice_arrows_2",ixmesh_flying_ammo)],itp_type_pistol|itp_primary|itp_secondary|itp_bonus_against_shield , itcf_shoot_crossbow, 5 , weight(4)|spd_rtng(250) | shoot_speed(150) | thrust_damage(1 , pierce)|max_ammo(5000)|weapon_length(65),imodbits_missile,
["power_player_multiplayer_backup_original","One Power", [("cuindiar_disc",0),("practice_arrows_2",ixmesh_flying_ammo)],itp_unique|itp_type_pistol|itp_primary|itp_secondary|itp_bonus_against_shield , itcf_shoot_crossbow, 5 , weight(4)|spd_rtng(250) | shoot_speed(150) | thrust_damage(1 , pierce)|max_ammo(5000)|weapon_length(65),imodbits_missile,
[(ti_on_weapon_attack, [

# (get_player_agent_no,":player_agent"),


# other special items
["suldam_dagger", "Sul'dam Dagger", [("dagger_b",0),("dagger_b_scabbard",ixmesh_carry),("dagger_b",imodbits_good),("dagger_b_scabbard",ixmesh_carry|imodbits_good)], itp_type_one_handed_wpn|itp_primary|itp_secondary|itp_no_parry, itc_dagger|itcf_carry_dagger_front_left|itcf_show_holster_when_drawn,
["suldam_dagger", "Sul'dam Dagger", [("dagger_b",0),("dagger_b_scabbard",ixmesh_carry),("dagger_b",imodbits_good),("dagger_b_scabbard",ixmesh_carry|imodbits_good)], itp_unique|itp_type_one_handed_wpn|itp_primary|itp_secondary|itp_no_parry, itc_dagger|itcf_carry_dagger_front_left|itcf_show_holster_when_drawn,
37 , weight(0.75)|difficulty(1)|spd_rtng(109) | weapon_length(47)|swing_damage(22 , cut) | thrust_damage(19 , pierce),imodbits_sword_high ],
["der_suldam_dagger", "Der Sul'dam Dagger", [("dagger_b",0),("dagger_b_scabbard",ixmesh_carry),("dagger_b",imodbits_good),("dagger_b_scabbard",ixmesh_carry|imodbits_good)], itp_type_one_handed_wpn|itp_primary|itp_secondary|itp_no_parry, itc_dagger|itcf_carry_dagger_front_left|itcf_show_holster_when_drawn,
["der_suldam_dagger", "Der Sul'dam Dagger", [("dagger_b",0),("dagger_b_scabbard",ixmesh_carry),("dagger_b",imodbits_good),("dagger_b_scabbard",ixmesh_carry|imodbits_good)], itp_unique|itp_type_one_handed_wpn|itp_primary|itp_secondary|itp_no_parry, itc_dagger|itcf_carry_dagger_front_left|itcf_show_holster_when_drawn,
37 , weight(0.75)|difficulty(1)|spd_rtng(109) | weapon_length(47)|swing_damage(22 , cut) | thrust_damage(19 , pierce),imodbits_sword_high ],

["channeler_dagger", "Dagger", [("dagger_b",0),("dagger_b_scabbard",ixmesh_carry),("dagger_b",imodbits_good),("dagger_b_scabbard",ixmesh_carry|imodbits_good)], itp_type_one_handed_wpn|itp_secondary|itp_no_parry, itc_dagger|itcf_carry_dagger_front_left|itcf_show_holster_when_drawn,
["channeler_dagger", "Dagger", [("dagger_b",0),("dagger_b_scabbard",ixmesh_carry),("dagger_b",imodbits_good),("dagger_b_scabbard",ixmesh_carry|imodbits_good)], itp_unique|itp_type_one_handed_wpn|itp_secondary|itp_no_parry, itc_dagger|itcf_carry_dagger_front_left|itcf_show_holster_when_drawn,
37 , weight(0.75)|difficulty(0)|spd_rtng(109) | weapon_length(47)|swing_damage(22 , cut) | thrust_damage(19 , pierce),imodbits_sword_high ],
["sword_secondary", "Sword", [("sword_medieval_a",0),("sword_medieval_a_scabbard", ixmesh_carry)], itp_type_one_handed_wpn|itp_merchandise|itp_primary, itc_longsword|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
["sword_secondary", "Sword", [("sword_medieval_a",0),("sword_medieval_a_scabbard", ixmesh_carry)], itp_unique|itp_type_one_handed_wpn|itp_merchandise|itp_primary, itc_longsword|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
163 , weight(1.5)|difficulty(0)|spd_rtng(99) | weapon_length(95)|swing_damage(27 , cut) | thrust_damage(22 , pierce),imodbits_sword_high ],




# Shadowspawn
["trolloc_hawk_helmet", "Trolloc Hawk Helmet", [("trolloc_hawk_helmet",0)], itp_type_head_armor|itp_covers_head ,0,
["trolloc_hawk_helmet", "Trolloc Hawk Helmet", [("trolloc_hawk_helmet",0)], itp_unique|itp_type_head_armor|itp_covers_head ,0,
300 , weight(2)|abundance(100)|head_armor(30)|body_armor(0)|leg_armor(0)|difficulty(7) ,imodbits_plate ],
["trolloc_wolf_helmet", "Trolloc Wolf Helmet", [("trolloc_wolf_helmet",0)], itp_type_head_armor|itp_covers_head ,0,
["trolloc_wolf_helmet", "Trolloc Wolf Helmet", [("trolloc_wolf_helmet",0)], itp_unique|itp_type_head_armor|itp_covers_head ,0,
500 , weight(2)|abundance(100)|head_armor(35)|body_armor(0)|leg_armor(0)|difficulty(7) ,imodbits_plate ],
["trolloc_goat_helmet", "Trolloc Goat Helmet", [("trolloc_goat_helmet",0)], itp_type_head_armor|itp_covers_head ,0,
["trolloc_goat_helmet", "Trolloc Goat Helmet", [("trolloc_goat_helmet",0)], itp_unique|itp_type_head_armor|itp_covers_head ,0,
900 , weight(2)|abundance(100)|head_armor(40)|body_armor(0)|leg_armor(0)|difficulty(7) ,imodbits_plate ],
["myrddraal_hood_helmet", "Myrddraal Helmet", [("myrddraal_hood_helmet",0)], itp_type_head_armor|itp_covers_head ,0,
["myrddraal_hood_helmet", "Myrddraal Helmet", [("myrddraal_hood_helmet",0)], itp_unique|itp_type_head_armor|itp_covers_head ,0,
1500 , weight(2)|abundance(100)|head_armor(45)|body_armor(0)|leg_armor(0)|difficulty(7) ,imodbits_plate ],
["draghkar_helmet", "Draghkar Helmet", [("draghkar_helmet",0)], itp_type_head_armor|itp_covers_head ,0,
["draghkar_helmet", "Draghkar Helmet", [("draghkar_helmet",0)], itp_unique|itp_type_head_armor|itp_covers_head ,0,
1200 , weight(2)|abundance(100)|head_armor(20)|body_armor(0)|leg_armor(0)|difficulty(7) ,imodbits_plate ],

["trolloc_weak_armor", "Trolloc Weak Armor", [("trolloc_armor",0)], itp_merchandise| itp_type_body_armor |itp_covers_legs|itp_civilian ,0,

["black_mail_gauntlets","Black Mail Gauntlets", [("black_mail_gauntlets_L",0), ("black_mail_gauntlets_Lx",0)], itp_merchandise|itp_type_hand_armor,0,
400, weight(0.75)|abundance(100)|body_armor(5)|difficulty(0),imodbits_armor],
["draghkar_gloves","Draghkar Gloves", [("draghkar_gloves_L",0), ("draghkar_gloves_Lx",0)], itp_type_hand_armor,0,
["draghkar_gloves","Draghkar Gloves", [("draghkar_gloves_L",0), ("draghkar_gloves_Lx",0)], itp_unique|itp_type_hand_armor,0,
200, weight(0.75)|abundance(100)|body_armor(5)|difficulty(0),imodbits_armor],

["trolloc_mace", "Trolloc Mace", [("mace_morningstar_new",0)], itp_crush_through|itp_type_two_handed_wpn|itp_merchandise|itp_can_knock_down|itp_primary|itp_two_handed|itp_wooden_parry|itp_wooden_attack|itp_unbalanced, itc_nodachi|itcf_carry_spear,

## Other Items ##

["padan_fain_dagger", "Padan Fain's Dagger", [("dagger_b",0),("dagger_b_scabbard",ixmesh_carry),("dagger_b",imodbits_good),("dagger_b_scabbard",ixmesh_carry|imodbits_good)], itp_type_one_handed_wpn|itp_primary|itp_secondary|itp_no_parry, itc_dagger|itcf_carry_dagger_front_left|itcf_show_holster_when_drawn,
["padan_fain_dagger", "Padan Fain's Dagger", [("dagger_b",0),("dagger_b_scabbard",ixmesh_carry),("dagger_b",imodbits_good),("dagger_b_scabbard",ixmesh_carry|imodbits_good)], itp_unique|itp_type_one_handed_wpn|itp_primary|itp_secondary|itp_no_parry, itc_dagger|itcf_carry_dagger_front_left|itcf_show_holster_when_drawn,
5000 , weight(0.75)|difficulty(1)|spd_rtng(109) | weapon_length(47)|swing_damage(22 , cut) | thrust_damage(19 , pierce),imodbits_sword_high ],

["lord_warhorse_1","Lordly War Horse", [("kher_warhorse1",0)], itp_merchandise|itp_type_horse, 0,
# And if you don't want the ravens, just take "_ravens" out of the mesh name entry.
######################

["book_channeling","100 Weaves", [("book_g",0)], itp_type_book, 0, 2900,weight(2)|abundance(100),imodbits_none],
["book_air","Heavy Wind and Clear Skies", [("book_h",0)], itp_type_book, 0, 3100,weight(2)|abundance(100),imodbits_none],
["book_fire", "A Roaring Inferno", [("book_i",0)], itp_type_book, 0, 4200,weight(2)|abundance(100),imodbits_none],
["book_water","Waves and Whirlpools", [("book_j",0)], itp_type_book, 0, 2900,weight(2)|abundance(100),imodbits_none],
["book_earth","Smashing Stone and Shattering Mountains", [("book_k",0)], itp_type_book, 0, 3100,weight(2)|abundance(100),imodbits_none],
["book_spirit", "Forgotten Fragments of the Forbidden Weaves", [("book_l",0)], itp_type_book, 0, 4200,weight(2)|abundance(100),imodbits_none],


# end TGS Specific Items


(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),

## V: Begin TGS books
(item_set_slot, "itm_book_channeling", slot_item_intelligence_requirement, 16),
(item_set_slot, "itm_book_air", slot_item_intelligence_requirement, 14),
(item_set_slot, "itm_book_fire", slot_item_intelligence_requirement, 14),
(item_set_slot, "itm_book_water", slot_item_intelligence_requirement, 14),
(item_set_slot, "itm_book_earth", slot_item_intelligence_requirement, 14),
(item_set_slot, "itm_book_spirit", slot_item_intelligence_requirement, 14),
## end TGS books

(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),
@@ -3613,6 +3613,30 @@
(eq, "$g_player_reading_book", "itm_book_engineering"),
(troop_raise_skill, "trp_player", "skl_engineer", 1),
(str_store_string, s2, "@ Your engineer skill has increased by 1."),
(else_try),
(eq, "$g_player_reading_book", "itm_book_channeling"),
(troop_raise_skill, "trp_player", "skl_channeling", 1),
(str_store_string, s2, "@ Your channeling skill has increased by 1."),
(else_try),
(eq, "$g_player_reading_book", "itm_book_air"),
(troop_raise_skill, "trp_player", "skl_air", 1),
(str_store_string, s2, "@ Your skill in weaving Air has increased by 1."),
(else_try),
(eq, "$g_player_reading_book", "itm_book_fire"),
(troop_raise_skill, "trp_player", "skl_fire", 1),
(str_store_string, s2, "@ Your skill in weaving Fire has increased by 1."),
(else_try),
(eq, "$g_player_reading_book", "itm_book_water"),
(troop_raise_skill, "trp_player", "skl_water", 1),
(str_store_string, s2, "@ Your skill in weaving Water has increased by 1."),
(else_try),
(eq, "$g_player_reading_book", "itm_book_earth"),
(troop_raise_skill, "trp_player", "skl_earth", 1),
(str_store_string, s2, "@ Your skill in weaving Earth has increased by 1."),
(else_try),
(eq, "$g_player_reading_book", "itm_book_spirit"),
(troop_raise_skill, "trp_player", "skl_spirit", 1),
(str_store_string, s2, "@ Your skill in weaving Spirit has increased by 1."),
(try_end),

(unlock_achievement, ACHIEVEMENT_BOOK_WORM),
@@ -3512,11 +3512,11 @@ def wp_melee(x):

# Tavern traveler.
["tavern_bookseller_1","Book_Merchant","Book_Merchant",tf_hero|tf_is_merchant|tf_randomize_face, 0, reserved, fac_commoners,[itm_fur_coat,itm_hide_boots,
itm_book_tactics, itm_book_persuasion, itm_book_wound_treatment_reference, itm_book_leadership,
itm_book_tactics, itm_book_persuasion, itm_book_air, itm_book_water, itm_book_spirit, itm_book_wound_treatment_reference, itm_book_leadership,
itm_book_intelligence, itm_book_training_reference, itm_book_surgery_reference],def_attrib|level(5),wp(20),knows_common,merchant_face_1,merchant_face_2],
["tavern_bookseller_2","Book_Merchant","Book_Merchant",tf_hero|tf_is_merchant|tf_randomize_face, 0, reserved, fac_commoners,[itm_fur_coat,itm_hide_boots,
itm_book_wound_treatment_reference, itm_book_leadership, itm_book_intelligence, itm_book_trade,
itm_book_engineering, itm_book_weapon_mastery],def_attrib|level(5),wp(20),knows_common,merchant_face_1, merchant_face_2],
itm_book_engineering, itm_book_weapon_mastery, itm_book_fire, itm_book_earth, itm_book_channeling],def_attrib|level(5),wp(20),knows_common,merchant_face_1, merchant_face_2],

# Tavern minstrel.
["tavern_minstrel_1","Wandering Minstrel","Minstrel",tf_hero|tf_randomize_face|tf_guarantee_shield|tf_guarantee_armor|tf_guarantee_boots, 0, reserved, fac_commoners,[itm_leather_jacket, itm_hide_boots, itm_lute],def_attrib|level(5),wp(20),knows_common,merchant_face_1,merchant_face_2], #lute

0 comments on commit 9ccb031

Please sign in to comment.
You can’t perform that action at this time.