Author Topic: Changing city gate keeper troop types.  (Read 1270 times)

0 Members and 1 Guest are viewing this topic.

Diabelica

  • Knight
  • *
    • View Profile
  • Faction: Vaegir
Changing city gate keeper troop types.
« on: July 20, 2006, 06:22:34 am »
How can I change the types of the troops standing near all of the cities gate entrance?
One look in her lusting eyes
Savage fear in you will rise
Teeth of terror sinking in
The bite of the she-wolf

guspav

  • Language Moderator
  • *
    • View Profile
  • Faction: Neutral
Re: Changing city gate keeper troop types.
« Reply #1 on: July 20, 2006, 07:44:05 am »
look for a menu entry called "town_center" then there's a few lines refering to "town visitors".. oh what the heck, here it is :)

("town_center",[
          (this_or_next|eq,"$entry_to_town_forbidden",0),
          (eq, "$sneaked_into_town",1)]
       ,"Go to the town square.",
       [
           (try_begin),
             (eq,"$town_nighttime",0),
             (party_get_slot, reg(11), "$current_town", slot_town_center),
           (else_try),
             (party_get_slot, reg(11), "$current_town", slot_town_center),
           (try_end),

           (modify_visitors_at_site,reg(11)),(reset_visitors),
           (store_faction_of_party, reg(20),"$current_town"),
           (try_begin),
             (eq,reg(20),"fac_swadians"),
             (assign,reg(0),"trp_swadian_infantry"),
             (assign,reg(1),"trp_swadian_infantry"),
             (assign,reg(2),"trp_swadian_crossbowman"),
             (assign,reg(3),"trp_swadian_footman"),
             (else_try),
             (eq,reg(20),"fac_vaegirs"),
             (assign,reg(0),"trp_vaegir_infantry"),
             (assign,reg(1),"trp_vaegir_infantry"),
             (assign,reg(2),"trp_vaegir_archer"),
             (assign,reg(3),"trp_vaegir_footman"),


these are the guards, to change them just change  the trp_blabla_blabla to whatever you like
Es ist nicht deine Schuld daß die Welt ist wie sie ist
Es wär' nur deine Schuld wenn sie so bleibt - Die Ärzte

OOH! Shiny ones! - Cespenar